3cd77e4f70
This package is responsible for kernel modules and initramfs additions needed in Qubes VM. When installed, it is possible to switch the VM to use PV Grub and load the kernel from inside of VM. This greatly ease installing custom kernel modules. Changes: - make qubes_cow_setup.sh working with both dracut and initramfs-tools - add initramfs-tools configuration/scripts (including qubes_cow_setup.sh) - modify DESTDIR to handle multiple binary packages out of single source QubesOS/qubes-issues#1354
22 lines
331 B
Bash
Executable File
22 lines
331 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if grep -q control_d /proc/xen/capabilities; then
|
|
echo "Not intended for dom0"
|
|
exit 0
|
|
fi
|
|
|
|
PREREQS="dmsetup"
|
|
case "$1" in
|
|
prereqs)
|
|
echo "$PREREQS"
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
|
|
copy_exec /sbin/sfdisk
|
|
copy_exec /sbin/mkswap
|
|
force_load xen-blkfront
|
|
force_load dm-snapshot
|