Skip to content

Commit 9c28b3a

Browse files
authored
Merge pull request #3322 from flatcar/chewi/mangle-overlaybd
Add overlaybd sysext mangle script to start the services automatically
2 parents bb481da + 55e738e commit 9c28b3a

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)