From 1edd4a11856e650c3d9c6d8f1fb3276ab8e149e9 Mon Sep 17 00:00:00 2001 From: illiliti Date: Mon, 24 Feb 2020 19:20:50 +0300 Subject: [PATCH] standalone passwd,group --- files/group | 14 ++++++++++++++ files/passwd | 2 ++ tinyramfs | 29 +++-------------------------- 3 files changed, 19 insertions(+), 26 deletions(-) create mode 100644 files/group create mode 100644 files/passwd diff --git a/files/group b/files/group new file mode 100644 index 0000000..565203c --- /dev/null +++ b/files/group @@ -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: diff --git a/files/passwd b/files/passwd new file mode 100644 index 0000000..fd28f7b --- /dev/null +++ b/files/passwd @@ -0,0 +1,2 @@ +root:x:0:0::/root:/bin/sh +nobody:x:99:99::/:/bin/false diff --git a/tinyramfs b/tinyramfs index e1bcbc2..d6ac523 100755 --- a/tinyramfs +++ b/tinyramfs @@ -380,32 +380,9 @@ luks_discard="$luks_discard" luks_args="$luks_args" EOF - # needed for devmgr - cat << EOF > "${wrkdir}/etc/group" -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: -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" + install -m644 "${filesdir}/passwd" -t "$wrkdir" + install -m644 "${filesdir}/group" -t "$wrkdir" + install -m755 "${filesdir}/init" -t "$wrkdir" } create_initramfs() {