summaryrefslogtreecommitdiff
path: root/repo/system/shadow.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-12 23:00:02 +0000
committerdavidovski <david@davidovski.xyz>2022-03-12 23:00:02 +0000
commit1daf71c2980b1920bbdc2f07af669ebf6f0f82d6 (patch)
tree7ef6ac7612c7361f7d3657e8f32d5b0a17b2e602 /repo/system/shadow.xibuild
parentd215dd09cb60ed38dbcffe14f0c7cc748645ad79 (diff)
added patches for broken files
Diffstat (limited to 'repo/system/shadow.xibuild')
-rw-r--r--repo/system/shadow.xibuild41
1 files changed, 40 insertions, 1 deletions
diff --git a/repo/system/shadow.xibuild b/repo/system/shadow.xibuild
index 9441221..9d490c4 100644
--- a/repo/system/shadow.xibuild
+++ b/repo/system/shadow.xibuild
@@ -181,9 +181,48 @@ EOF
}
postinstall () {
+
+ [ ! -f /etc/passwd ] &&
+ cat > /etc/passwd << "EOF"
+root:x:0:0:root:/root:/bin/bash
+bin:x:1:1:bin:/dev/null:/usr/bin/false
+daemon:x:6:6:Daemon User:/dev/null:/usr/bin/false
+messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/usr/bin/false
+uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/usr/bin/false
+nobody:x:99:99:Unprivileged User:/dev/null:/usr/bin/false
+EOF
+
+ [ ! -f /etc/group ] &&
+ cat > /etc/group << "EOF"
+root:x:0:root
+bin:x:1:daemon
+sys:x:2:
+kmem:x:3:
+tape:x:4:
+tty:x:5:
+daemon:x:6:
+floppy:x:7:
+disk:x:8:
+lp:x:9:
+dialout:x:10:
+audio:x:11:
+video:x:12:
+utmp:x:13:
+usb:x:14:
+cdrom:x:15:
+adm:x:16:
+messagebus:x:18:
+input:x:24:
+mail:x:34:
+kvm:x:61:
+uuidd:x:80:
+wheel:x:97:
+nogroup:x:99:
+users:x:999:
+EOF
/usr/sbin/pwconv
/usr/sbin/grpconv
mkdir -p /etc/default
-
/usr/sbin/useradd -D --gid 999
+
}