summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-12-06 15:59:13 -0500
committerBill Nottingham <notting@redhat.com>2007-12-07 13:18:10 -0500
commita4dc3d4e1e92cb39fbc6ee79238524248162c416 (patch)
tree77fbb364883f543d713e412d93e2fc18a3ec0316 /scripts
parentcba2e070791ad88aa21bccf0525a07e78b007d09 (diff)
downloadanaconda-a4dc3d4e1e92cb39fbc6ee79238524248162c416.tar.gz
anaconda-a4dc3d4e1e92cb39fbc6ee79238524248162c416.tar.xz
anaconda-a4dc3d4e1e92cb39fbc6ee79238524248162c416.zip
Use the passwd and group from the second stage, rather than create our own.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mk-images18
1 files changed, 3 insertions, 15 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index 006314fa3..55c82f5ff 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -350,16 +350,6 @@ makeproductfile() {
setupShellEnvironment() {
# setup password/group entries
- cat > $MBD_DIR/etc/passwd << EOF
-root::0:0::/:/sbin/loader
-debug::0:0:debug shell:/:/bin/bash
-sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
-EOF
- cat > $MBD_DIR/etc/group << EOF
-root:x:0:root
-tty:x:5:
-EOF
- echo "sshd:x:74:" >> $MBD_DIR/etc/group
echo "tcp 6 TCP" > $MBD_DIR/etc/protocols
# PAM configuration
@@ -626,10 +616,6 @@ makeinitrd() {
esac
done
- cat > $MBD_DIR/etc/passwd << EOF
- root::0:0:root:/:/bin/bash
-EOF
-
# set up the arch bits
echo $arch > $MBD_DIR/etc/arch
@@ -650,7 +636,9 @@ EOF
install -m 644 $SCREENFONT $MBD_DIR/etc/screenfont.gz
fi
install -m 644 $MYLANGTABLE $MBD_DIR/etc/lang-table
-
+ install -m 644 $IMGPATH/etc/passwd $MBD_DIR/etc/passwd
+ install -m 644 $IMGPATH/etc/group $MBD_DIR/etc/group
+
install -m 644 $LOADERBINDIR/$MYLOADERTR $MBD_DIR/etc/loader.tr
for i in a/ansi d/dumb l/linux s/screen v/vt100 v/vt100-nav v/vt102 x/xterm x/xterm-color g/gnome ; do
[ -f $IMGPATH/usr/share/terminfo/$i ] && \