{"id":219,"date":"2023-07-24T21:45:37","date_gmt":"2023-07-24T19:45:37","guid":{"rendered":"https:\/\/kurt.www.pinboard.jp\/blog\/?p=219"},"modified":"2023-07-24T21:45:38","modified_gmt":"2023-07-24T19:45:38","slug":"fedora-38-installation-on-acer-spin-1-sp111-32n","status":"publish","type":"post","link":"https:\/\/kurt.www.pinboard.jp\/blog\/kurt\/219\/","title":{"rendered":"Fedora 38 Installation on Acer Spin 1 SP111-32N"},"content":{"rendered":"\n<p>The Acer Spin 1 SP111-32N is a nice small notebook to take along during your holiday or travel. It is light, the battery last quit long, and if it breaks or is stolen: it was not too expensive. Sure, it is not super powerful, but for occasional access from remote it is perfect.<\/p>\n\n\n\n<p>I&#8217;m not a windows user. My OS of choice is Linux, mainly Fedora. But for several releases now, installing Fedora on the Acer Spin 1 SP11-32N left it unbootable. This is due to the UEFI BIOS. After a whole day of trial and error and internet research and further error and trial I found a way to make Fedora 38 (and hopefully also the next releases) boot on this machine. Possibly the <em>Workaround<\/em> described at <a rel=\"noreferrer noopener\" href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=2091986#c0\" target=\"_blank\">Red Hat Bugzilla &#8211; Bug 2091986<\/a> helps too, but, having found that later, I have not tested it. This is how I get it to work:<\/p>\n\n\n\n<ul>\n<li>install the OS with a LiveOS USB stick<\/li>\n\n\n\n<li>an ext4 formatted partition <code>\/boot<\/code> (I used 750 MB) and an efi system formatted partition <code>\/boot\/efi<\/code> (I used 250 MB) must be created<\/li>\n\n\n\n<li>while installing the boot loader, an error pops up saying<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-2\">\n<div class=\"wp-block-column is-layout-flow\" style=\"flex-basis:100%\">\n<pre style=\"background-color: white; color: black;\">...\nFailed to set new efi boot target. This is most likely a kernel or firmware bug.<\/pre>\n<\/div>\n<\/div>\n\n\n\n<ul>\n<li>this error <strong>must<\/strong> be confirmed with <code>Yes<\/code> to <strong>ignore it and continue<\/strong> with installation<\/li>\n\n\n\n<li>do not yet click on the final <code>Finish Installation<\/code> button and do <strong>NOT<\/strong> exit the LiveOS or umount the \/mnt\/sysmount mounts<\/li>\n<\/ul>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>The following items can all be done with the commands listed below, just cut&#8217;n&#8217;paste in a terminal<\/p>\n\n\n\n<ul>\n<li>open a terminal in the liveOS and become root<\/li>\n\n\n\n<li>chroot into the still mounted, newly installed system<\/li>\n\n\n\n<li>install the <code>grub2-efi-x64-modules<\/code><\/li>\n\n\n\n<li><strong>re<\/strong>install the installed grub2 RPM&#8217;s (yes <strong>reinstall<\/strong>)<\/li>\n\n\n\n<li>run <code>grub2-mkconfig<\/code>, wrigint hte config to <code>\/boot\/efi\/EFI\/fedora\/grub.cfg<\/code> (in the chrooted environment)<\/li>\n\n\n\n<li>in the resulting file, comment out the part which sets up the menu entry for fwsetup (this is the entry which boots into the BIOS)<\/li>\n\n\n\n<li>add a menu entry referencing the initrd and vmlinuz files in \/boot with the kernel parameters found in the file, prepended with the (grub-)root setting also found in the file<\/li>\n\n\n\n<li><strong>now<\/strong> click on the <code>Finish Installatoin<\/code> button, shutdown the system, remove the LiveOS USB flashdrive and boot the machine; the newly installed system boots<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<pre style=\"background-color: lightyellow; color: green;\">sudo su -\nchroot \/mnt\/sysroot\ndnf install grub2-efi-x64-modules\ndnf reinstall grub2-tools grub2-common grub2-efi-x64 grub2-efi-x64-modules grub2-tools-efi\ngrub2-mkconfig -o \/boot\/efi\/EFI\/fedora\/grub.cfg\nsed -i \"\/30_uefi-firmware\/,\/30_uefi-firmware\/ s\/^\/#\/\" \/boot\/efi\/EFI\/fedora\/grub.cfg\n\nsed \"\/END \\\/etc\\\/grub.d\\\/40_custom\/,$ d\" \/boot\/efi\/EFI\/fedora\/grub.cfg &gt;\/tmp\/snippet\ngrep \"set=root\" \/boot\/efi\/EFI\/fedora\/grub.cfg &gt;&gt;\/tmp\/snippet\necho \"menuentry '$(uname -r)' {\" &gt;&gt;\/tmp\/snippet\necho \"  linuxefi \/$(cd \/boot; ls vmlinuz*64) $(sed -n '\/kernelopts=\/ {s\/^&#91;^\\\"]*\\\"\/\/; s\/\\\".*\/\/p}' \/boot\/efi\/EFI\/fedora\/grub.cfg)\" &gt;&gt;\/tmp\/snippet\necho \"  initrdefi \/$(cd \/boot; ls init*img)\" &gt;&gt;\/tmp\/snippet\necho \"}\" &gt;&gt;\/tmp\/snippet\nsed -n \"\/END \\\/etc\\\/grub.d\\\/40_custom\/,$ p\" \/boot\/efi\/EFI\/fedora\/grub.cfg &gt;&gt;\/tmp\/snippet\n\ncat \/tmp\/snippet &gt;\/boot\/efi\/EFI\/fedora\/grub.cfg<\/pre>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Acer Spin 1 SP111-32N is a nice small notebook to take along during your holiday or travel. It is light, the battery last quit long, and if it breaks or is stolen: it was not too expensive. Sure, it is not super powerful, but for occasional access from remote it is perfect. I&#8217;m not [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[29],"tags":[37,38],"_links":{"self":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/219"}],"collection":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":7,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/219\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}