summaryrefslogtreecommitdiffstats
path: root/core/modules/pam-slx-plug
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-08 15:21:58 +0200
committerSimon Rettberg2019-04-08 15:21:58 +0200
commitede26d9d62406d265c7d54120bd78ec1d6b00144 (patch)
tree92c1ad904dee937b6375364971ed9b4f576d5e6d /core/modules/pam-slx-plug
parent[rootfs-stage32] Fix detecting single digit type MBR partitions (diff)
downloadmltk-ede26d9d62406d265c7d54120bd78ec1d6b00144.tar.gz
mltk-ede26d9d62406d265c7d54120bd78ec1d6b00144.tar.xz
mltk-ede26d9d62406d265c7d54120bd78ec1d6b00144.zip
[run-virt/pam-slx-plug] Honor SHARE_NO_HOME_WARN
Diffstat (limited to 'core/modules/pam-slx-plug')
-rw-r--r--core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback b/core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback
index c1e966f6..695dccaa 100644
--- a/core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback
+++ b/core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback
@@ -88,7 +88,8 @@ if [ -n "$PIDS" ]; then
kill -9 $PIDS # Kill any leftovers; No quotes
fi
-if ! isHomeMounted; then
+# Only if SHARE_NO_HOME_WARN is empty or 0
+if [ -z "${SHARE_NO_HOME_WARN%0}" ] && ! isHomeMounted; then
LOG_COMBINED=$(mktemp)
[ -n "$LOGFILES" ] && cat ${LOGFILES} > "$LOG_COMBINED" # No quotes
slxlog --delete "pam-ad-mount" "Mount of '${NETWORK_HOME}' to '${PERSISTENT_HOME_DIR}' failed." "${LOG_COMBINED}"