2020-08-15 22:50:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-05-24 02:14:08 +00:00
|
|
|
set -eu
|
|
|
|
|
2022-10-16 13:20:59 +00:00
|
|
|
if [ "${MMDEBSTRAP_VERBOSITY:-1}" -ge 3 ]; then
|
2022-05-24 02:14:08 +00:00
|
|
|
set -x
|
|
|
|
fi
|
2020-08-15 22:50:46 +00:00
|
|
|
|
|
|
|
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
|