]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/netroot.sh: remove the dhcp finished hook, if we have a handler
authorHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 15:20:51 +0000 (16:20 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:22:09 +0000 (17:22 +0100)
modules.d/40network/netroot.sh

index fa7e632d911fc26cc199b1dfbcc917e19257d317..8c7716bfd4b39de9195707ae53f2148fe3765934 100755 (executable)
@@ -67,6 +67,7 @@ source_hook netroot $netif
 # Run the handler; don't store the root, it may change from device to device
 # XXX other variables to export?
 if $handler $netif $netroot $NEWROOT; then
+    rm -f $hookdir/initqueue/finished/dhcp.sh
     # Network rootfs mount successful - save interface info for ifcfg etc.
     save_netinfo $netif
 fi