Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1930567 - ESP's "forwarding" grub.cfg doesn't contain $boot FS UUID when it's btrfs
Summary: ESP's "forwarding" grub.cfg doesn't contain $boot FS UUID when it's btrfs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Javier Martinez Canillas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: Btrfs AcceptedFreezeException Accepte...
: 1939036 (view as bug list)
Depends On:
Blocks: F34BetaFreezeException F34FinalBlocker 1918817
TreeView+ depends on / blocked
 
Reported: 2021-02-19 07:39 UTC by edpil02
Modified: 2021-03-22 19:55 UTC (History)
14 users (show)

Fixed In Version: anaconda-34.24.5-5.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-16 17:05:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description edpil02 2021-02-19 07:39:28 UTC
A few months ago anaconda was patched to allow  /boot on a btrfs subvolume.

I made a fresh install and now i cant boot anymore since "Unify GRUB configuration file location across all platforms" change.

I boot on a command line grub editor  if /boot is on a btrfs subvolume.
I have to put  /boot on a ext4 partition to solve the issue.

Comment 1 edpil02 2021-03-05 18:18:06 UTC
The issue is in /boot/efi/EFI/fedora/grub.cfg  line :  search --no-floppy --fs-uuid  --set=dev None

If /boot is on  root btrfs subvolume   $dev is empty.
search --no-floppy --fs-uuid  --label "my btrfs partition" --set=dev None    set $dev to "my btrfs partition" and solves the problem.

Sorry for my english.

Comment 2 Chris Murphy 2021-03-06 01:46:22 UTC
There were two Btrfs regressions resulting from https://fedoraproject.org/wiki/Changes/UnifyGrubConfig feature that were being tracked in bug 1928599, summarized in https://bugzilla.redhat.com/show_bug.cgi?id=1928588#c12

Since the 'GRUB directory relative path' part is now fixed, I've closed that bug. Renaming this bug so it's clearly about the second problem that remains.

Comment 3 Chris Murphy 2021-03-06 01:49:28 UTC
*sigh* c2 has a typo for the bug I referenced, the long URL with strikeout is correct.

Comment 4 Fedora Blocker Bugs Application 2021-03-06 02:11:13 UTC
Proposed as a Blocker for 34-final by Fedora user chrismurphy using the blocker tracking app because:

 Final criteria say the installer must create+install whatever it lets the user configure. And Basic says the result has to boot. Options are (a) fix the bug (b) revert the change (c) flip the anaconda switch that disallows /boot on Btrfs.

https://fedoraproject.org/wiki/Fedora_34_Final_Release_Criteria#Disk_layouts
The installer must be able to create and install to any workable partition layout using any file system and/or container format combination offered in a default installer configuration. 

https://fedoraproject.org/wiki/Basic_Release_Criteria#Expected_installed_system_boot_behavior
A system installed with a release-blocking desktop must boot ...

Comment 5 Adam Williamson 2021-03-06 18:12:42 UTC
Proposing as a Beta FE per https://bugzilla.redhat.com/show_bug.cgi?id=1928588#c17 . Since that bug was accepted and this one has the same impact, we should probably accept this too.

Comment 6 Javier Martinez Canillas 2021-03-08 12:43:33 UTC
(In reply to edpil02 from comment #1)
> The issue is in /boot/efi/EFI/fedora/grub.cfg  line :  search --no-floppy
> --fs-uuid  --set=dev None
> 
> If /boot is on  root btrfs subvolume   $dev is empty.
> search --no-floppy --fs-uuid  --label "my btrfs partition" --set=dev None   
> set $dev to "my btrfs partition" and solves the problem.
> 

I'll take a look to this issue.

Comment 7 Javier Martinez Canillas 2021-03-08 19:05:36 UTC
I've opened https://github.com/rhinstaller/anaconda/pull/3227 but it may be that it's just
papering over a bug in blivet. Someone more familiar with anaconda and blivet could review
that and let me know if blivet should be changed instead to also set the format.uuid field.

Comment 8 Geoffrey Marr 2021-03-08 19:54:16 UTC
Discussed during the 2021-03-08 blocker review meeting: [0]

The decision to classify this bug as an "AcceptedFreezeException (Beta)" and an "AcceptedBlocker (Final)" was made as it is a noticeable issue that cannot be fixed with an update and seems like a clear violation of "The installer must be able to create and install to any workable partition layout using any file system and/or container format combination offered in a default installer configuration" combined with the Basic "installed system must boot" criteria.

[0] https://meetbot.fedoraproject.org/fedora-blocker-review/2021-03-08/f34-blocker-review.2021-03-08-17.00.txt

Comment 9 Fedora Update System 2021-03-10 18:19:24 UTC
FEDORA-2021-0be5f28658 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-0be5f28658

Comment 10 Fedora Update System 2021-03-11 19:51:03 UTC
FEDORA-2021-0be5f28658 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-0be5f28658`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-0be5f28658

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2021-03-12 01:36:22 UTC
FEDORA-2021-0be5f28658 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 edpil02 2021-03-14 13:37:00 UTC
I tried a fresh rawhide install with  /boot btrfs.
I got a anaconda error : "Cant find stage2 UUID ..  exit or continue"   

/boot/efi/EFI/fedora/grub.cfg  file was empty. I had to edit it manually to boot.

Comment 13 Chris Murphy 2021-03-15 06:22:35 UTC
I just tested Fedora-Workstation-Live-x86_64-Rawhide-20210314.n.0.iso and it installs and reboots OK with /boot on Btrfs. @edpil02 if you can reproduce the problem with a recent ISO, could you file a new bug and attach each log file in /tmp/ separately? Thanks.

Comment 14 Thorsten Leemhuis 2021-03-15 13:51:11 UTC
*** Bug 1939036 has been marked as a duplicate of this bug. ***

Comment 15 Thorsten Leemhuis 2021-03-15 13:53:18 UTC
I just ran into this with Fedora-Workstation-Live-x86_64-34_Beta-1.2.iso (that's the one from yesterday). See Bug 1939036; only spotted this one right after submitting it, sorry. :-/

Should this bug be reopened or is the anaconda in that build still to old?

Comment 16 Chris Murphy 2021-03-15 20:47:15 UTC
Beta 1.2 should have the fix, and I can't reproduce the problem. We need the logs from the failed installation: anaconda.log, storage.log, program.log. Those are in /tmp/ in the install environment, and they're in /var/log/anaconda/ if you've already rebooted. Also useful to attach the /etc/fstab, and 'journalctl -b 0 > journal.log'. Ideally we'd find someone to reproduce the problem with boot parameter 'udev.log_priority=debug' and attach that journalctl output.

Comment 17 Chris Murphy 2021-03-15 21:03:13 UTC
I'm confused. Beta 1.2 has anaconda-34.24.5-4.fc34 and the fix is in anaconda-34.24.5-5.fc34. I'm not sure why it didn't get pulled into RC2, it has an approved FE. I must have tested by manually updating to -5 once I booted the Live. Thorsten, disregard c16. Can you retest by booting the Live and then updating Anaconda?

sudo dnf update anaconda --exclude=device-mapper-multipath,libconfig,lldpad,fcoe-utils

Comment 18 Thorsten Leemhuis 2021-03-16 13:39:23 UTC
(In reply to Chris Murphy from comment #17)
> Thorsten, disregard c16. Can you retest by booting the Live
> and then updating Anaconda?

I'm a bit busy, but if it's important I can do that. Is it okay to do it in a VM with a similar layout or do I have to use the machine which I prepared for other uses?

Comment 19 Chris Murphy 2021-03-16 17:05:22 UTC
I'd say test it under the same conditions as you discovered the problem. I wouldn't bother (re)testing in a VM because that's consistently working correctly with anaconda-34.24.5-5.fc34. In the meantime I'll close this out again as fixed, since I've confirmed the fix on two baremetal systems as well as qemu-kvm.

Comment 20 Adam Williamson 2021-03-16 21:22:23 UTC
The fixed anaconda didn't make it into Beta RC2 unfortunately, because an older anaconda was left in the candidate compose side tag, and builds from that side tag override even *newer* stable builds when running the compose, apparently. So even though we pushed -5 stable before running the compose, it wound up including -4 from the side tag :( Sorry about that. We can't respin just for that as this is an FE issue, not a blocker.

Comment 21 Chris Murphy 2021-03-16 22:11:29 UTC
Draft for CommonBugs:

On computers with UEFI firmware and when using /boot on Btrfs, boot will fail following the installation. This is not a default configuration, you need to use Custom or Advanced-Custom UI to specifically place /boot on Btrfs. Ideally, you should fix the problem after installation, but before rebooting. Otherwise you'll need to reboot from install media, and mount the EFI System partition.

##Discover the FS UUID for the Btrfs /boot volume
lsblk -f

##Edit the forwarding grub.cfg on the EFI System partition
nano /mnt/sysimage/boot/efi/EFI/fedora/grub.cfg

##Modify the first line, replacing 'None' with the FS UUID for the Btrfs file system used for boot. Save the file. Now you can safely reboot.

##Example:

Malformed line:
search --no-floppy --fs-uuid --set=dev None

Corrected line:
search --no-floppy --fs-uuid --set=dev 404e2120-46cb-4933-8380-941bb2c403d7

Comment 22 Chris Murphy 2021-03-22 19:55:23 UTC
anaconda-34.24.5-5.fc34 made it into RC3 which is the release version for beta. Removing CommonBugs.


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