port LKRG compatibility settings automation for VirtualBox hosts from systemd to dpkg trigger

This commit is contained in:
Patrick Schleizer 2021-08-01 13:11:18 -04:00
parent f03c7978c7
commit 5a65c35479
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48
3 changed files with 9 additions and 5 deletions

View File

@ -29,6 +29,12 @@ case "$1" in
abort-upgrade|abort-remove|abort-deconfigure)
;;
triggered)
echo "INFO: triggered $DPKG_MAINTSCRIPT_PACKAGE: '$DPKG_MAINTSCRIPT_PACKAGE' $DPKG_MAINTSCRIPT_PACKAGE DPKG_MAINTSCRIPT_NAME: '$DPKG_MAINTSCRIPT_NAME' $\@: '$@' 2: '$2'"
/usr/share/security-misc/lkrg/lkrg-virtualbox || true
exit 0
;;
*)
echo "$DPKG_MAINTSCRIPT_NAME called with unknown argument \`$1'" >&2
exit 1

View File

@ -9,4 +9,7 @@
## Activate initramfs hook that sets the sysctl values before init is executed.
activate-noawait update-initramfs
## LKRG /usr/share/security-misc/lkrg/lkrg-virtualbox
interest-noawait /usr/bin/vboxmanage
#### meta end

View File

@ -1,5 +0,0 @@
## Copyright (C) 2021 - 2021 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.
[Service]
ExecStartPre=/usr/share/security-misc/lkrg/lkrg-virtualbox