[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
- From: Bill Nottingham <notting redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH 2/2] Write out configuration of FCoE to installed system
- Date: Thu, 2 Jul 2009 10:00:37 -0400
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?
Bill
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]