Bug 1973515 - Kernel update in virt-customize causes an incorrect disk uuid in initrd (--update results in unbootable image)
Summary: Kernel update in virt-customize causes an incorrect disk uuid in initrd (--up...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: TRACKER-bugs-affecting-libguestfs
TreeView+ depends on / blocked
 
Reported: 2021-06-18 04:21 UTC by Lukáš Doktor
Modified: 2022-06-07 20:44 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-06-07 20:44:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
serial console output of a failed boot on F33 (45.29 KB, application/octet-stream)
2021-06-18 04:21 UTC, Lukáš Doktor
no flags Details
Reproducer used to check various Fedoras (1.08 KB, application/x-shellscript)
2021-06-18 04:24 UTC, Lukáš Doktor
no flags Details

Description Lukáš Doktor 2021-06-18 04:21:21 UTC
Created attachment 1791947 [details]
serial console output of a failed boot on F33

Description of problem:
Hello guys, running "virt-customize --update" on Fedora > 32 results in unbootable image due to kernel initrd containing a non-existing uuid.

Version-Release number of selected component (if applicable):
* Fedora 32 Cloud Image - works well
* Fedora 33 Cloud Image - fails
* Fedora 34 Cloud Image - fails

How reproducible:
* Always

Steps to Reproduce:
1. Fetch the image
2. virt-customize -v -x -a Fedora.qcow2 --root-password password:redhat --update --selinux-relabel
3. boot the image

Actual results:
Fails into maintenance mode, /dev/disk/by-uuid/ contains a different uuid than expected.

Expected results:
Should boot well

Additional info:
I was asked to search for the uuid when in rescue mode:
virt-rescue --ro -a Fedora.qcow2
# searching for the expected UUID
><rescue> findfs UUID=7486a5a4-47b9-478c-ab0c-44438c0b19ea
/dev/sdb
# searching for the UUID the disk has on normal boot
><rescue> findfs 0e28d03c-9307-4c5c-b31e-7b0574239ccf
0e28d03c-9307-4c5c-b31e-7b0574239ccf

Comment 1 Lukáš Doktor 2021-06-18 04:24:59 UTC
Created attachment 1791948 [details]
Reproducer used to check various Fedoras

I used this script to find which Fedora version this occurred the first (first with --update, then added custom packages to try to reproduce that with F32 and F33 pkgs but no luck).

Note that RHEL8 images work well.

Comment 2 Richard W.M. Jones 2021-06-18 07:34:29 UTC
> virt-rescue --ro -a Fedora.qcow2
> # searching for the expected UUID
> ><rescue> findfs UUID=7486a5a4-47b9-478c-ab0c-44438c0b19ea
> /dev/sdb

In the virt-rescue appliance (which is the same environment
used by virt-customize), /dev/sdb is the appliance root.
/dev/sda which is the Fedora.qcow2 will have a different UUID.

If dracut is picking this UUID when run inside a chroot then
it's picking the wrong one.  It should notice when it's run
inside a chroot and pick the UUID of the chrooted filesystem instead.

Comment 3 Ben Cotton 2022-05-12 15:04:58 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Ben Cotton 2022-06-07 20:44:34 UTC
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07.

Fedora Linux 34 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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