]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ifup.sh: don't wait linkup when set static ip explicitly
authorHiroaki Mizuguchi <hiroaki-m@iij.ad.jp>
Tue, 28 Nov 2017 05:59:55 +0000 (14:59 +0900)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 5 Jul 2018 07:37:01 +0000 (09:37 +0200)
iface_has_carrier is skipped when set $dev. Fail curl fetch for root=live:<url>.

modules.d/40network/ifup.sh

index fb672413090849624bf4dd5ccd222ebcdc86845a..54981386cc6624461b7efd585eb7f8b7b09fcbdf 100755 (executable)
@@ -88,7 +88,7 @@ do_ipv6auto() {
 do_static() {
     strglobin $ip '*:*:*' && load_ipv6
 
-    if [ -z "$dev" ] && ! iface_has_carrier "$netif"; then
+    if ! iface_has_carrier "$netif"; then
         warn "No carrier detected on interface $netif"
         return 1
     elif ! linkup "$netif"; then