#1020 add kickstart file for uefi+uki cloud image
Closed 2 months ago by ngompa. Opened 3 months ago by kraxel.
kraxel/fedora-kickstarts uefi-uki  into  main

@@ -0,0 +1,33 @@ 

+ # This is a basic Fedora cloud spin

+ # UEFI only, boots with UKI

+ 

+ # Inherit from cloud base

+ %include fedora-cloud-base.ks

+ 

+ %packages

+ -kernel-core

+ kernel-uki-virt

+ uki-direct

+ %end

+ 

+ %post

+ 

+ # setup discoverable partitions

+ sh /usr/share/doc/python3-virt-firmware/experimental/fixup-partitions-for-uki.sh

+ 

+ # bz2240989: shim has a hard dependency on grub.  grub has a hard

+ # dependency on dracut.  Ideally we would simply not install

+ # grub+dracut, but given we can't until the shim bug is fixed disable

+ # their kernel-install plugins instead.

+ kversion=$(ls /lib/modules)

+ if test -f /lib/modules/${kversion}/vmlinuz-virt.efi; then

+     /bin/kernel-install -v remove ${kversion}

+     touch /etc/kernel/install.d/20-grub.install

+     touch /etc/kernel/install.d/50-dracut.install

+     /bin/kernel-install -v add ${kversion} /lib/modules/${kversion}/vmlinuz-virt.efi

+ fi

+ 

+ # create BOOT.CSV for direct kernel boot

+ sh /usr/share/doc/python3-virt-firmware/experimental/generate-bootcsv-for-uki.sh /boot/efi

+ 

+ %end

Background:
https://fedoraproject.org/wiki/Changes/Unified_Kernel_Support_Phase_2

Related:
https://fedoraproject.org/wiki/Changes/KiwiBuiltCloudImages

The deadlines are coming closer and the kiwi switchover did not
happen yet, so I'm preparing a fallback plan ...

Signed-off-by: Gerd Hoffmann kraxel@redhat.com

The kiwi plugin was just deployed yesterday evening, I didn't have a chance to switch things over yet :sweat_smile:

Note that just adding the kickstart here won't do anything... in order to produce things from it it would have to be added to pungi config at least: https://pagure.io/pungi-fedora/

but yeah, kiwi should be enabled now, we just need to sort out the rest of the setup...

I think this is obsolete now, as we did complete the Pungi switchover for Beta, and we even got a UEFI+UKI image into Beta - https://dl.fedoraproject.org/pub/alt/stage/40_Beta-1.10/Cloud/x86_64/images/Fedora-Cloud-Base-UEFI-UKI.x86_64-40-1.10.qcow2 . So, I think we can close this?

Pull-Request has been closed by ngompa

2 months ago
Metadata