From 8d2ba11188f8a7e04fb3bf1367d8a687d23c0c9c Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 4 May 2022 19:47:23 +0200 Subject: [PATCH] add missing groups --- usr/bin/archboot-aarch64-create-container.sh | 1 + usr/bin/archboot-x86_64-create-container.sh | 1 + usr/lib/archboot/container.sh | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/usr/bin/archboot-aarch64-create-container.sh b/usr/bin/archboot-aarch64-create-container.sh index c70252d06..afa131ae5 100755 --- a/usr/bin/archboot-aarch64-create-container.sh +++ b/usr/bin/archboot-aarch64-create-container.sh @@ -35,6 +35,7 @@ if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then _clean_container "${1}" 2>/dev/null fi _change_pacman_conf "${1}" || exit 1 +_add_groups _reproducibility "${1}" _set_hostname "${1}" || exit 1 echo "Finished container setup in ${1} ." diff --git a/usr/bin/archboot-x86_64-create-container.sh b/usr/bin/archboot-x86_64-create-container.sh index 3331c26c2..cb19362a5 100755 --- a/usr/bin/archboot-x86_64-create-container.sh +++ b/usr/bin/archboot-x86_64-create-container.sh @@ -31,6 +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 +_add_groups _reproducibility "${1}" _set_hostname "${1}" || exit 1 echo "Finished container setup in ${1} ." diff --git a/usr/lib/archboot/container.sh b/usr/lib/archboot/container.sh index 13ac2800f..5c7bc5166 100644 --- a/usr/lib/archboot/container.sh +++ b/usr/lib/archboot/container.sh @@ -187,3 +187,9 @@ _set_hostname() { echo "Setting hostname to archboot ..." echo 'archboot' > "${1}/etc/hostname" } + +_add_groups() { + grep -qw network /etc/group || groupadd network + grep -qw tss /etc/group || groupadd tss + grep -qw netdev /etc/group || groupadd netdev +}