]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Need some way of differentiating these interfaces as being netboot.
authorWarren Togami <wtogami@redhat.com>
Wed, 29 Jul 2009 18:07:08 +0000 (14:07 -0400)
committerWarren Togami <wtogami@redhat.com>
Wed, 29 Jul 2009 18:07:08 +0000 (14:07 -0400)
modules.d/40network/write-ifcfg.sh

index 4590be90e45fdcb35b1b64ad0019a8c8770e4833..2728d4f241013609f7ec840c05e2dea3af334fde 100755 (executable)
@@ -18,6 +18,7 @@ for netif in $IFACES ; do
     echo "# Generated by dracut initrd" > /tmp/ifcfg/ifcfg-$netif
     echo "DEVICE=$netif" >> /tmp/ifcfg/ifcfg-$netif
     echo "ONBOOT=yes" >> /tmp/ifcfg/ifcfg-$netif
+    echo "NETBOOT=yes" >> /tmp/ifcfg/ifcfg-$netif
     if [ -f /tmp/net.$netif.lease ]; then
        echo "BOOTPROTO=dhcp" >> /tmp/ifcfg/ifcfg-$netif
     else