Bug 2107858 - Media check fails with checkisomd5 "service failed because the control process exited with error code"
Summary: Media check fails with checkisomd5 "service failed because the control proces...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Valena
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
Depends On:
Blocks: F37BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2022-07-16 22:30 UTC by Brandon Nielsen
Modified: 2022-08-18 17:06 UTC (History)
10 users (show)

Fixed In Version: dracut-057-2.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-18 17:06:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Picture of display after failed media check (3.05 MB, image/jpeg)
2022-07-16 22:30 UTC, Brandon Nielsen
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github dracutdevs dracut pull 1882 0 None open dmsquash-live-root: Run checkisomd5 on correct device 2022-08-11 19:07:43 UTC

Description Brandon Nielsen 2022-07-16 22:30:41 UTC
Created attachment 1897778 [details]
Picture of display after failed media check

Description of problem:

Media check fails with "NA" when starting a Workstation Live image with the "Test this media and start Fedora-Workstation-Live Rawhide". A "checkisomd5...service failed because the control process exited with error code" message is printed.

Affected machine is an HP Compaq 8510w using BIOS and USB. UEFI on another machine seems fine. Booting in a VM using BIOS mode works fine.


How reproducible:

Every time.


Steps to Reproduce:
1. Insert USB with Workstation Live image written
2. Select USB option on boot
3. Select "Test this media & start Fedora-Workstation-Live Rawhide" (or wait for timeout)


Actual results:

Media check fails to start, boot fails.


Expected results:

Media check passes, boot continues as usual.


Additional info:

Skipping the media check and booting works fine. First observed with Fedora-Rawhide-20220701.n.0 Workstation Live compose. I have since observed it with the 20220711 and 20220716 composes as well.

I have not had a chance to check non Workstation Live composes.

I don't have a good way to capture the output, so I have attached a failed boot screenshot.

Comment 1 Brian Lane 2022-07-18 17:04:32 UTC
What happens if you run checkisomd5 on the device after booting? From the error message it looks like it thinks there is no checksum data. That error on line 1 may also be related, if it doesn't setup /dev/label then it won't be able to check.

Comment 2 Brandon Nielsen 2022-07-19 13:47:35 UTC
(In reply to Brian Lane from comment #1)
> What happens if you run checkisomd5 on the device after booting? From the
> error message it looks like it thinks there is no checksum data. That error
> on line 1 may also be related, if it doesn't setup /dev/label then it won't
> be able to check.

So, if I try to run checkisomd5 against the block device from the booted USB stick, it hangs? No error, just consumes 100% CPU indefinitely. I assume the checksum data must be there as the media check works when the ISO is booted in a VM (either UEFI or BIOS).

As for the missing sysctl, that's bug 2102903. I should have noted that initially.

Comment 3 Brian Lane 2022-07-19 16:56:27 UTC
Ok, I am able to reproduce this in a VM. With qemu and -hda I see the same problem as you saw on hardware.

The issue is that the new GRUB2 based images have a different partition table layout using GPT. On the old image the /dev/sda1 wasn't really a valid partition, it covered the whole image and doesn't have a type set. But since it starts at sector 0 it can be used to run checkisomd5, and the iso9660 label is detected on it by blkid. On the new GPT layout the partition is valid, and starts at sector 64 so it is missing part of the checksum data at the start, but label detection still works so it is used for the check. I think dracut's 90dmsquash-live module is going to need some changes to handle the new images when they are written to USB.

Comment 4 Brian Lane 2022-07-25 23:11:15 UTC
PR is here - https://github.com/dracutdevs/dracut/pull/1882

Comment 5 Fedora Blocker Bugs Application 2022-08-06 14:49:00 UTC
Proposed as a Blocker for 37-beta by Fedora user nielsenb using the blocker tracking app because:

 Fails the of "Release-blocking live images must boot to the expected boot menu, and then to a desktop or to a login prompt where it is clear how to log in to a desktop" clause the [expected boot behavior criteria](https://fedoraproject.org/wiki/Basic_Release_Criteria#Expected_image_boot_behavior).

You can boot, but only if you explicitly elect to not test the media.

Comment 6 Ben Cotton 2022-08-09 13:41:48 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 7 Adam Williamson 2022-08-16 03:01:27 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/845 , marking accepted.

Comment 8 Pavel Valena 2022-08-16 13:22:22 UTC
I'll create an update ASAP.

Comment 10 Pavel Valena 2022-08-17 11:57:07 UTC
F37: https://bodhi.fedoraproject.org/updates/FEDORA-2022-64b1766c16

Currently in testing.

Comment 11 Pavel Valena 2022-08-18 17:06:06 UTC
-> stable


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