fix group creation

This commit is contained in:
Tobias Powalowski 2022-05-04 21:26:15 +02:00
parent e34a27f0e0
commit d338dd196b
3 changed files with 3 additions and 2 deletions

View file

@ -35,7 +35,7 @@ if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
_clean_container "${1}" 2>/dev/null
fi
_change_pacman_conf "${1}" || exit 1
_fix_groups
_fix_groups "${1}"
_reproducibility "${1}"
_set_hostname "${1}" || exit 1
echo "Finished container setup in ${1} ."

View file

@ -31,7 +31,7 @@ if grep -q "^\[testing" /etc/pacman.conf; then
sed -i -e '/^#\[community-testing\]/ { n ; s/^#// }' "${1}/etc/pacman.conf"
sed -i -e 's:^#\[testing\]:\[testing\]:g' -e 's:^#\[community-testing\]:\[community-testing\]:g' "${1}/etc/pacman.conf"
fi
_fix_groups
_fix_groups "${1}"
_reproducibility "${1}"
_set_hostname "${1}" || exit 1
echo "Finished container setup in ${1} ."

View file

@ -192,4 +192,5 @@ _fix_groups() {
echo "Recreate system groups ..."
rm "${1}"/etc/{group,gshadow}
systemd-nspawn -q -D "${1}" /bin/bash -c "pacman -Sy filesystem --config ${_PACMAN_CONF} --ignore systemd-resolvconf --noconfirm" >/dev/null 2>&1
systemd-nspawn -q -D "${1}" groupadd netdev >/dev/null 2>&1
}