Commit b4df573
committed
redhat: Directly use 'ukify' for building the UKI
Upstream Status: RHEL only
JIRA: https://issues.redhat.com/browse/RHEL-109610
dracut-107 switched to calling 'ukify' directly and this causes several
issues:
1) '--uname' is not passed to 'ukify' by dracut, this triggers version
autodetection which breaks on -debug kernels with e.g.
Kernel version not specified, starting autodetection 😖.
Cannot parse version-host-release uname string: b'6.17.0-0.rc2.24.fc44.x86_64+debug (mockbuild@fb2dab7653d446e38a376a74fe4e22a2) #1 SMP PREEMPT_DYNAMIC Mon Aug 18 16:54:37 UTC 20'
+ readelf --notes /builddir/build/BUILD/kernel-6.17.0-build/kernel-6.17-rc2/linux-6.17.0-0.rc2.24.fc44.x86_64/arch/x86/boot/bzImage
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
Cannot find b'Linux version (?P<version>\\d\\.\\S+) \\(' in /builddir/build/BUILD/kernel-6.17.0-build/kernel-6.17-rc2/linux-6.17.0-0.rc2.24.fc44.x86_64/arch/x86/boot/bzImage
2) 'ukify' expects SBAT data to begin with the standard 'sbat,1,SBAT
Version,sbat,1,...' line but for kernel-uki-virt we only pass the
addon ('kernel-uki-virt.<suffix>,1,...') as the header comes through
systemd-stub. This leads to
/var/tmp/dracut.dzt9WSC/uefi/uki.sbat does not contain a valid SBAT section, skipping.
While it is possible to solve 2) by altering our SBAT data, 1) requires a
dracut fix (dracut-ng/dracut-ng#1594). As there's
no real benefit in using the dracut wrapper, switch to calling 'ukify'
explicitly.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>1 parent 638f86f commit b4df573
File tree
4 files changed
+33
-17
lines changed- redhat
4 files changed
+33
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| 764 | + | |
| 765 | + | |
764 | 766 | | |
765 | 767 | | |
766 | 768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
111 | 122 | | |
112 | 123 | | |
113 | 124 | | |
| |||
989 | 1000 | | |
990 | 1001 | | |
991 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
992 | 1006 | | |
993 | 1007 | | |
994 | 1008 | | |
| |||
1977 | 1991 | | |
1978 | 1992 | | |
1979 | 1993 | | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
1980 | 1998 | | |
1981 | 1999 | | |
1982 | 2000 | | |
| |||
2736 | 2754 | | |
2737 | 2755 | | |
2738 | 2756 | | |
2739 | | - | |
2740 | | - | |
2741 | | - | |
2742 | | - | |
2743 | | - | |
2744 | | - | |
2745 | | - | |
2746 | | - | |
2747 | | - | |
2748 | | - | |
2749 | | - | |
2750 | 2757 | | |
2751 | 2758 | | |
| 2759 | + | |
2752 | 2760 | | |
2753 | 2761 | | |
2754 | 2762 | | |
| |||
2758 | 2766 | | |
2759 | 2767 | | |
2760 | 2768 | | |
2761 | | - | |
2762 | | - | |
2763 | | - | |
2764 | | - | |
2765 | | - | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
2766 | 2776 | | |
2767 | 2777 | | |
2768 | 2778 | | |
2769 | | - | |
| 2779 | + | |
2770 | 2780 | | |
2771 | 2781 | | |
2772 | 2782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments