diff options
author | Dirk von Suchodoletz | 2008-10-08 22:15:34 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2008-10-08 22:15:34 +0200 |
commit | 1cf46d024ab27c49812cb92dccadb66d5055cb6c (patch) | |
tree | 54407ec161ab641b6fd4147e522e6495902795d3 /initramfs/stage3-stuff/bin/servconfig | |
parent | Minor fix to create a directory. (diff) | |
download | core-1cf46d024ab27c49812cb92dccadb66d5055cb6c.tar.gz core-1cf46d024ab27c49812cb92dccadb66d5055cb6c.tar.xz core-1cf46d024ab27c49812cb92dccadb66d5055cb6c.zip |
Do not overwrite admin provided passwd/shadow.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2272 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/bin/servconfig')
-rwxr-xr-x | initramfs/stage3-stuff/bin/servconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/bin/servconfig b/initramfs/stage3-stuff/bin/servconfig index aba67ec3..c6b6fee7 100755 --- a/initramfs/stage3-stuff/bin/servconfig +++ b/initramfs/stage3-stuff/bin/servconfig @@ -94,7 +94,8 @@ localization "${country}" ############################################################################# # setup passwd and shadow for local system users like root, bin, daemon and # nobody if no user/admin provided passwd exists ... fixme: see #206 -basepasswd $(sed "/+::0/d;s/root://;s/:.*//" /rootfs/etc/shadow 2>/dev/null) +[ ! -e /rootfs/etc/shadow ] && \ + basepasswd $(sed "/+::0/d;s/root://;s/:.*//" /rootfs/etc/shadow 2>/dev/null) ############################################################################# # dns and ip configuration |