summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-extra-script/module-setup.sh
diff options
context:
space:
mode:
authorSimon Rettberg2024-06-17 14:18:11 +0200
committerSimon Rettberg2024-06-17 14:18:11 +0200
commita74286a71d74306642d3858b0f6684d99b29a7ec (patch)
tree97e4d20e280b3dd77568dbf77e0489fa95a8f06b /modules.d/slx-extra-script/module-setup.sh
parent[slx-dmsetup] Better not encrypt the rootfs AFTER building the CoW layer (diff)
downloadsystemd-init-a74286a71d74306642d3858b0f6684d99b29a7ec.tar.gz
systemd-init-a74286a71d74306642d3858b0f6684d99b29a7ec.tar.xz
systemd-init-a74286a71d74306642d3858b0f6684d99b29a7ec.zip
[slx-extra-script] Add post-mount hook
Diffstat (limited to 'modules.d/slx-extra-script/module-setup.sh')
-rwxr-xr-xmodules.d/slx-extra-script/module-setup.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules.d/slx-extra-script/module-setup.sh b/modules.d/slx-extra-script/module-setup.sh
index da057429..9cc9bdbe 100755
--- a/modules.d/slx-extra-script/module-setup.sh
+++ b/modules.d/slx-extra-script/module-setup.sh
@@ -11,8 +11,11 @@ install() {
--wafter "s3-fetch-config.service" \
--before "s3-dnbd3root.service"
mkdir --parents "${initdir}/${systemdsystemunitdir}/initrd.target.wants"
- inst_simple "${moddir}/services/s3-extra-post-dmsetup.service" \
- "${systemdsystemunitdir}/s3-extra-post-dmsetup.service"
- ln_r "${systemdsystemunitdir}/s3-extra-post-dmsetup.service" \
- "${systemdsystemunitdir}/initrd.target.wants/s3-extra-post-dmsetup.service"
+ local i
+ for i in dmsetup mount; do
+ inst_simple "${moddir}/services/s3-extra-post-${i}.service" \
+ "${systemdsystemunitdir}/s3-extra-post-${i}.service"
+ ln_r "${systemdsystemunitdir}/s3-extra-post-${i}.service" \
+ "${systemdsystemunitdir}/initrd.target.wants/s3-extra-post-${i}.service"
+ done
}