forked from pool/ignition
61a85e88f4
(take from Combustion) OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=64
13 lines
355 B
Bash
13 lines
355 B
Bash
#!/bin/bash
|
|
|
|
. /lib/dracut-lib.sh
|
|
|
|
if [ -f /run/ignition/neednet ] && ! getargbool 0 'rd.neednet'; then
|
|
echo "rd.neednet=1" > /etc/cmdline.d/40-ignition-neednet.conf
|
|
|
|
# Re-trigger generation of network rules
|
|
. /lib/dracut/hooks/pre-udev/60-net-genrules.sh
|
|
udevadm control --reload
|
|
udevadm trigger --subsystem-match net --action add
|
|
fi
|