2015-12-19 10:07:21 +00:00
|
|
|
|
|
|
|
help() {
|
|
|
|
echo "Before using pvgrub, the kernel you want to use needs to be regenerated with Qubes kernel modules in the TemplateVM:"
|
|
|
|
echo "1/ Ensure that your kernel and kernel sources are installed (ex: pacman -S linux-lts linux-lts-headers)"
|
2015-12-19 10:25:46 +00:00
|
|
|
echo "2/ Ensure that grub config file has been generated for your kernel (ex: grub-mkconfig > /boot/grub/grub.cfg)"
|
2016-12-28 07:22:11 +00:00
|
|
|
echo "3/ Reinstall qubes-vm-kernel-support to ensure Qubes-OS kernel module is compiled and that the initcpio is rebuilt"
|
|
|
|
echo "This should then be handled automatically in your next kernel updates"
|
2015-12-19 10:07:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
## arg 1: the new package version
|
|
|
|
post_install() {
|
|
|
|
echo "Adding qubes required hooks to mkinitcpio.conf"
|
|
|
|
sed 's/^HOOKS="base/HOOKS="lvm2 qubes base/' -i /etc/mkinitcpio.conf
|
2015-12-19 10:25:46 +00:00
|
|
|
help
|
2015-12-19 10:07:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
echo "Adding qubes required hooks to mkinitcpio.conf"
|
|
|
|
sed 's/^HOOKS="base/HOOKS="lvm2 qubes base/' -i /etc/mkinitcpio.conf
|
2015-12-19 10:25:46 +00:00
|
|
|
help
|
2015-12-19 10:07:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
echo "Removing qubes required hooks to mkinitcpio.conf"
|
|
|
|
sed 's/^HOOKS="lvm2 qubes base/HOOKS="base/' -i /etc/mkinitcpio.conf
|
|
|
|
}
|
|
|
|
|