diff options
author | Simon Rettberg | 2024-02-09 16:34:05 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-02-09 16:34:05 +0100 |
commit | f4429e978c8a828b6beaf1f01cf395d22e1ea799 (patch) | |
tree | 8f9591831a528e784d86390aeb74fb55125dfb27 /modules.d/slx-uuid/module-setup.sh | |
parent | Extend service file template for scripts (diff) | |
download | systemd-init-f4429e978c8a828b6beaf1f01cf395d22e1ea799.tar.gz systemd-init-f4429e978c8a828b6beaf1f01cf395d22e1ea799.tar.xz systemd-init-f4429e978c8a828b6beaf1f01cf395d22e1ea799.zip |
Use slx_service helper to create service files
Diffstat (limited to 'modules.d/slx-uuid/module-setup.sh')
-rwxr-xr-x | modules.d/slx-uuid/module-setup.sh | 12 |
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" } |