File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,16 @@ fix_ro_paths() {
42
42
EOF
43
43
}
44
44
45
+ # fix_ro_run is a workaround for units failing to write in /run due to ProtectSystem=strict
46
+ fix_ro_run () {
47
+ mkdir -p " /run/systemd/system/$1 .d"
48
+ cat << -EOF > "/run/systemd/system/$1 .d/zzz-lxc-rorun.conf"
49
+ # This file was created by distrobuilder
50
+ [Service]
51
+ ReadWritePaths=/run
52
+ EOF
53
+ }
54
+
45
55
# fix_nm_link_state forces the network interface to a DOWN state ahead of NetworkManager starting up
46
56
fix_nm_link_state () {
47
57
[ -e " /sys/class/net/$1 " ] || return 0
198
208
fix_systemd_udev_trigger
199
209
fix_systemd_sysctl
200
210
211
+ # Fix issues with /run not being writable.
212
+ fix_ro_run systemd-nsresourced.service
213
+
201
214
# Mask some units.
202
215
fix_systemd_mask dev-hugepages.mount
203
216
fix_systemd_mask run-ribchester-general.mount
You can’t perform that action at this time.
0 commit comments