From 6ffdf8a95a8548e125666a6dc02f595cea013aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 29 May 2017 04:13:58 +0200 Subject: [PATCH] lorax-templates-qubes: make initrd for EFI smaller Skip system-wide dracut config, specifically /etc/dracut.conf.d/plymouth-missing-fonts.conf, which loads 'label' plymouth plugin, which in turn pulls a lot of libraries (including libX11). QubesOS/qubes-issues#2412 (cherry picked from commit f9bb3b2f33a06bde7763af80fe54d477137c8104) --- lorax-templates-qubes/templates/efi.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lorax-templates-qubes/templates/efi.tmpl b/lorax-templates-qubes/templates/efi.tmpl index dcaae49..01ebedb 100644 --- a/lorax-templates-qubes/templates/efi.tmpl +++ b/lorax-templates-qubes/templates/efi.tmpl @@ -49,7 +49,9 @@ install boot/efi/EFI/*/fonts/unicode.pf2 ${EFIBOOTDIR}/fonts/ %if include_kernel: copy ${KERNELDIR}/vmlinuz ${EFIBOOTDIR} runcmd chroot ${inroot} mkdir -p /boot/efi/EFI/qubes - runcmd chroot ${inroot} dracut --nomdadmconf --nolvmconf --nofscks --no-early-microcode --no-hostonly --xz --install '/.buildstamp' \ + runcmd chroot ${inroot} dracut --conf /dev/null --confdir /var/empty \ + --nomdadmconf --nolvmconf --nofscks --no-early-microcode \ + --no-hostonly --xz --install '/.buildstamp' \ --add 'anaconda pollcdrom dmsquash-live' \ --omit="${extra_dracut_modules}" --omit-drivers="${scsi_modules}" --omit-drivers="${extra_modules}" \ /boot/efi/EFI/qubes/initrd-small.img ${kver}