summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-uuid/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-uuid/module-setup.sh')
-rwxr-xr-xmodules.d/slx-uuid/module-setup.sh12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules.d/slx-uuid/module-setup.sh b/modules.d/slx-uuid/module-setup.sh
index 9208c307..c89daae9 100755
--- a/modules.d/slx-uuid/module-setup.sh
+++ b/modules.d/slx-uuid/module-setup.sh
@@ -24,13 +24,7 @@ install() {
inst_multiple dmidecode
inst_hook pre-pivot 10 "$moddir/hooks/copy-system-uuid-to-newroot.sh"
- _name="s3-get-system-uuid"
- inst "$moddir/hooks/${_name}.sh" \
- "/usr/local/bin/${_name}.sh"
- inst_simple "${moddir}/services/${_name}.service" \
- "${systemdsystemunitdir}/${_name}.service"
- mkdir --parents \
- "${initdir}/${systemdsystemunitdir}/initrd.target.wants"
- ln_r "${systemdsystemunitdir}/${_name}.service" \
- "${systemdsystemunitdir}/initrd.target.wants/${_name}.service"
+ slx_service "s3-get-system-uuid" "Get system UUID" \
+ --wafter "s3-parse-network-kcl.service" \
+ --wafter "dracut-cmdline.service"
}