]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network:ibft put IPv6 IP in brackets
authorHarald Hoyer <harald@redhat.com>
Wed, 17 Aug 2016 14:25:09 +0000 (16:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 17 Aug 2016 14:26:13 +0000 (16:26 +0200)
ip=2620:0052:0000:2220:0226:b9ff:fe81:cde4::[2620:0052:0000:2220:0000:0000:0000:03fe]:64::ibft0:none

should be

ip=[2620:0052:0000:2220:0226:b9ff:fe81:cde4]::[2620:0052:0000:2220:0000:0000:0000:03fe]:64::ibft0:none

https://bugzilla.redhat.com/show_bug.cgi?id=1322592#c19

modules.d/40network/net-lib.sh

index de334d98217dbd7e34c27224f2624299115104c9..3459e898cfe5e5d301de16e87827edf46822ed1a 100755 (executable)
@@ -277,6 +277,7 @@ ibft_to_cmdline() {
                 [ -e ${iface}/hostname ] && hostname=$(read a < ${iface}/hostname; echo $a)
                 if [ "$family" = "ipv6" ] ; then
                     if [ -n "$ip" ] ; then
+                        ip="[$ip]"
                         [ -n "$prefix" ] || prefix=64
                         mask="$prefix"
                     fi