summaryrefslogtreecommitdiffstats
path: root/modules.d/conf-tgz/module-setup.sh
blob: cf2ba0888cabeb2536cd85468fbfd0180c0b5c4e (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

	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"
}