blob: 0c3600e2deb6a2acabc4d75f27380311e743dea3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env bash
check() {
return 255
}
depends() {
echo conf-tgz
}
install() {
slx_service "s3-extra-script" "Execute extra script from URL" \
--wafter "s3-fetch-config.service" \
--before "s3-connect-image.service" \
--before "s3-prepare-rw-layer.service"
mkdir --parents "${initdir}/${systemdsystemunitdir}/initrd.target.wants"
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
}
|