On 07/02/2009 04:00 PM, Bill Nottingham wrote:
Hans de Goede (hdegoede@xxxxxxxxxx) 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
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list