summaryrefslogtreecommitdiffstats
path: root/src/initramfs/scripts/bin/servconfig
diff options
context:
space:
mode:
Diffstat (limited to 'src/initramfs/scripts/bin/servconfig')
-rwxr-xr-xsrc/initramfs/scripts/bin/servconfig10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/initramfs/scripts/bin/servconfig b/src/initramfs/scripts/bin/servconfig
index 84544e23..f3b00519 100755
--- a/src/initramfs/scripts/bin/servconfig
+++ b/src/initramfs/scripts/bin/servconfig
@@ -99,8 +99,10 @@ dlocale
#############################################################################
# setup passwd and shadow for local system users like root, bin, daemon and
# nobody if no user/admin provided passwd exists ... fixme: see #206
-[ ! -e /rootfs/etc/shadow ] && \
- basepasswd $(sed "/+::0/d;s/root://;s/:.*//" /rootfs/etc/shadow 2>/dev/null)
+if [ ! -e /initramfs/plugin-conf/auth.conf ]; then
+ [ ! -e /rootfs/etc/shadow ] && \
+ basepasswd $(sed "/+::0/d;s/root://;s/:.*//" /rootfs/etc/shadow 2>/dev/null)
+fi
#############################################################################
# dns and ip configuration
@@ -174,8 +176,8 @@ config_udev
# (check for runlevel scripts, passwd entries, directories ...)
config_dreshal
-# configure automounter (should be moved to plugin)
-if [ "x$automnt" != "xno" ] ; then
+# configure automounter if auth-plugin is not used
+if [ "x$automnt" != "xno" -a ! -e /initramfs/plugin-conf/auth.conf ] ; then
# check if there is some user provided configuration (only auto.master is
# important) and skip automatic setup
if [ ! -f /rootfs/etc/auto.master ] ; then