Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-03-15 09:05:15 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-03-15 09:05:15 +0100
commit69f68ac358363ac31110fa1a1956539be60af313 (patch)
treeb96da08fe7b867ab16421809f7765cc60fcd71a3
parenta62127cf68379869d3e003fc916c86c5464d89aa (diff)
add systemd-journal group to target vm/machine not to host
-rwxr-xr-xcreate_hdd.sh3
-rwxr-xr-xprepare_stage3.sh3
2 files changed, 3 insertions, 3 deletions
diff --git a/create_hdd.sh b/create_hdd.sh
index fd68e60..38829da 100755
--- a/create_hdd.sh
+++ b/create_hdd.sh
@@ -88,8 +88,11 @@ mkdir root/.ssh
cp "$HOME/.ssh/id_rsa.pub" root/.ssh/authorized_keys
# install a build user and build directory
+# tty group for coreutils
+# systemd-journal group for systemd
cat >> etc/group <<EOF
tty:x:5:
+systemd-journal:x:190:
build:x:1001:
EOF
cat >> etc/passwd <<EOF
diff --git a/prepare_stage3.sh b/prepare_stage3.sh
index 2db5ece..7b4fdcb 100755
--- a/prepare_stage3.sh
+++ b/prepare_stage3.sh
@@ -21,9 +21,6 @@ if test ! -d $STAGE3_BUILD; then
# stage 2, for now we just copy the vm from stage1 after building
# and installing all packages from stage 2 and use it as new build
# machine.
-
- # systemd-journal group for systemd
- getent group systemd-journal >/dev/null || groupadd -g 190 systemd-journal
echo "Prepared the stage 3 build environment."
fi