mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
fix group creation
This commit is contained in:
parent
e34a27f0e0
commit
d338dd196b
3 changed files with 3 additions and 2 deletions
|
@ -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} ."
|
||||
|
|
|
@ -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} ."
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue