Change in osmo-ci[master]: repo-install-test: disable ProtectHome option
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/30471 ) Change subject: repo-install-test: disable ProtectHome option ...................................................................... repo-install-test: disable ProtectHome option Comment out the ProtectHome option in systemd service files, as it doesn't work when repo-install-test runs with podman. Fix for: osmo-hlr.service: Failed to set up mount namespacing: Operation not supported Related: OS#5365 Change-Id: I394918fc61de36acce65ffb33defcb8fc21801c4 --- M scripts/repo-install-test/run-inside-podman.sh 1 file changed, 5 insertions(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/71/30471/1 diff --git a/scripts/repo-install-test/run-inside-podman.sh b/scripts/repo-install-test/run-inside-podman.sh index b70f894..90c2f76 100755 --- a/scripts/repo-install-test/run-inside-podman.sh +++ b/scripts/repo-install-test/run-inside-podman.sh @@ -380,9 +380,11 @@ services_feed="$services_feed $SERVICES_NIGHTLY" fi - # Disable CPUScheduling in systemd services, doesn't work inside podman - for i in $(grep -rl "^CPUScheduling" /lib/systemd/system); do - sed -i 's/^CPUScheduling/# CPUScheduling/g' "$i" + # Disable options in systemd services that don't work inside podman + for opt in CPUScheduling ProtectHome; do + for i in $(grep -rl "^$opt" /lib/systemd/system); do + sed -i "s/^$opt/# $opt/g" "$i" + done done systemctl daemon-reload -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/30471 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: I394918fc61de36acce65ffb33defcb8fc21801c4 Gerrit-Change-Number: 30471 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de> Gerrit-MessageType: newchange
participants (1)
-
osmith