standalone passwd,group

This commit is contained in:
illiliti 2020-02-24 19:20:50 +03:00
parent fc870ea514
commit 1edd4a1185
3 changed files with 19 additions and 26 deletions

14
files/group Normal file
View File

@ -0,0 +1,14 @@
root:x:0:
tty:x:5:
dialout:x:11:
uucp:x:14:
kmem:x:3:
input:x:25:
video:x:13:
audio:x:12:
lp:x:10:
disk:x:9:
cdrom:x:16:
tape:x:6:
kvm:x:24:
floppy:x:8:

2
files/passwd Normal file
View File

@ -0,0 +1,2 @@
root:x:0:0::/root:/bin/sh
nobody:x:99:99::/:/bin/false

View File

@ -380,32 +380,9 @@ luks_discard="$luks_discard"
luks_args="$luks_args" luks_args="$luks_args"
EOF EOF
# needed for devmgr install -m644 "${filesdir}/passwd" -t "$wrkdir"
cat << EOF > "${wrkdir}/etc/group" install -m644 "${filesdir}/group" -t "$wrkdir"
root:x:0: install -m755 "${filesdir}/init" -t "$wrkdir"
tty:x:5:
dialout:x:11:
uucp:x:14:
kmem:x:3:
input:x:25:
video:x:13:
audio:x:12:
lp:x:10:
disk:x:9:
cdrom:x:16:
tape:x:6:
kvm:x:24:
floppy:x:8:
EOF
# needed for devmgr
cat << EOF > "${wrkdir}/etc/passwd"
root:x:0:0::/root:/bin/sh
nobody:x:99:99::/:/bin/false
EOF
# install init script
install -m755 "${filesdir}/init" -t "$wrkdir"
} }
create_initramfs() { create_initramfs() {