fix groups in container

This commit is contained in:
Tobias Powalowski 2023-06-21 07:11:42 +02:00
parent 63742ee527
commit 0795927ba3
2 changed files with 4 additions and 0 deletions

View file

@ -200,4 +200,7 @@ _set_hostname() {
echo 'archboot' > "${1}/etc/hostname"
}
_create_sysusers() {
systemd-sysusers --root="${1}
}
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -8,6 +8,7 @@ _parameters "$@"
_root_check
echo "Starting container creation..."
[[ -d "${1}" ]] || (echo "Creating directory ${1}..."; mkdir "${1}")
_create_sysusers
if echo "${_BASENAME}" | grep -qw "${_RUNNING_ARCH}"; then
# running system = creating system
_cachedir_check