forked from josch/mmdebstrap
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
187 B
Bash
14 lines
187 B
Bash
4 years ago
|
#!/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
|