diff --git a/debian/security-misc.postinst b/debian/security-misc.postinst index c01e24e..11e808d 100644 --- a/debian/security-misc.postinst +++ b/debian/security-misc.postinst @@ -29,6 +29,12 @@ case "$1" in ;; esac +[ -n "$DEBIAN_FRONTEND" ] || DEBIAN_FRONTEND="noninteractive" +[ -n "$DEBIAN_PRIORITY" ] || DEBIAN_PRIORITY="critical" +[ -n "$DEBCONF_NOWARNINGS" ] || DEBCONF_NOWARNINGS="yes" +[ -n "$APT_LISTCHANGES_FRONTEND" ] || APT_LISTCHANGES_FRONTEND="text" +export POLICYRCD DEBIAN_FRONTEND DEBIAN_PRIORITY DEBCONF_NOWARNINGS APT_LISTCHANGES_FRONTEND + ## Jul 07 20:35:39 host sudo[16090]: PAM unable to dlopen(pam_cgfs.so): /lib/security/pam_cgfs.so: cannot open shared object file: No such file or directory ## Jul 07 20:35:39 host sudo[16090]: PAM adding faulty module: pam_cgfs.so ## --package hangs in Qubes updater since it starts whiptail for interactive dpkg configuration dialog. diff --git a/debian/security-misc.prerm b/debian/security-misc.prerm index e020b84..95a420a 100644 --- a/debian/security-misc.prerm +++ b/debian/security-misc.prerm @@ -15,6 +15,12 @@ true " ##################################################################### " +[ -n "$DEBIAN_FRONTEND" ] || DEBIAN_FRONTEND="noninteractive" +[ -n "$DEBIAN_PRIORITY" ] || DEBIAN_PRIORITY="critical" +[ -n "$DEBCONF_NOWARNINGS" ] || DEBCONF_NOWARNINGS="yes" +[ -n "$APT_LISTCHANGES_FRONTEND" ] || APT_LISTCHANGES_FRONTEND="text" +export POLICYRCD DEBIAN_FRONTEND DEBIAN_PRIORITY DEBCONF_NOWARNINGS APT_LISTCHANGES_FRONTEND + ## pam-auth-update is usually used in postinst and prerm. ## Added extra space after /var to avoid lintian false positive warning. #grep -r -l pam-auth-update /var /lib/dpkg/info