Skip to content

Commit 75ee9aa

Browse files
committed
Remove root passwords from rootfs
1 parent ad7d188 commit 75ee9aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/arch_specific.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# ------------ ------ -------
99
# ##ARCH_TTY## ttyS0 ttyAMA0
1010

11+
set -o errexit
12+
1113
ARCH="$1"
1214
ROOTFS_DIR="$2"
1315

@@ -20,3 +22,5 @@ fi
2022

2123
sed -i "s/##ARCH_TTY##/${TTY}/g" "$INITTAB_PATH"
2224
sed -i "s/##ARCH_TTY##/${TTY}/g" "${ROOTFS_DIR}/.profile"
25+
26+
sed -i "s/root:x:/root::/g" "${ROOTFS_DIR}/etc/passwd"

0 commit comments

Comments
 (0)