Bug 2233234 - Clean Systemd-boot installs
Summary: Clean Systemd-boot installs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Changes Tracking
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeremy Linton
QA Contact:
URL:
Whiteboard:
: 2226796 2231897 2231901 (view as bug list)
Depends On: 2234638 2237327 2240102
Blocks: F39Changes
TreeView+ depends on / blocked
 
Reported: 2023-08-21 18:47 UTC by Adam Williamson
Modified: 2023-11-14 19:14 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-11-14 18:57:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2023-08-21 18:47:33 UTC
This is a tracking bug for Change: Clean Systemd-boot installs
For more details, see: https://fedoraproject.org/wiki/Changes/cleanup_systemd_install

Fedora default installs with a shim + grub bootloader on EFI platforms, yet has been shipping systemd-boot in various forms for a number of releases. There are a few howto's which describe how to replace grub with systemd-boot with varying levels of functionality. This should be easier with a formalized default method that can be built upon. This proposal aims to complete the work started with anaconda (inst.sdboot), kickstart (bootloader --sdboot) such that the "everything" media can install a grub free machine.

If you encounter a bug related to this Change, please do not comment here. Instead create a new bug and set it to block this bug.

Comment 1 Adam Williamson 2023-08-22 21:21:11 UTC
Jeremy, what is the status here? I see the comps PR has been merged, but the sdubby package review bug is still open.

Comment 2 Adam Williamson 2023-08-22 21:40:26 UTC
*** Bug 2226796 has been marked as a duplicate of this bug. ***

Comment 3 Adam Williamson 2023-08-23 05:47:07 UTC
*** Bug 2231901 has been marked as a duplicate of this bug. ***

Comment 4 Adam Williamson 2023-08-23 05:47:27 UTC
*** Bug 2231897 has been marked as a duplicate of this bug. ***

Comment 5 Jeremy Linton 2023-09-01 13:27:32 UTC
The review is now approved so it was just waiting on me to finish up the fedpkg requests and push the branch. Which i'm doing now, so it should happen.

Comment 6 nilskemail 2023-09-10 15:30:16 UTC
The change proposal also states that a systemd-boot-signed package should be provided which I currently cannot find in the repositories. Is there an estimate on when we can expect this, e.g. in time for the beta release?

Comment 7 Jeremy Linton 2023-09-14 03:06:24 UTC
I think that was in the, once we get an install path that works, we can work on cleaning up the following items. AFAIK, the signed-systemd-boot package is stuck, and its not clear once that happens if the support path is going to be enrolling the fedora keys, or using shim (which i'm not a big fan of) which currently doesn't support chaining to systemd-boot if its not called grub${PLATFORM}.efi.

So, TODO which will probably be that way for a while yet.

Comment 8 Adam Williamson 2023-09-21 19:25:11 UTC
So sdubby is now in, and I think in theory you should be able to do a (non-signed, so not Secure Bootable?) install from the Everything netinst. However, there's still no systemd-boot-signed - only systemd-boot-unsigned from the systemd .src.rpm - and https://bugzilla.redhat.com/show_bug.cgi?id=2234638 isn't fixed.

So in theory we can call the current state 'complete' based on the scope in the Change, which really only covered the comps change and the sdubby package review, and more generally kinda the idea that you can, somehow, complete a systemd-boot install.

However...I just tested it, and it doesn't entirely work. I did an install from the 2023-09-10 F39 Everything netinst nightly (that's the most recent I had lying around) with `inst.sdboot` on the cmdline, in a libvirt UEFI VM. Install completed successfully, and the installed system shows a clearly-not-grub boot menu, but when I choose the default option, I immediately wind up at the emergency console. In the journal I see "Failed to switch root: Specified switch root path '/sysroot' does not seem to be an OS tree. os-release file is missing".

So...I guess we can call this MODIFIED, for now? I'll file a specific bug for the problem I see.

Comment 9 Jeremy Linton 2023-09-22 13:59:30 UTC
What your seeing is the btrfs bug https://github.com/rhinstaller/anaconda/pull/5194 and bz #2237327 and is caused by the fact that I did 99% of my testing with the server DVD and it defaults to XFS.

You can work around this by selecting anything but btrfs during the install, or just dumping the btrfs rootflags=subvolume= parameter into the first boot of the machine and then updating the loader entries/etc. And presumably it will be fixed once that patch lands.

Comment 10 Aoife Moloney 2023-11-14 18:57:27 UTC
F39 was released on November 7th, so I am closing this tracker. If this Change was not completed, please notify me ASAP.

Comment 11 Jonathan Steffan 2023-11-14 19:09:09 UTC
This Change was not completed.

Comment 12 nilskemail 2023-11-14 19:14:21 UTC
There should at least be a follow up ticket about providing a systemd-boot-signed package


Note You need to log in before you can comment on or make changes to this bug.