summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-10-13 08:47:14 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-10-13 08:47:14 (EDT)
commit163994fc932521e88d5fcfda34ec263dc1664754 (patch)
tree89c8c89371f8ea5cb46ecb1550016a889a46fe7e
parentabd3620f058c66704d671e392c5365b4656e9bba (diff)
profile/proteanos: Write /etc/group
Two of libarchive's unit tests fail without this file.
-rw-r--r--lib/profile/proteanos.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/profile/proteanos.sh b/lib/profile/proteanos.sh
index ee3627d..df583ef 100644
--- a/lib/profile/proteanos.sh
+++ b/lib/profile/proteanos.sh
@@ -223,6 +223,8 @@ prof_proteanos_configure_system_native()
[ -r /etc/hostname ] && cp /etc/hostname "${root}/etc"
[ -e "${root}/etc/passwd" ] || printf \
'root::0:0:root:/root:/bin/sh\n' >"${root}/etc/passwd"
+ [ -e "${root}/etc/group" ] || printf \
+ 'root:x:0:\n' >"${root}/etc/group"
}
prof_proteanos_configure_system_foreign()
@@ -234,4 +236,6 @@ prof_proteanos_configure_system_foreign()
printf 'proteanos\n' >"${root}/etc/hostname"
[ -e "${root}/etc/passwd" ] || printf \
'root::0:0:root:/root:/bin/sh\n' >"${root}/etc/passwd"
+ [ -e "${root}/etc/group" ] || printf \
+ 'root:x:0:\n' >"${root}/etc/group"
}