mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
Add overlaybd sysext mangle script to start the services automatically
This is consistent with other sysexts. Note that the sysext must be enabled at boot time for this to happen, otherwise you need to call `systemd-tmpfiles --create` and `systemctl daemon-reload` first. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
parent
2874a9898a
commit
55e738e9c2
11
build_library/sysext_mangle_flatcar-overlaybd
Executable file
11
build_library/sysext_mangle_flatcar-overlaybd
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
rootfs="${1}"
|
||||
|
||||
pushd "${rootfs}"
|
||||
|
||||
pushd ./usr/lib/systemd/system
|
||||
mkdir -p "multi-user.target.d"
|
||||
{ echo "[Unit]"; echo "Upholds=overlaybd-tcmu.service overlaybd-snapshotter.service"; } > "multi-user.target.d/10-overlaybd.conf"
|
||||
popd
|
||||
1
changelog/bugfixes/2025-10-01-overlaybd-autostart.md
Normal file
1
changelog/bugfixes/2025-10-01-overlaybd-autostart.md
Normal file
@ -0,0 +1 @@
|
||||
- Configured the services in the overlaybd sysext to start automatically like the other sysexts. Note that the sysext must be enabled at boot time for this to happen, otherwise you need to call `systemd-tmpfiles --create` and `systemctl daemon-reload` first.
|
||||
Loading…
x
Reference in New Issue
Block a user