]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - modules.d/40network/net-lib.sh
network:ibft put IPv6 IP in brackets
[thirdparty/dracut.git] / 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