debian: Trigger grub-acrn on acrn-hypervisor install

Tracked-On: #6688
Signed-off-by: Helmut Buchsbaum <helmut.buchsbaum@opensource.tttech-industrial.com>
This commit is contained in:
Helmut Buchsbaum 2022-05-04 13:06:11 +02:00 committed by acrnsi-robot
parent d7f51489db
commit 36110bf036
6 changed files with 9 additions and 10 deletions

View File

@ -44,9 +44,6 @@ case "$1" in
cat ${ACRNETC}/serial.conf >> /etc/serial.conf
echo "# END - ACRN HYPERVISOR INSTALL" >> /etc/serial.conf
fi
if command -v update-grub > /dev/null && [ -d /boot/grub ]; then
update-grub || :
fi
fi
;;

View File

@ -5,6 +5,8 @@
set -e
. /usr/share/debconf/confmodule
rm_acrn()
{
rm -f /boot/acrn-@acrnversion@.config
@ -30,9 +32,7 @@ rm_acrn()
case "$1" in
remove|purge)
rm_acrn
if command -v update-grub > /dev/null && [ -d /boot/grub ]; then
update-grub || :
fi
db_purge acrn-hypervisor || :
;;
upgrade)
rm_acrn

View File

@ -5,6 +5,8 @@
set -e
. /usr/share/debconf/confmodule
rm_acrn()
{
rm -f /boot/acrn-@acrnversion@.config
@ -31,9 +33,7 @@ rm_acrn()
case "$1" in
deconfigure)
rm_acrn
if command -v update-grub > /dev/null && [ -d /boot/grub ]; then
update-grub || :
fi
db_purge acrn-hypervisor || :
;;
remove|upgrade|failed-upgrade)

1
debian/acrn-hypervisor.triggers vendored Normal file
View File

@ -0,0 +1 @@
activate-await grub-acrn-update

View File

@ -6,7 +6,7 @@
set -e
case "$1" in
configure)
configure|triggered)
if command -v update-grub > /dev/null && [ -d /boot/grub ]; then
update-grub || :
fi

1
debian/grub-acrn.triggers vendored Normal file
View File

@ -0,0 +1 @@
interest-await grub-acrn-update