summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
diff options
context:
space:
mode:
authorJonathan Bauer2019-08-12 17:14:17 +0200
committerJonathan Bauer2019-08-12 17:39:43 +0200
commit215895c8e25cf3eb5a3c787854ac7ce3973991b5 (patch)
treef730a33432e60c502b449f3082c21c5dc698bce0 /builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
parent[slx-addons] glob whiteout file names (diff)
downloadsystemd-init-215895c8e25cf3eb5a3c787854ac7ce3973991b5.tar.gz
systemd-init-215895c8e25cf3eb5a3c787854ac7ce3973991b5.tar.xz
systemd-init-215895c8e25cf3eb5a3c787854ac7ce3973991b5.zip
[slx-network] use tmpfiles.d mechanism
for /run/network
Diffstat (limited to 'builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh')
-rw-r--r--builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh b/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
index 179254d0..86040e6e 100644
--- a/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
+++ b/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
@@ -14,6 +14,9 @@ done
mkdir -p "${NEWROOT}/etc/systemd/system"
cp -f "/opt/openslx/services/udhcpc-bootif.service" "${NEWROOT}/etc/systemd/system"
+# it requires /run/network
+echo 'd /run/network 0755 root root' > "${NEWROOT}/etc/tmpfiles.d/network.conf"
+
# activate it for the bridge or the physical interface if not bridged
systemctl --root "$NEWROOT" enable "udhcpc-bootif"