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:
parent
d7f51489db
commit
36110bf036
|
@ -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
|
||||
;;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
activate-await grub-acrn-update
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
interest-await grub-acrn-update
|
Loading…
Reference in New Issue