mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-01 17:06:51 +00:00
debian: Add grub config helpers for python3-acrn-board-inspector
Installing python3-acrn-board-inspector should add a separate grub menu entry (which is also set as default) to ensure the kernel is parameterized correctly for the use with ACRN board inspector. So, rebooting after install will ensure the ACRN board inspector can run within the required environment. Deinstallation completely removes the this temporyr entry again. Remark: the required GRUB configuration files are linked to /var/lib/acrn-board-inspector (handled in maintainer scripts) to keep Debian packaging from adding them as conffiles, which would not remove the on 'apt remove' according to https://www.debian.org/doc/manuals/maint-guide/dother.en.html#conffiles Tracked-On: #8262 Signed-off-by: Helmut Buchsbaum <helmut.buchsbaum@opensource.tttech-industrial.com>
This commit is contained in:
committed by
acrnsi-robot
parent
3eacae5e50
commit
b02f991423
44
debian/python3-acrn-board-inspector.postrm
vendored
Normal file
44
debian/python3-acrn-board-inspector.postrm
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
# postrm script for acrn-board-inspector
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postrm> `remove'
|
||||
# * <postrm> `purge'
|
||||
# * <old-postrm> `upgrade' <new-version>
|
||||
# * <new-postrm> `failed-upgrade' <old-version>
|
||||
# * <new-postrm> `abort-install'
|
||||
# * <new-postrm> `abort-install' <old-version>
|
||||
# * <new-postrm> `abort-upgrade' <old-version>
|
||||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||||
# <overwriter-version>
|
||||
# for details, see https://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
remove)
|
||||
# remove links to package config files
|
||||
rm -f /etc/grub.d/20_acrn-board-inspector
|
||||
if command -v update-grub > /dev/null && [ -d /boot/grub ]; then
|
||||
update-grub || :
|
||||
fi
|
||||
;;
|
||||
purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user