Bug 2222137 - supermin images with zboot (and systemd-boot?)
Summary: supermin images with zboot (and systemd-boot?)
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: supermin
Version: 40
Hardware: aarch64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-11 23:51 UTC by Jeremy Linton
Modified: 2024-02-15 22:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeremy Linton 2023-07-11 23:51:54 UTC
Testing supermin, it looks to be doing the right thing WRT to picking up the host kernel/initrd when running on a systemd-boot machine when those items are found in /boot/efi/$MACHINEID/$KERNELVER/kernel.

That appears to be because its actually symlinking the kernel from /lib/modules/$KERNELVER.

That said, at least on aarch64 machines, it seems the resulting example images won't boot, and it appears the problem is because qemu doesn't yet understand the ZBOOT (PE wrapped compressed kernel image) format being used in fedora when passed as a -kernel, because there isn't a direct entry point unless something decompresses the image (AKA a UEFI compliant firmware running in the guest as well).

So, this might just be a qemu bug, but per the fedora-dev mailing list, i'm going to open it here as a placeholder since I can't seem to validate a full supermin sequence at the moment.




Reproducible: Always

Steps to Reproduce:
1. Install a systemd-boot machine with inst.sdboot/etc.
2. Install supermin
3. Follow the examples frp, https://libguestfs.org/supermin.1.html to create an image
4. Attempt to boot image, tweaking parms for aarch64
Actual Results:  
No response from qemu when passed the supermin kernel with -kernel, which looks like it could be a problem with the -serial device, but it behaves the same when -kernel is just garbage too.


Expected Results:  
The image boots per the instructions.

Comment 1 Fedora Release Engineering 2023-08-16 08:12:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 2 Aoife Moloney 2024-02-15 22:56:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.


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