summaryrefslogtreecommitdiffstats
path: root/modules.d/conf-tgz/module-setup.sh
blob: bfcb7d910c73d7c53df1c1f3c4b8ee8673edce11 (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
27
28
#!/usr/bin/env bash

check() {
	return 255
}
depends() {
	echo dnbd3-rootfs slx-tools
}
install() {
	# gzip and mktemp provided by busybox
	# tar is needed for some more advanced args
	inst_multiple tar

	slx_service "s3-fetch-config" "Download text-based config" \
		--wafter "s3-setup-bootif-network.service" \
		--wafter "s3-get-system-uuid.service"
	slx_service "s3-copy-openslx-config" "Copy final /opt/openslx/config to /sysroot" \
		--wafter "initrd-root-fs.target" \
		--wafter "s3-fetch-config.service"

	slx_service "s3-fetch-config-tgz" "Download config.tgz" \
		--after    "s3-fetch-config.service" \
		--requires "s3-fetch-config.service"
	slx_service "s3-unpack-config-tgz" "Unpack config.tgz to stage 4" \
		--after    "initrd-root-fs.target" \
		--after    "s3-fetch-config-tgz.service" \
		--requires "s3-fetch-config-tgz.service"
}