]> 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>
Fri, 19 Aug 2016 13:49:33 +0000 (15:49 +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
(cherry picked from commit b8e6c051c6ad6ae3ae93db8e74f37dbc82c22514)

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

index eb98f8e7a9ac66d905d47572cef7e8b2e77432b9..69d96aa4344f02a33e4d8d8de382a6e253402392 100755 (executable)
@@ -284,6 +284,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
                         ip="[${ip}/${prefix}]"
                         mask=