summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-network
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-network')
-rwxr-xr-xmodules.d/slx-network/module-setup.sh12
-rw-r--r--modules.d/slx-network/services/s3-parse-network-kcl.service2
-rw-r--r--modules.d/slx-network/services/s3-setup-bootif-network.service2
3 files changed, 8 insertions, 8 deletions
diff --git a/modules.d/slx-network/module-setup.sh b/modules.d/slx-network/module-setup.sh
index 6e28ba1f..498c7102 100755
--- a/modules.d/slx-network/module-setup.sh
+++ b/modules.d/slx-network/module-setup.sh
@@ -39,9 +39,9 @@ install() {
inst_simple "${moddir}/services/${_name}.service" \
"${systemdsystemunitdir}/${_name}.service"
mkdir --parents \
- "${initdir}/${systemdsystemunitdir}/dracut-cmdline.service.requires"
+ "${initdir}/${systemdsystemunitdir}/initrd.target.wants"
ln_r "${systemdsystemunitdir}/${_name}.service" \
- "${systemdsystemunitdir}/dracut-cmdline.service.requires/${_name}.service"
+ "${systemdsystemunitdir}/initrd.target.wants/${_name}.service"
# Setup bootif network: bridge, vlan, dhcp, ...
_name="s3-setup-bootif-network"
inst "$moddir/hooks/${_name}.sh" \
@@ -49,9 +49,9 @@ install() {
inst_simple "${moddir}/services/${_name}.service" \
"${systemdsystemunitdir}/${_name}.service"
mkdir --parents \
- "${initdir}/${systemdsystemunitdir}/dracut-initqueue.service.wants"
+ "${initdir}/${systemdsystemunitdir}/initrd.target.wants"
ln_r "${systemdsystemunitdir}/${_name}.service" \
- "${systemdsystemunitdir}/dracut-initqueue.service.wants/${_name}.service"
+ "${systemdsystemunitdir}/initrd.target.wants/${_name}.service"
# Copy files related to networking. Must be the very last thing before switchroot to
# make sure nothing else tries to meddle with these after copying, e.g. slx-ssl.
_name="s3-copy-network-files"
@@ -60,9 +60,9 @@ install() {
inst_simple "${moddir}/services/${_name}.service" \
"${systemdsystemunitdir}/${_name}.service"
mkdir --parents \
- "${initdir}/${systemdsystemunitdir}/dracut-pre-pivot.service.requires"
+ "${initdir}/${systemdsystemunitdir}/initrd.target.wants"
ln_r "${systemdsystemunitdir}/${_name}.service" \
- "${systemdsystemunitdir}/dracut-pre-pivot.service.requires/${_name}.service"
+ "${systemdsystemunitdir}/initrd.target.wants/${_name}.service"
# hooks
inst_hook pre-pivot 10 "${moddir}/hooks/configure-jumbo-frames.sh"
diff --git a/modules.d/slx-network/services/s3-parse-network-kcl.service b/modules.d/slx-network/services/s3-parse-network-kcl.service
index da0445ca..89ffcecf 100644
--- a/modules.d/slx-network/services/s3-parse-network-kcl.service
+++ b/modules.d/slx-network/services/s3-parse-network-kcl.service
@@ -1,8 +1,10 @@
[Unit]
Description=Extract network config from KCL
DefaultDependencies=no
+# Need MAC extracted from cmdline
Wants=dracut-cmdline.service
After=dracut-cmdline.service
+# We generate a naming rule for the boot interface
Wants=systemd-udevd.service
Before=systemd-udevd.service
IgnoreOnIsolate=true
diff --git a/modules.d/slx-network/services/s3-setup-bootif-network.service b/modules.d/slx-network/services/s3-setup-bootif-network.service
index 227a8ff6..4b0ed4b2 100644
--- a/modules.d/slx-network/services/s3-setup-bootif-network.service
+++ b/modules.d/slx-network/services/s3-setup-bootif-network.service
@@ -4,8 +4,6 @@ DefaultDependencies=no
IgnoreOnIsolate=true
Wants=s3-parse-network-kcl.service
After=s3-parse-network-kcl.service
-Before=dracut-pre-mount.service
-Before=s3-dnbd3root.service
[Service]
Type=oneshot