mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-15 15:42:06 +01:00
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>
12 lines
262 B
Bash
Executable File
12 lines
262 B
Bash
Executable File
#!/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
|