From d815a64e075617c91775257c8270cdfdbf2840f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Mon, 16 Jan 2023 15:35:49 +0100 Subject: [PATCH] spec: newer dracut does't support /dev/null as conf See https://github.com/dracutdevs/dracut/issues/1835 (cherry picked from commit 3c86f6041032b7682d168146fb35bf621600d36b) --- kernel.spec.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel.spec.in b/kernel.spec.in index 26438378..3fce414b 100644 --- a/kernel.spec.in +++ b/kernel.spec.in @@ -477,11 +477,12 @@ mv %buildroot/lib/firmware-all %buildroot/lib/firmware/%kernelrelease # Prepare initramfs for Qubes VM mkdir -p %buildroot/%vm_install_dir +touch /tmp/dummy_conf PATH="/sbin:$PATH" dracut --nomdadmconf --nolvmconf --no-hostonly \ --kmoddir %buildroot/lib/modules/%kernelrelease \ --modules "kernel-modules qubes-vm-simple busybox" \ --omit "nss-softokn extra-modules qubes-pciback qubes-udev" \ - --conf /dev/null --confdir /var/empty \ + --conf /tmp/dummy_conf --confdir /var/empty \ -d "xenblk xen-blkfront cdrom ext4 jbd2 crc16 dm_snapshot" \ %buildroot/%vm_install_dir/initramfs %kernelrelease