[PATCH] Put [] around ipv6 addr on the dracut cmdline (#605300)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 pyanaconda/storage/devices.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index 8d09b94..6b110ca 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -3427,6 +3427,11 @@ class iScsiDiskDevice(DiskDevice, NetworkStorageDevice):
         if self.ibft:
             return "iscsi_firmware"
 
+        address = self.node.address
+        # surround ipv6 addresses with []
+        if ":" in address:
+            address = "[%s]" % address
+
         netroot="netroot=iscsi:"
         auth = self.node.getAuth()
         if auth:
@@ -3435,8 +3440,7 @@ class iScsiDiskDevice(DiskDevice, NetworkStorageDevice):
                 netroot += ":%s:%s" % (auth.reverse_username,
                                        auth.reverse_password)
 
-        netroot += "@%s::%d::%s" % (self.node.address, self.node.port,
-                                    self.node.name)
+        netroot += "@%s::%d::%s" % (address, self.node.port, self.node.name)
 
         netroot += " iscsi_initiator=%s" % self.initiator
 
-- 
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux