Merge pull request #3322 from flatcar/chewi/mangle-overlaybd

Add overlaybd sysext mangle script to start the services automatically
This commit is contained in:
James Le Cuirot 2025-10-30 09:59:50 +00:00 committed by GitHub
commit 9c28b3a073
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View 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

View 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.