mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-23 14:20:44 -04:00
port LKRG compatibility settings automation for VirtualBox hosts from systemd to dpkg trigger
This commit is contained in:
parent
f03c7978c7
commit
5a65c35479
3 changed files with 9 additions and 5 deletions
6
debian/security-misc.postinst
vendored
6
debian/security-misc.postinst
vendored
|
@ -29,6 +29,12 @@ case "$1" in
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
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
|
echo "$DPKG_MAINTSCRIPT_NAME called with unknown argument \`$1'" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
3
debian/security-misc.triggers
vendored
3
debian/security-misc.triggers
vendored
|
@ -9,4 +9,7 @@
|
||||||
## Activate initramfs hook that sets the sysctl values before init is executed.
|
## Activate initramfs hook that sets the sysctl values before init is executed.
|
||||||
activate-noawait update-initramfs
|
activate-noawait update-initramfs
|
||||||
|
|
||||||
|
## LKRG /usr/share/security-misc/lkrg/lkrg-virtualbox
|
||||||
|
interest-noawait /usr/bin/vboxmanage
|
||||||
|
|
||||||
#### meta end
|
#### meta end
|
||||||
|
|
|
@ -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
|
|
Loading…
Add table
Add a link
Reference in a new issue