Create dummy group and passwd files if needed
This commit is contained in:
parent
4c629e4aee
commit
3b26648884
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue