Skip to content

Commit 55e738e

Browse files
committed
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>
1 parent 2874a98 commit 55e738e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
rootfs="${1}"
5+
6+
pushd "${rootfs}"
7+
8+
pushd ./usr/lib/systemd/system
9+
mkdir -p "multi-user.target.d"
10+
{ echo "[Unit]"; echo "Upholds=overlaybd-tcmu.service overlaybd-snapshotter.service"; } > "multi-user.target.d/10-overlaybd.conf"
11+
popd
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

0 commit comments

Comments
 (0)