mmdebstrap/hooks/busybox/setup00.sh

13 lines
187 B
Bash
Executable file

#!/bin/sh
set -exu
rootdir="$1"
mkdir -p "$rootdir/bin"
echo root:x:0:0:root:/root:/bin/sh > "$rootdir/etc/passwd"
cat << END > "$rootdir/etc/group"
root:x:0:
mail:x:8:
utmp:x:43:
END