Skip to content

Commit

Permalink
Sync VM initramfs settings with qubes-prepare-vm-kernel
Browse files Browse the repository at this point in the history
(cherry picked from commit 8ab3d0f)
  • Loading branch information
marmarek committed Jan 9, 2023
1 parent 91bf61d commit 7fd011f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kernel.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ AutoReqProv: on
BuildRequires: coreutils module-init-tools sparse
BuildRequires: qubes-kernel-vm-support
BuildRequires: dracut
BuildRequires: busybox
BuildRequires: bc
BuildRequires: openssl
BuildRequires: openssl-devel
Expand Down Expand Up @@ -473,9 +474,10 @@ mv %buildroot/lib/firmware-all %buildroot/lib/firmware/%kernelrelease

# Prepare initramfs for Qubes VM
mkdir -p %buildroot/%vm_install_dir
PATH="/sbin:$PATH" dracut --nomdadmconf --nolvmconf \
PATH="/sbin:$PATH" dracut --nomdadmconf --nolvmconf --no-hostonly \
--kmoddir %buildroot/lib/modules/%kernelrelease \
--modules "kernel-modules qubes-vm-simple" \
--modules "kernel-modules qubes-vm-simple busybox" \
--omit "nss-softokn extra-modules qubes-pciback qubes-udev" \
--conf /dev/null --confdir /var/empty \
-d "xenblk xen-blkfront cdrom ext4 jbd2 crc16 dm_snapshot" \
%buildroot/%vm_install_dir/initramfs %kernelrelease
Expand Down

0 comments on commit 7fd011f

Please sign in to comment.