blob: 29aae9ea68a1e4111414b524739b251e7aa804f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/env bash
check() {
return 255
}
depends() {
echo dnbd3-rootfs slx-tools
}
install() {
inst_multiple tar mktemp gzip
for _name in "s3-fetch-config" "s3-fetch-config-tgz" "s3-unpack-config-tgz"; do
inst "$moddir/hooks/${_name}.sh" \
"/usr/local/bin/${_name}.sh"
inst_simple "${moddir}/services/${_name}.service" \
"${systemdsystemunitdir}/${_name}.service"
mkdir --parents \
"${initdir}/${systemdsystemunitdir}/dracut-pre-pivot.service.requires"
ln_r "${systemdsystemunitdir}/${_name}.service" \
"${systemdsystemunitdir}/dracut-pre-pivot.service.requires/${_name}.service"
mkdir --parents \
"${initdir}/${systemdsystemunitdir}/dracut-mount.service.wants"
ln_r "${systemdsystemunitdir}/${_name}.service" \
"${systemdsystemunitdir}/dracut-mount.service.wants/${_name}.service"
done
}
|