Skip to content

Commit 4797203

Browse files
committed
test: Create non-empty dummy kernel file in testCPUSecurityMitigationsEnable
Fedora 39's kernel-install command has an additional magic check that requires the file to be at least two bytes long.
1 parent ce9b42c commit 4797203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/verify/check-system-info

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ machine : 8561
778778
# - BLS, options go directly into entries, or entries use $kernelopt (defined in grubenv)
779779
if not m.ostree_image:
780780
m.execute(r"""
781-
touch /boot/vmlinuz-42.0.0; mkdir -p /lib/modules/42.0.0/
781+
echo dummy > /boot/vmlinuz-42.0.0; mkdir -p /lib/modules/42.0.0/
782782
if type update-grub >/dev/null 2>&1; then
783783
update-grub # Debian/Ubuntu
784784
grep -q 'linux.*/vmlinuz-42.0.0.*nosmt' /boot/grub*/grub.cfg

0 commit comments

Comments
 (0)