diff options
| author | Simon Rettberg | 2026-03-10 10:45:00 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2026-03-10 10:45:00 +0100 |
| commit | 48c4caea4fb0793be442bb5908e1a55b115db12a (patch) | |
| tree | bd2e491cb16ddf528a054d6053f52f147f740895 | |
| parent | [dnbd3-rootfs] Turn hook into service (diff) | |
| download | systemd-init-48c4caea4fb0793be442bb5908e1a55b115db12a.tar.gz systemd-init-48c4caea4fb0793be442bb5908e1a55b115db12a.tar.xz systemd-init-48c4caea4fb0793be442bb5908e1a55b115db12a.zip | |
[dnbd3-rootfs] Don't make /usr read-only in initrd
We have quite a few services and scripts that move things aroud or
modify config files in /usr - so don't let systemd make it read-only.
| -rw-r--r-- | modules.d/dnbd3-rootfs/configuration/usr-writable.conf | 3 | ||||
| -rwxr-xr-x | modules.d/dnbd3-rootfs/module-setup.sh | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules.d/dnbd3-rootfs/configuration/usr-writable.conf b/modules.d/dnbd3-rootfs/configuration/usr-writable.conf new file mode 100644 index 00000000..8317aab5 --- /dev/null +++ b/modules.d/dnbd3-rootfs/configuration/usr-writable.conf @@ -0,0 +1,3 @@ +[Manager] +# Don't make /usr read-only in initrd +ProtectSystem=false diff --git a/modules.d/dnbd3-rootfs/module-setup.sh b/modules.d/dnbd3-rootfs/module-setup.sh index 000223a0..6547dcf7 100755 --- a/modules.d/dnbd3-rootfs/module-setup.sh +++ b/modules.d/dnbd3-rootfs/module-setup.sh @@ -172,6 +172,9 @@ install() { # Make sure all services know about NEWROOT=/sysroot inst "$moddir/configuration/systemd-newroot.conf" \ "/etc/systemd/system.conf.d/systemd-newroot.conf" + # We move files aroud in init - don't make /usr read-only + inst "$moddir/configuration/usr-writable.conf" \ + "/etc/systemd/system.conf.d/usr-writable.conf" # Use terminal readline settings from the template system. inst /etc/inputrc /etc/inputrc # Set some aliases for the initramfs context. |
