]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
mkosi-initrd: Strip all files starting with vmlinuz
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 3 Dec 2023 08:20:19 +0000 (09:20 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 4 Dec 2023 13:21:46 +0000 (14:21 +0100)
Fedora has started shipping vmlinuz-virt.efi in the kernel modules
directory so we have to make sure we strip that from the initrd as
well.

mkosi-initrd/mkosi.conf

index 6a343a4660bcdecc4016e2da038f9b944d2436a6..6a5c4e32514739497e6d63dc13a9edb53b3a192b 100644 (file)
@@ -31,7 +31,7 @@ RemoveFiles=
 
         # Including kernel images in the initrd is generally not useful.
         # This also stops mkosi from extracting the kernel image out of the image as a separate output.
-        /usr/lib/modules/*/vmlinuz
+        /usr/lib/modules/*/vmlinuz*
         /usr/lib/modules/*/System.map
 
 # Configure locale explicitly so that all other locale data is stripped on distros whose package manager supports it.