diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-03-01 18:36:53 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-03-01 18:36:53 +0100 |
commit | 99b2a509e935d35f95b04f9a99a7b1ff252e470d (patch) | |
tree | 9ea7fc32e91e5b6caef202c2355554ae5b8ceecb /create_hdd.sh | |
parent | 0c0d649b87e2b487f3b18f9d021cfb17891e7b09 (diff) | |
download | bootstrap32-99b2a509e935d35f95b04f9a99a7b1ff252e470d.tar.xz |
fixed bugs in pam, building pam in stage3
fixed bugs in create_hdd.sh (groups, build user, /dev filesystem)
Diffstat (limited to 'create_hdd.sh')
-rwxr-xr-x | create_hdd.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/create_hdd.sh b/create_hdd.sh index 2862156..78084cf 100755 --- a/create_hdd.sh +++ b/create_hdd.sh @@ -48,12 +48,11 @@ cat >etc/init/boot <<EOF #!/bin/sh mount -t proc proc /proc ln -s /proc/self/fd /dev/fd -mkdir /dev/pts -mount -t devpts devpts /dev/pts -ln -s /proc/self/fd /dev/fd ln -s /proc/self/fd/0 /dev/stdin ln -s /proc/self/fd/1 /dev/stdout ln -s /proc/self/fd/2 /dev/stderr +mkdir /dev/pts +mount -t devpts devpts /dev/pts ln -s /proc/kcore /dev/core mount -t sysfs sys /sys mount -o remount,rw / @@ -88,6 +87,7 @@ cp "$HOME/.ssh/id_rsa.pub" root/.ssh/authorized_keys # install a build user and build directory cat >> etc/group <<EOF +tty:x:5: build:x:1001: EOF cat >> etc/passwd <<EOF @@ -97,9 +97,8 @@ mkdir -p build mkdir build/.ssh cp "$HOME/.ssh/id_rsa.pub" build/.ssh/authorized_keys chown 1001:1001 build -# TODO: why does su require a password though we want to login via -# SSH and key only!? -#echo 'build:xx' | chpasswd +# default PAM rules expect a password to be set for su? +echo 'build:xx' | chpasswd # add some test programs to test the C and C++ compiler |