2020-08-10 11:28:39 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. /lib/dracut-lib.sh
|
|
|
|
|
|
|
|
if [ -f /run/ignition/neednet ] && ! getargbool 0 'rd.neednet'; then
|
2020-09-11 10:27:57 +02:00
|
|
|
echo "rd.neednet=1" > /etc/cmdline.d/40-ignition-neednet.conf
|
2020-08-10 11:28:39 +02:00
|
|
|
|
|
|
|
# Re-trigger generation of network rules
|
|
|
|
. /lib/dracut/hooks/pre-udev/60-net-genrules.sh
|
|
|
|
fi
|