diff options
-rw-r--r-- | debian/libpam-runtime.prerm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/libpam-runtime.prerm b/debian/libpam-runtime.prerm index ec239237..21cd2304 100644 --- a/debian/libpam-runtime.prerm +++ b/debian/libpam-runtime.prerm @@ -1,8 +1,10 @@ #!/bin/sh set -e - -if [ "$1" = remove ]; then +# If libpam-runtime is being removed, which requires +# --force-remove-essential, don't generate an infinite loop with lack +# of profiles. +if [ "$1" = remove ] && [ "$2" != "" ]; then pam-auth-update --package --remove unix fi |