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

Re: [PATCH 2/2] Write out configuration of FCoE to installed system





On 07/02/2009 04:00 PM, Bill Nottingham wrote:
Hans de Goede (hdegoede redhat com) said:
      def write(self, instPath, anaconda):
-        # erm, do we need todo anything here ?
+        if flags.test or not self.nics:
+            return
+
+        if not os.path.isdir(instPath + "/etc/fcoe"):
+            os.makedirs(instPath + "/etc/fcoe", 0755)
+
+        for nic in self.nics:
+            fd = os.open(instPath + "/etc/fcoe/cfg-" + nic,
+                         os.O_RDWR | os.O_CREAT)
+            os.write(fd, '# Created by anaconda\n')
+            os.write(fd, '# Enable/Disable FCoE service at the Ethernet port\n')
+            os.write(fd, 'FCOE_ENABLE="yes"\n')
+            os.write(fd, '# Indicate if DCB service is required at the Ethernet port\n')
+            os.write(fd, 'DCB_REQUIRED="no"\n')
+            os.close(fd)
+

Is this going to be a Red Hat specific config file?


No this file is used by the upstream fcoe-utils provided init script.

Regards,

Hans


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