Browse Source

35network-wicked: Run wicked early enough to unlock block devices

master
Daniel Molkentin 4 years ago committed by Daniel Molkentin
parent
commit
983aee0ef1
  1. 3
      modules.d/35network-wicked/module-setup.sh
  2. 2
      modules.d/35network-wicked/wicked-run.sh

3
modules.d/35network-wicked/module-setup.sh

@ -26,7 +26,7 @@ install() { @@ -26,7 +26,7 @@ install() {
inst_hook cmdline 99 "$moddir/wicked-config.sh"

# Seems to not execute if in initqueue/settled
inst_hook pre-mount 99 "$moddir/wicked-run.sh"
inst_hook pre-udev 99 "$moddir/wicked-run.sh"

inst_dir /etc/wicked/extensions
inst_dir /usr/share/wicked/schema
@ -51,6 +51,7 @@ install() { @@ -51,6 +51,7 @@ install() {

for unit in $wicked_units; do
sed -i 's/^After=.*/After=dbus.service/g' $initdir/$unit
sed -i 's/^Before=\(.*\)/Before=\1 dracut-pre-udev.service/g' $initdir/$unit
sed -i 's/^Wants=\(.*\)/Wants=\1 dbus.service/g' $initdir/$unit
sed -i -e \
'/^\[Unit\]/aDefaultDependencies=no\

2
modules.d/35network-wicked/wicked-run.sh

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/sh

# ensure wickedd is running
systemctl start wickedd
# detection wrapper around ifup --ifconfig "final xml" all
wicked bootstrap --ifconfig /tmp/dracut.xml all
systemctl stop wickedd

Loading…
Cancel
Save