Create dummy group and passwd files if needed

This commit is contained in:
Andrew J. Hesford 2022-01-23 20:12:55 -05:00
parent 4c629e4aee
commit 3b26648884

View file

@ -100,8 +100,12 @@ build ()
add_file "/lib/libnss_files.so.2"
add_dir "/var/run"
add_dir "/var/log"
touch "${BUILDROOT}"/var/log/lastlog
[ -f "${BUILDROOT}"/etc/passwd ] || echo "root:x:0:0::/root:/bin/sh" > "${BUILDROOT}"/etc/passwd
[ -f "${BUILDROOT}"/etc/group ] || echo "root:x:0:" > "${BUILDROOT}"/etc/group
add_runscript
}