summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-addons/module-setup.sh
blob: db186ab74168dd03d4842d64b0909e6747f987f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
check() {
	# Tell dracut that this module should only be included if it is required
	# explicitly.
	return 255
}
depends() {
	echo dnbd3-rootfs
}
install() {
	inst "${moddir}/services/ldconfig-stage4.service" \
		"/opt/openslx/services/ldconfig-stage4.service"
	# Install service that enables addons
	# Order after busybox-stage4, as the addon-required check script
	# depends on ash being available in stage4
	slx_service "s3-setup-addons" "Enable SLX addons" \
		--after "initrd-root-fs.target" \
		--wafter "s3-install-busybox-stage4.service"
}