summaryrefslogtreecommitdiffstats
path: root/src/initramfs
diff options
context:
space:
mode:
authorVolker Uhrig2011-09-14 16:15:58 +0200
committerVolker Uhrig2011-09-14 16:15:58 +0200
commitdf0500e35f66592ef09f922968fe8261bc26f887 (patch)
tree874599fcb2cd4a015585dae646a31d3e1b98a269 /src/initramfs
parent* auth plugin from unstable with modifications (diff)
downloadcore-df0500e35f66592ef09f922968fe8261bc26f887.tar.gz
core-df0500e35f66592ef09f922968fe8261bc26f887.tar.xz
core-df0500e35f66592ef09f922968fe8261bc26f887.zip
* Added compatibility for Ubuntu 10.10
* Added nscd support * Added checks for required packages
Diffstat (limited to 'src/initramfs')
-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