From debian at herakles.homelinux.org Sat Sep 1 01:09:02 2007 From: debian at herakles.homelinux.org (John Summerfield) Date: Sat, 01 Sep 2007 09:09:02 +0800 Subject: Using Kickstart to deploy Debian servers? In-Reply-To: <46D77963.7020508@half-asleep.com> References: <46D77963.7020508@half-asleep.com> Message-ID: <46D8BBAE.7050500@herakles.homelinux.org> Daniel Segall wrote: > I feel dirty even asking this, but here it goes. I have been tasked with > the unlucky job of setting up a deployment solution for Debian servers. > I have an existing Kickstart server that I call via altiris (we mostly > use blades). Does anyone know if there is a relatively easy way to > create a kickstart config for Debian "etch"? I really don't want to > setup FAI if I don't have to. Go stickybeak progeny.com. Your answer may be there. -- Cheers John -- spambait 1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu Please do not reply off-list From Pablo.Iranzo at uv.es Sat Sep 1 08:36:53 2007 From: Pablo.Iranzo at uv.es (=?UTF-8?Q?Pablo_Iranzo_G=C3=B3mez?=) Date: Sat, 1 Sep 2007 10:36:53 +0200 (CEST) Subject: static network configuration ask In-Reply-To: <695c4edd0708311517gb8eae12o1f2886d1136c426b@mail.gmail.com> References: <695c4edd0708301402s4a5433e2lb127fc4c063dceca@mail.gmail.com> <46D73A81.9050704@lanl.gov> <46D73CE4.5030805@lanl.gov> <695c4edd0708301539i69e06e56x3c41eea92ceb9116@mail.gmail.com> <46D74847.3090609@lanl.gov> <46D749C7.9020304@lanl.gov> <695c4edd0708301609h1294e205g24078adf2574a294@mail.gmail.com> <46D7521A.2020207@lanl.gov> <695c4edd0708311056y527a6d47i3811db25eb2df0b9@mail.gmail.com> <52141.128.165.0.81.1188586579.squirrel@webmail.lanl.gov> <695c4edd0708311517gb8eae12o1f2886d1136c426b@mail.gmail.com> Message-ID: On Fri, 31 Aug 2007, Kit Stube wrote: > After much messing around. I figured out a way to get it to go interactive > for the network config. On top of that, it appears to persist once the > host is rebooted. > > I pass it the option ip=192.168.50 and it kicks out to the network > configurator every time! > > So far giving it a broken config is the only way I have found to do this. > They really need an "ask" option to the network config stuff to make it go > interactive during that portion of the setup. You should fill-in a feature request report at bugzilla.redhat.com in order to get someone to look at it Regards Pablo From thegabeman at gmail.com Mon Sep 3 07:13:07 2007 From: thegabeman at gmail.com (Gabrie) Date: Mon, 3 Sep 2007 09:13:07 +0200 Subject: Boot parameters not working Message-ID: Hi For auto-install of ESX hosts, I use kickstart (through the Ultimate Deployment Appliance UDA). This UDA generates my kickstart file and boot parameters. I've noticed that when using the nic at 1000Mb - Full Duplex, the kickstart scripts stops after "doing kickstart... setting it up". When at cisco switch level I change the port speed to 100Mb - Full Duplex, the script runs fine. Unfortunately, after the install is finished, I realy need that 1000Mb, so I would be nice if I could configure the nic at 100 during install. I tried adding " eth0_ethtool='speed 100 duplex full' " to the boot parameters line, but this doesn't seem to have any effect. My bootline looks like: append ip=dhcp ksdevice=eth0 eth0_ethtool='speed 100 duplex full' load_ramdisk=1 initrd=initrd.esx301 network ks= http://172.29.26.249/kickstart/es020.cfg ESXIP=20 Any tips? Gabrie -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.andreano-eds at inail.it Mon Sep 3 12:17:26 2007 From: m.andreano-eds at inail.it (Andreano Michele Carmine (EDS)) Date: Mon, 3 Sep 2007 14:17:26 +0200 Subject: Partition.... Message-ID: <910AED6DB3617E4E8EBE3C86C534306E271301@ILASRUMB03.inailrupa.inail.pri> Hi to all, after the first installation I have this state: zerombr yes clearpart --all --drives=cciss/c0d0,cciss/c0d1 part /boot --fstype ext3 --size=2000 --grow --maxsize=2000 --ondisk=cciss/c0d0 part /var --fstype ext3 --size=29000 --grow --maxsize=29000 --ondisk=cciss/c0d1 part /usr --fstype ext3 --size=12000 --grow --maxsize=12000 --ondisk=cciss/c0d0 part swap --size=12000 --grow --maxsize=12000 --ondisk=cciss/c0d0 --asprimary part / --fstype ext3 --size=6000 --grow --maxsize=6000 --ondisk=cciss/c0d0 part /tmp --fstype ext3 --size=8000 --grow --maxsize=8000 --ondisk=cciss/c0d0 part /home --fstype ext3 --size=4000 --grow --maxsize=4000 --ondisk=cciss/c0d0 part /space --fstype ext3 --size=31000 --grow --ondisk=cciss/c0d1 In the successive ones installations I must preserve part /space and /var.... and I must format the rest of the partition!! Excused for the English bad one!! _________________________________ Michele Carmine Andreano mail: m.andreano-eds at inail.it _________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Pablo.Iranzo at redhat.com Mon Sep 3 13:31:06 2007 From: Pablo.Iranzo at redhat.com (Pablo Iranzo =?ISO-8859-1?Q?G=F3mez?=) Date: Mon, 03 Sep 2007 15:31:06 +0200 Subject: Partition.... In-Reply-To: <910AED6DB3617E4E8EBE3C86C534306E271301@ILASRUMB03.inailrupa.inail.pri> References: <910AED6DB3617E4E8EBE3C86C534306E271301@ILASRUMB03.inailrupa.inail.pri> Message-ID: <1188826266.3343.12.camel@iranzo.users.redhat.com> Ciao Andreano You should create a kickstart containing: part /boot --fstype ext3 --useexisting part /var --fstype ext3 --useexisting --useexisting part /usr --fstype ext3 --useexisting part swap --useexisting part / --fstype ext3 --useexisting part /tmp --fstype ext3 --useexisting part /home --fstype ext3 --useexisting part /space --fstype ext3 --useexisting --noformat Why are you not using LVM? Please, test it before using it on a production environment!! Regards Pablo PD: I'm using something similar to allow a reinstallation over already created volumes (LVM) keeping data on only one partition El lun, 03-09-2007 a las 14:17 +0200, Andreano Michele Carmine (EDS) escribi?: > Hi to all, > after the first installation I have this state: > > zerombr yes > clearpart --all --drives=cciss/c0d0,cciss/c0d1 > > part /boot --fstype ext3 --size=2000 --grow --maxsize=2000 > --ondisk=cciss/c0d0 > part /var --fstype ext3 --size=29000 --grow --maxsize=29000 > --ondisk=cciss/c0d1 > part /usr --fstype ext3 --size=12000 --grow --maxsize=12000 > --ondisk=cciss/c0d0 > part swap --size=12000 --grow --maxsize=12000 > --ondisk=cciss/c0d0 --asprimary > part / --fstype ext3 --size=6000 --grow --maxsize=6000 > --ondisk=cciss/c0d0 > part /tmp --fstype ext3 --size=8000 --grow --maxsize=8000 > --ondisk=cciss/c0d0 > part /home --fstype ext3 --size=4000 --grow --maxsize=4000 > --ondisk=cciss/c0d0 > part /space --fstype ext3 --size=31000 --grow > --ondisk=cciss/c0d1 > > > In the successive ones installations I must preserve part /space > and /var.... and I must format the rest of the partition!! > > Excused for the English bad one!! > > > _________________________________ > Michele Carmine Andreano > > mail: m.andreano-eds at inail.it > _________________________________ > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list -- Pablo Iranzo G?mez (Pablo.Iranzo at redhat.com) RHCE/Global Profesional Services Consultant Spain Phone: +34 645 01 01 49 (CET/CEST) GnuPG KeyID: 0xFAD3CF0D -- Inscrita en el Reg. Mercantil de Madrid ? C.I.F. B-82 65 79 41 Directores: Michael Cunningham, Charlie Peters y David Owens Direcci?n Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, Espa?a Direcci?n contacto: Paseo de la Castellana 95, Torre Europa ? planta 15, 28046 Madrid -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Esta parte del mensaje est? firmada digitalmente URL: From m.andreano-eds at inail.it Tue Sep 4 06:35:50 2007 From: m.andreano-eds at inail.it (Andreano Michele Carmine (EDS)) Date: Tue, 4 Sep 2007 08:35:50 +0200 Subject: R: Partition.... References: <910AED6DB3617E4E8EBE3C86C534306E271301@ILASRUMB03.inailrupa.inail.pri> <1188826266.3343.12.camel@iranzo.users.redhat.com> Message-ID: <910AED6DB3617E4E8EBE3C86C534306E271302@ILASRUMB03.inailrupa.inail.pri> what is LVM? and as it is used? Ciao, Mike _________________________________ Michele Carmine Andreano mail: m.andreano-eds at inail.it _________________________________ -----Messaggio originale----- Da: kickstart-list-bounces at redhat.com per conto di Pablo Iranzo G?mez Inviato: lun 03/09/2007 15.31 A: Discussion list about Kickstart Oggetto: Re: Partition.... Ciao Andreano You should create a kickstart containing: part /boot --fstype ext3 --useexisting part /var --fstype ext3 --useexisting --useexisting part /usr --fstype ext3 --useexisting part swap --useexisting part / --fstype ext3 --useexisting part /tmp --fstype ext3 --useexisting part /home --fstype ext3 --useexisting part /space --fstype ext3 --useexisting --noformat Why are you not using LVM? Please, test it before using it on a production environment!! Regards Pablo PD: I'm using something similar to allow a reinstallation over already created volumes (LVM) keeping data on only one partition El lun, 03-09-2007 a las 14:17 +0200, Andreano Michele Carmine (EDS) escribi?: > Hi to all, > after the first installation I have this state: > > zerombr yes > clearpart --all --drives=cciss/c0d0,cciss/c0d1 > > part /boot --fstype ext3 --size=2000 --grow --maxsize=2000 > --ondisk=cciss/c0d0 > part /var --fstype ext3 --size=29000 --grow --maxsize=29000 > --ondisk=cciss/c0d1 > part /usr --fstype ext3 --size=12000 --grow --maxsize=12000 > --ondisk=cciss/c0d0 > part swap --size=12000 --grow --maxsize=12000 > --ondisk=cciss/c0d0 --asprimary > part / --fstype ext3 --size=6000 --grow --maxsize=6000 > --ondisk=cciss/c0d0 > part /tmp --fstype ext3 --size=8000 --grow --maxsize=8000 > --ondisk=cciss/c0d0 > part /home --fstype ext3 --size=4000 --grow --maxsize=4000 > --ondisk=cciss/c0d0 > part /space --fstype ext3 --size=31000 --grow > --ondisk=cciss/c0d1 > > > In the successive ones installations I must preserve part /space > and /var.... and I must format the rest of the partition!! > > Excused for the English bad one!! > > > _________________________________ > Michele Carmine Andreano > > mail: m.andreano-eds at inail.it > _________________________________ > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list -- Pablo Iranzo G?mez (Pablo.Iranzo at redhat.com) RHCE/Global Profesional Services Consultant Spain Phone: +34 645 01 01 49 (CET/CEST) GnuPG KeyID: 0xFAD3CF0D -- Inscrita en el Reg. Mercantil de Madrid - C.I.F. B-82 65 79 41 Directores: Michael Cunningham, Charlie Peters y David Owens Direcci?n Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, Espa?a Direcci?n contacto: Paseo de la Castellana 95, Torre Europa - planta 15, 28046 Madrid -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3829 bytes Desc: not available URL: From Pablo.Iranzo at redhat.com Tue Sep 4 06:51:40 2007 From: Pablo.Iranzo at redhat.com (Pablo Iranzo =?ISO-8859-1?Q?G=F3mez?=) Date: Tue, 04 Sep 2007 08:51:40 +0200 Subject: R: Partition.... In-Reply-To: <910AED6DB3617E4E8EBE3C86C534306E271302@ILASRUMB03.inailrupa.inail.pri> References: <910AED6DB3617E4E8EBE3C86C534306E271301@ILASRUMB03.inailrupa.inail.pri> <1188826266.3343.12.camel@iranzo.users.redhat.com> <910AED6DB3617E4E8EBE3C86C534306E271302@ILASRUMB03.inailrupa.inail.pri> Message-ID: <1188888700.5650.12.camel@iranzo.users.redhat.com> Hi LVM stands for: Logical Volume Manager ( http://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux) ) With LVM you create a pool of hardrives/partitions that are shown together (physical volumes) and over it you create volume groups which contain "logical volumes" (like partitions in traditional schemas). One of the advantages is the ability to resize logical volumes within boundaries of the containing volume group, even online resizing if using ext3 (growing). Using a schema in kickstart for LVM could be: clearpart --all part /boot --fstype ext3 --size=100 --asprimary part pv.3 --size=100 --grow volgroup Sat --pesize=32768 pv.3 logvol swap --fstype swap --name=swap --vgname=Sat --size=2048 logvol / --fstype ext3 --name=root --vgname=Sat --size=67200 Which defines a partition for /boot (must be outside LVM right now), and a physical volume "pv.3" which contains a volume group "Sat". Inside that volume group there are two logical volumes, "swap" for swapping and "root" for "/" Regards Pablo El mar, 04-09-2007 a las 08:35 +0200, Andreano Michele Carmine (EDS) escribi?: > what is LVM? and as it is used? > > Ciao, > Mike > > _________________________________ > Michele Carmine Andreano > > mail: m.andreano-eds at inail.it > _________________________________ > > > > -----Messaggio originale----- > Da: kickstart-list-bounces at redhat.com per conto di Pablo Iranzo G?mez > Inviato: lun 03/09/2007 15.31 > A: Discussion list about Kickstart > Oggetto: Re: Partition.... > > Ciao Andreano > You should create a kickstart containing: > > part /boot --fstype ext3 --useexisting > part /var --fstype ext3 --useexisting --useexisting > part /usr --fstype ext3 --useexisting > part swap --useexisting > part / --fstype ext3 --useexisting > part /tmp --fstype ext3 --useexisting > part /home --fstype ext3 --useexisting > part /space --fstype ext3 --useexisting --noformat > > Why are you not using LVM? > > Please, test it before using it on a production environment!! > > Regards > Pablo > > PD: I'm using something similar to allow a reinstallation over already > created volumes (LVM) keeping data on only one partition > > > > El lun, 03-09-2007 a las 14:17 +0200, Andreano Michele Carmine (EDS) > escribi?: > > Hi to all, > > after the first installation I have this state: > > > > zerombr yes > > clearpart --all --drives=cciss/c0d0,cciss/c0d1 > > > > part /boot --fstype ext3 --size=2000 --grow --maxsize=2000 > > --ondisk=cciss/c0d0 > > part /var --fstype ext3 --size=29000 --grow --maxsize=29000 > > --ondisk=cciss/c0d1 > > part /usr --fstype ext3 --size=12000 --grow --maxsize=12000 > > --ondisk=cciss/c0d0 > > part swap --size=12000 --grow --maxsize=12000 > > --ondisk=cciss/c0d0 --asprimary > > part / --fstype ext3 --size=6000 --grow --maxsize=6000 > > --ondisk=cciss/c0d0 > > part /tmp --fstype ext3 --size=8000 --grow --maxsize=8000 > > --ondisk=cciss/c0d0 > > part /home --fstype ext3 --size=4000 --grow --maxsize=4000 > > --ondisk=cciss/c0d0 > > part /space --fstype ext3 --size=31000 --grow > > --ondisk=cciss/c0d1 > > > > > > In the successive ones installations I must preserve part /space > > and /var.... and I must format the rest of the partition!! > > > > Excused for the English bad one!! > > > > > > _________________________________ > > Michele Carmine Andreano > > > > mail: m.andreano-eds at inail.it > > _________________________________ > > > > > > > > _______________________________________________ > > Kickstart-list mailing list > > Kickstart-list at redhat.com > > https://www.redhat.com/mailman/listinfo/kickstart-list > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list -- Pablo Iranzo G?mez (Pablo.Iranzo at redhat.com) RHCE/Global Profesional Services Consultant Spain Phone: +34 645 01 01 49 (CET/CEST) GnuPG KeyID: 0xFAD3CF0D -- Inscrita en el Reg. Mercantil de Madrid ? C.I.F. B-82 65 79 41 Directores: Michael Cunningham, Charlie Peters y David Owens Direcci?n Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, Espa?a Direcci?n contacto: Paseo de la Castellana 95, Torre Europa ? planta 15, 28046 Madrid -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Esta parte del mensaje est? firmada digitalmente URL: From Chip.Shabazian at bankofamerica.com Tue Sep 4 16:31:08 2007 From: Chip.Shabazian at bankofamerica.com (Shabazian, Chip) Date: Tue, 04 Sep 2007 09:31:08 -0700 Subject: Boot parameters not working In-Reply-To: Message-ID: Add autoneg off to ethtool, and make sure you are using the right quotes (if you copy/pasted, you are using ' not ") eth0_ethtool="autoneg off speed 100 duplex full" Also, the version of kickstart you are using simply may not support the ethtool statement. I believe ESX is based on an older version of RHEL. ________________________________ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Gabrie Sent: Monday, September 03, 2007 12:13 AM To: Discussion list about Kickstart Subject: Boot parameters not working Hi For auto-install of ESX hosts, I use kickstart (through the Ultimate Deployment Appliance UDA). This UDA generates my kickstart file and boot parameters. I've noticed that when using the nic at 1000Mb - Full Duplex, the kickstart scripts stops after "doing kickstart... setting it up". When at cisco switch level I change the port speed to 100Mb - Full Duplex, the script runs fine. Unfortunately, after the install is finished, I realy need that 1000Mb, so I would be nice if I could configure the nic at 100 during install. I tried adding " eth0_ethtool='speed 100 duplex full' " to the boot parameters line, but this doesn't seem to have any effect. My bootline looks like: append ip=dhcp ksdevice=eth0 eth0_ethtool='speed 100 duplex full' load_ramdisk=1 initrd=initrd.esx301 network ks=http://172.29.26.249/kickstart/es020.cfg ESXIP=20 Any tips? Gabrie -------------- next part -------------- An HTML attachment was scrubbed... URL: From thegabeman at gmail.com Tue Sep 4 19:27:26 2007 From: thegabeman at gmail.com (Gabrie) Date: Tue, 4 Sep 2007 21:27:26 +0200 Subject: Boot parameters not working In-Reply-To: References: Message-ID: Thanks I will try this tomorrow On 9/4/07, Shabazian, Chip wrote: > > Add autoneg off to ethtool, and make sure you are using the right quotes > (if you copy/pasted, you are using ' not ") > > eth0_ethtool="autoneg off speed 100 duplex full" > > Also, the version of kickstart you are using simply may not support the > ethtool statement. I believe ESX is based on an older version of RHEL. > > > ------------------------------ > *From:* kickstart-list-bounces at redhat.com [mailto: > kickstart-list-bounces at redhat.com] *On Behalf Of *Gabrie > *Sent:* Monday, September 03, 2007 12:13 AM > *To:* Discussion list about Kickstart > *Subject:* Boot parameters not working > > > Hi > > For auto-install of ESX hosts, I use kickstart (through the Ultimate > Deployment Appliance UDA). This UDA generates my kickstart file and boot > parameters. > > I've noticed that when using the nic at 1000Mb - Full Duplex, the > kickstart scripts stops after "doing kickstart... setting it up". When at > cisco switch level I change the port speed to 100Mb - Full Duplex, the > script runs fine. Unfortunately, after the install is finished, I realy need > that 1000Mb, so I would be nice if I could configure the nic at 100 during > install. > > I tried adding " eth0_ethtool='speed 100 duplex full' " to the boot > parameters line, but this doesn't seem to have any effect. > > My bootline looks like: > append ip=dhcp ksdevice=eth0 eth0_ethtool='speed 100 duplex full' > load_ramdisk=1 initrd=initrd.esx301 network ks= > http://172.29.26.249/kickstart/es020.cfg ESXIP=20 > > Any tips? > Gabrie > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hhoffman at ip-solutions.net Wed Sep 5 00:59:53 2007 From: hhoffman at ip-solutions.net (Harry Hoffman) Date: Tue, 04 Sep 2007 20:59:53 -0400 Subject: Kickstart a nd LDAP Message-ID: <46DDFF89.6000304@ip-solutions.net> Hi, if I run the setup tool and select Authentication there's a checkbox for "Local authorization is sufficient". Is the the same as kickstart's --useshadow if I'm setting up auth to use ldap? Essentially I want to keep root out of ldap for password and have that be a local account. So, I'd have both local and ldap accounts. Is there any difference btwn the options for 4.5 and 5.x OS for kickstart options? Also, anyone know if the SSL bug still exists in kickstart? Any help would be greatly appreciated. Cheers, Harry From hhoffman at ip-solutions.net Wed Sep 5 01:01:59 2007 From: hhoffman at ip-solutions.net (Harry Hoffman) Date: Tue, 04 Sep 2007 21:01:59 -0400 Subject: Kickstart and FS quotas Message-ID: <46DE0007.3030509@ip-solutions.net> Hi, There's a nice article here: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-disk-quotas.html about implementing disk quotas. Is there a way to do this, natively, via kickstart? Or should I be looking to do this in %post? If anyone has already done this, I'd be interested to see what you've done. CHeers, Harry From ben.grommes at visionshareinc.com Wed Sep 5 15:44:33 2007 From: ben.grommes at visionshareinc.com (Ben Grommes) Date: Wed, 5 Sep 2007 15:44:33 +0000 (UTC) Subject: reading user input in %pre script no longer working Message-ID: My kickstart script reads user input in the %pre scriptlet using the read command. This worked fine in CentOS 4.4, but in CentOS 4.5 it no longer works. It appears that the read command is not taking input from the console. I'm doing a headless mode install (text option in ks.cfg). Here is my %pre script: %pre install="no" while [ "$install" != "yes" ]; do ( echo -n "Proceed with install? " )>/dev/tty1 read install done The output of the echo shows up on the screen, but the read command doesn't accept any input from the keyboard. Any suggestions for how to debug this would be appreciated. From Pablo.Iranzo at redhat.com Wed Sep 5 19:01:54 2007 From: Pablo.Iranzo at redhat.com (=?UTF-8?Q?Pablo_Iranzo_G=C3=B3mez?=) Date: Wed, 5 Sep 2007 21:01:54 +0200 (CEST) Subject: reading user input in %pre script no longer working In-Reply-To: References: Message-ID: Hi Ben On my computer, the input is read from "VT 3", so, in order to use keyboard what I do is: chvt 3 echo "Message" echo -e "\e[2J;1HMessage on serial visor" > /dev/ttyS2 EXIT=0 while [ "$EXIT" == "0" ] do some commands done Try appending that "chvt 3" on your script before your command Regards Pablo On Wed, 5 Sep 2007, Ben Grommes wrote: > My kickstart script reads user input in the %pre scriptlet using the read > command. This worked fine in CentOS 4.4, but in CentOS 4.5 it no longer works. > It appears that the read command is not taking input from the console. > > I'm doing a headless mode install (text option in ks.cfg). > > Here is my %pre script: > > %pre > install="no" > while [ "$install" != "yes" ]; do > ( > echo -n "Proceed with install? " > )>/dev/tty1 > read install > done > > The output of the echo shows up on the screen, but the read command doesn't > accept any input from the keyboard. > > Any suggestions for how to debug this would be appreciated. > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From hhoffman at ip-solutions.net Wed Sep 5 21:08:06 2007 From: hhoffman at ip-solutions.net (Harry Hoffman) Date: Wed, 05 Sep 2007 17:08:06 -0400 Subject: Setting up LDAP/SSL during kickstart Message-ID: <46DF1AB6.8000804@ip-solutions.net> Hi Everyone, so, I'd originally asked about setting up ldapssl with kickstart. I didn't get any answers so I figured I'd post what I did just in case other ppl are having trouble: This all happens in the %post section %post # Setup LDAP # # equiv to running setup tool authconfig --kickstart --enableshadow --enablemd5 --enableldap --enableldapauth --ldapserver ldap.yourdomain.com --ldapbasedn dc=yourdomain,dc=com # # Turn SSL on in the config files perl -p -i -e 's/^ssl no/ssl on/g' /etc/ldap.conf echo "tls_cacertfile /etc/openldap/cacerts/cacert.asc" >> /etc/ldap.conf echo "URI ldaps://ldap.yourdomain.com" >> /etc/openldap/ldap.conf # # Create a directory to hold our Cert Auth certificate mkdir -p /etc/openldap/cacerts # Download the CA certificate wget -O /etc/openldap/cacerts/cacert.asc http://INSTALL_SERVER/cacert.asc # # Have PAM autocreate home directories upon login echo "session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ umask=0077" >> /etc/pam.d/system-auth # # Ensure that local authorization is enough to get on the system # (i.e. root can login) perl -p -i -e 's/^USELOCAUTHORIZE=no/USELOCAUTHORIZE=yes/' /etc/sysconfig/authconfig That's all it took for me. Cheers, Harry From srobson at cadence.com Thu Sep 6 08:55:35 2007 From: srobson at cadence.com (Steve Robson) Date: Thu, 06 Sep 2007 09:55:35 +0100 Subject: reading user input in %pre script no longer working In-Reply-To: <20070905160014.797B2734FB@hormel.redhat.com> References: <20070905160014.797B2734FB@hormel.redhat.com> Message-ID: <46DFC087.40102@cadence.com> Ben Grommes spake thusly: > My kickstart script reads user input in the %pre scriptlet using the read > command. This worked fine in CentOS 4.4, but in CentOS 4.5 it no longer works. > It appears that the read command is not taking input from the console. > > I'm doing a headless mode install (text option in ks.cfg). > > Here is my %pre script: > > %pre > install="no" > while [ "$install" != "yes" ]; do > ( > echo -n "Proceed with install? " > )>/dev/tty1 > read install > done > > The output of the echo shows up on the screen, but the read command doesn't > accept any input from the keyboard. > > Any suggestions for how to debug this would be appreciated. Try explicitly redirecting stdin as well: %pre install="no" while [ "$install" != "yes" ]; do ( echo -n "Proceed with install? " ) >/dev/tty1 References: <20070905160014.797B2734FB@hormel.redhat.com> <46DFC087.40102@cadence.com> Message-ID: <58D9ACD5-C918-483B-A132-6CA28B7C1B04@jasonkohles.com> On Sep 6, 2007, at 4:55 AM, Steve Robson wrote: > Ben Grommes spake thusly: > >> My kickstart script reads user input in the %pre scriptlet using >> the read >> command. This worked fine in CentOS 4.4, but in CentOS 4.5 it no >> longer works. >> It appears that the read command is not taking input from the >> console. >> I'm doing a headless mode install (text option in ks.cfg). >> Here is my %pre script: >> %pre >> install="no" >> while [ "$install" != "yes" ]; do ( >> echo -n "Proceed with install? " >> )>/dev/tty1 >> read install >> done >> The output of the echo shows up on the screen, but the read >> command doesn't >> accept any input from the keyboard. >> Any suggestions for how to debug this would be appreciated. > > Try explicitly redirecting stdin as well: > > %pre > install="no" > while [ "$install" != "yes" ]; do > ( echo -n "Proceed with install? " ) >/dev/tty1 read install > done > This is a good suggestion, but based on the symptoms it's more likely that stdin needs to be redirected to the read, rather than the echo. What I would do is either use chvt to change vts and get rid of the redirection entirely, or use exec to redirect for the entirety of the script: # Method 1 - chvt with no redirection %pre chvt 1 install="no" while [ "$install" != "yes" ]; do echo -n "Proceed with install?" read install done chvt 3 # (or maybe 6, depending on the type of install you are doing) # Method 2 - redirect the whole script %pre exec /dev/tty1 2>/dev/tty1 install="no" while [ "$install" != "yes" ]; do echo -n "Proceed with install?" read install done # Method 3 - wrap the redirection around the whole loop %pre ( install="no" while [ "$install" != "yes" ]; do echo -n "Proceed with install?" read install done ) < /dev/tty1 >/dev/tty1 2>/dev/tty1 -- Jason Kohles email at jasonkohles.com http://www.jasonkohles.com/ "A witty saying proves nothing." -- Voltaire From mups.cp at gmail.com Thu Sep 6 14:43:28 2007 From: mups.cp at gmail.com (mups.cp) Date: Thu, 6 Sep 2007 11:43:28 -0300 Subject: Setting up LDAP/SSL during kickstart In-Reply-To: <46DF1AB6.8000804@ip-solutions.net> References: <46DF1AB6.8000804@ip-solutions.net> Message-ID: The kickstart auth option allow set must tyhe options you are settings into %post. http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html has all you need. Look for auth/authconfig > %post > # Setup LDAP > # > # equiv to running setup tool > authconfig --kickstart --enableshadow --enablemd5 --enableldap > --enableldapauth --ldapserver ldap.yourdomain.com --ldapbasedn > dc=yourdomain,dc=com Use this out %post. Look the link above. > # > # Turn SSL on in the config files > perl -p -i -e 's/^ssl no/ssl on/g' /etc/ldap.conf > echo "tls_cacertfile /etc/openldap/cacerts/cacert.asc" >> /etc/ldap.conf > echo "URI ldaps://ldap.yourdomain.com" >> /etc/openldap/ldap.conf Again, no necessary if using the above --enableldaptls. > # > # Create a directory to hold our Cert Auth certificate > mkdir -p /etc/openldap/cacerts > # Download the CA certificate > wget -O /etc/openldap/cacerts/cacert.asc http://INSTALL_SERVER/cacert.asc > # OK > # Have PAM autocreate home directories upon login > echo "session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ > umask=0077" >> /etc/pam.d/system-auth This is useful only if users connect through ssh. Through samba use root preexec to create home dir automaticly. For Linux clients use autofs. > # > # Ensure that local authorization is enough to get on the system > # (i.e. root can login) > perl -p -i -e 's/^USELOCAUTHORIZE=no/USELOCAUTHORIZE=yes/' > /etc/sysconfig/authconfig My system works without change this. From hhoffman at ip-solutions.net Thu Sep 6 14:49:35 2007 From: hhoffman at ip-solutions.net (Harry Hoffman) Date: Thu, 06 Sep 2007 10:49:35 -0400 Subject: Setting up LDAP/SSL during kickstart In-Reply-To: References: <46DF1AB6.8000804@ip-solutions.net> Message-ID: <46E0137F.9070400@ip-solutions.net> Hi, Thanks for reviewing. I'm on RHEL4 and was having all sorts of weird issues with using auth/authconfig. Does TLS == SSL for LDAP? Cheers, Harry mups.cp wrote: > The kickstart auth option allow set must tyhe options you are settings > into %post. > http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html > has all you need. Look for auth/authconfig > > >> %post >> # Setup LDAP >> # >> # equiv to running setup tool >> authconfig --kickstart --enableshadow --enablemd5 --enableldap >> --enableldapauth --ldapserver ldap.yourdomain.com --ldapbasedn >> dc=yourdomain,dc=com > > Use this out %post. Look the link above. > > >> # >> # Turn SSL on in the config files >> perl -p -i -e 's/^ssl no/ssl on/g' /etc/ldap.conf >> echo "tls_cacertfile /etc/openldap/cacerts/cacert.asc" >> /etc/ldap.conf >> echo "URI ldaps://ldap.yourdomain.com" >> /etc/openldap/ldap.conf > > Again, no necessary if using the above --enableldaptls. > >> # >> # Create a directory to hold our Cert Auth certificate >> mkdir -p /etc/openldap/cacerts >> # Download the CA certificate >> wget -O /etc/openldap/cacerts/cacert.asc http://INSTALL_SERVER/cacert.asc >> # > OK > >> # Have PAM autocreate home directories upon login >> echo "session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ >> umask=0077" >> /etc/pam.d/system-auth > > This is useful only if users connect through ssh. > Through samba use root preexec to create home dir automaticly. > For Linux clients use autofs. > >> # >> # Ensure that local authorization is enough to get on the system >> # (i.e. root can login) >> perl -p -i -e 's/^USELOCAUTHORIZE=no/USELOCAUTHORIZE=yes/' >> /etc/sysconfig/authconfig > > My system works without change this. > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From mups.cp at gmail.com Thu Sep 6 14:51:43 2007 From: mups.cp at gmail.com (mups.cp) Date: Thu, 6 Sep 2007 11:51:43 -0300 Subject: Kickstart and FS quotas In-Reply-To: <46DE0007.3030509@ip-solutions.net> References: <46DE0007.3030509@ip-solutions.net> Message-ID: I didn't check but part --fsoptions= seems reasonable. http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html On 9/4/07, Harry Hoffman wrote: > Hi, > > There's a nice article here: > http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-disk-quotas.html > > about implementing disk quotas. > > > Is there a way to do this, natively, via kickstart? Or should I be > looking to do this in %post? > > If anyone has already done this, I'd be interested to see what you've done. > > CHeers, > Harry > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From mups.cp at gmail.com Thu Sep 6 14:52:52 2007 From: mups.cp at gmail.com (mups.cp) Date: Thu, 6 Sep 2007 11:52:52 -0300 Subject: Setting up LDAP/SSL during kickstart In-Reply-To: <46E0137F.9070400@ip-solutions.net> References: <46DF1AB6.8000804@ip-solutions.net> <46E0137F.9070400@ip-solutions.net> Message-ID: SSL = SSLv1 or SSLv2 TLS = SSLv3 On 9/6/07, Harry Hoffman wrote: > Hi, > > Thanks for reviewing. > > I'm on RHEL4 and was having all sorts of weird issues with using > auth/authconfig. > > Does TLS == SSL for LDAP? > > Cheers, > Harry > > > mups.cp wrote: > > The kickstart auth option allow set must tyhe options you are settings > > into %post. > > http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html > > has all you need. Look for auth/authconfig > > > > > >> %post > >> # Setup LDAP > >> # > >> # equiv to running setup tool > >> authconfig --kickstart --enableshadow --enablemd5 --enableldap > >> --enableldapauth --ldapserver ldap.yourdomain.com --ldapbasedn > >> dc=yourdomain,dc=com > > > > Use this out %post. Look the link above. > > > > > >> # > >> # Turn SSL on in the config files > >> perl -p -i -e 's/^ssl no/ssl on/g' /etc/ldap.conf > >> echo "tls_cacertfile /etc/openldap/cacerts/cacert.asc" >> /etc/ldap.conf > >> echo "URI ldaps://ldap.yourdomain.com" >> /etc/openldap/ldap.conf > > > > Again, no necessary if using the above --enableldaptls. > > > >> # > >> # Create a directory to hold our Cert Auth certificate > >> mkdir -p /etc/openldap/cacerts > >> # Download the CA certificate > >> wget -O /etc/openldap/cacerts/cacert.asc http://INSTALL_SERVER/cacert.asc > >> # > > OK > > > >> # Have PAM autocreate home directories upon login > >> echo "session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ > >> umask=0077" >> /etc/pam.d/system-auth > > > > This is useful only if users connect through ssh. > > Through samba use root preexec to create home dir automaticly. > > For Linux clients use autofs. > > > >> # > >> # Ensure that local authorization is enough to get on the system > >> # (i.e. root can login) > >> perl -p -i -e 's/^USELOCAUTHORIZE=no/USELOCAUTHORIZE=yes/' > >> /etc/sysconfig/authconfig > > > > My system works without change this. > > > > _______________________________________________ > > Kickstart-list mailing list > > Kickstart-list at redhat.com > > https://www.redhat.com/mailman/listinfo/kickstart-list > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From hhoffman at ip-solutions.net Thu Sep 6 19:32:08 2007 From: hhoffman at ip-solutions.net (Harry Hoffman) Date: Thu, 06 Sep 2007 15:32:08 -0400 Subject: Setting up LDAP/SSL during kickstart In-Reply-To: References: <46DF1AB6.8000804@ip-solutions.net> <46E0137F.9070400@ip-solutions.net> Message-ID: <46E055B8.90003@ip-solutions.net> Ah, perhaps I was misunderstanding... I was thinking TLS, e.g. on port 389 an non-encrypted until a starttls was issued vs. SSL on port 636 where the encryption is constantly enabled. Cheers, Harry mups.cp wrote: > SSL = SSLv1 or SSLv2 > TLS = SSLv3 > > On 9/6/07, Harry Hoffman wrote: >> Hi, >> >> Thanks for reviewing. >> >> I'm on RHEL4 and was having all sorts of weird issues with using >> auth/authconfig. >> >> Does TLS == SSL for LDAP? >> >> Cheers, >> Harry >> >> >> mups.cp wrote: >>> The kickstart auth option allow set must tyhe options you are settings >>> into %post. >>> http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html >>> has all you need. Look for auth/authconfig >>> >>> >>>> %post >>>> # Setup LDAP >>>> # >>>> # equiv to running setup tool >>>> authconfig --kickstart --enableshadow --enablemd5 --enableldap >>>> --enableldapauth --ldapserver ldap.yourdomain.com --ldapbasedn >>>> dc=yourdomain,dc=com >>> Use this out %post. Look the link above. >>> >>> >>>> # >>>> # Turn SSL on in the config files >>>> perl -p -i -e 's/^ssl no/ssl on/g' /etc/ldap.conf >>>> echo "tls_cacertfile /etc/openldap/cacerts/cacert.asc" >> /etc/ldap.conf >>>> echo "URI ldaps://ldap.yourdomain.com" >> /etc/openldap/ldap.conf >>> Again, no necessary if using the above --enableldaptls. >>> >>>> # >>>> # Create a directory to hold our Cert Auth certificate >>>> mkdir -p /etc/openldap/cacerts >>>> # Download the CA certificate >>>> wget -O /etc/openldap/cacerts/cacert.asc http://INSTALL_SERVER/cacert.asc >>>> # >>> OK >>> >>>> # Have PAM autocreate home directories upon login >>>> echo "session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ >>>> umask=0077" >> /etc/pam.d/system-auth >>> This is useful only if users connect through ssh. >>> Through samba use root preexec to create home dir automaticly. >>> For Linux clients use autofs. >>> >>>> # >>>> # Ensure that local authorization is enough to get on the system >>>> # (i.e. root can login) >>>> perl -p -i -e 's/^USELOCAUTHORIZE=no/USELOCAUTHORIZE=yes/' >>>> /etc/sysconfig/authconfig >>> My system works without change this. >>> >>> _______________________________________________ >>> Kickstart-list mailing list >>> Kickstart-list at redhat.com >>> https://www.redhat.com/mailman/listinfo/kickstart-list >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list >> > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From yhhoo at tpl.com.sg Fri Sep 7 10:57:52 2007 From: yhhoo at tpl.com.sg (yhhoo at tpl.com.sg) Date: 07-Sep-2007 10:57:52 ZE8 Subject: Hoo, Yee Huei is out of the office. Message-ID: <200709070345.l873j5dC006010@mx1.redhat.com> I will be out of the office starting 07/09/2007 and will not return until 25/09/2007. Any urgent IT matter, you may look for Kelvin Yang at Ext 281 or Vincent Tan at Ext 144. ------------------------------------------------------------------ NOTICE OF CONFIDENTIALITY This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. Thank you. From mups.cp at gmail.com Sat Sep 8 00:55:28 2007 From: mups.cp at gmail.com (mups.cp) Date: Fri, 7 Sep 2007 21:55:28 -0300 Subject: Setting up LDAP/SSL during kickstart In-Reply-To: <46E055B8.90003@ip-solutions.net> References: <46DF1AB6.8000804@ip-solutions.net> <46E0137F.9070400@ip-solutions.net> <46E055B8.90003@ip-solutions.net> Message-ID: The starttls function tell the application to negotiate an encrypted session. Either SSL or TLS depends on the way the keys were generated. With 'openssl ciphers -v ALL' you could check the options your openssl could generate keys. Look at SSL version. See: http://sial.org/howto/openssl/tls-name/ On 9/6/07, Harry Hoffman wrote: > Ah, perhaps I was misunderstanding... > > I was thinking TLS, e.g. on port 389 an non-encrypted until a starttls > was issued vs. SSL on port 636 where the encryption is constantly enabled. > > Cheers, > Harry > > mups.cp wrote: > > SSL = SSLv1 or SSLv2 > > TLS = SSLv3 > > > > On 9/6/07, Harry Hoffman wrote: > >> Hi, > >> > >> Thanks for reviewing. > >> > >> I'm on RHEL4 and was having all sorts of weird issues with using > >> auth/authconfig. > >> > >> Does TLS == SSL for LDAP? > >> > >> Cheers, > >> Harry > >> > >> > >> mups.cp wrote: > >>> The kickstart auth option allow set must tyhe options you are settings > >>> into %post. > >>> http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html > >>> has all you need. Look for auth/authconfig > >>> > >>> > >>>> %post > >>>> # Setup LDAP > >>>> # > >>>> # equiv to running setup tool > >>>> authconfig --kickstart --enableshadow --enablemd5 --enableldap > >>>> --enableldapauth --ldapserver ldap.yourdomain.com --ldapbasedn > >>>> dc=yourdomain,dc=com > >>> Use this out %post. Look the link above. > >>> > >>> > >>>> # > >>>> # Turn SSL on in the config files > >>>> perl -p -i -e 's/^ssl no/ssl on/g' /etc/ldap.conf > >>>> echo "tls_cacertfile /etc/openldap/cacerts/cacert.asc" >> /etc/ldap.conf > >>>> echo "URI ldaps://ldap.yourdomain.com" >> /etc/openldap/ldap.conf > >>> Again, no necessary if using the above --enableldaptls. > >>> > >>>> # > >>>> # Create a directory to hold our Cert Auth certificate > >>>> mkdir -p /etc/openldap/cacerts > >>>> # Download the CA certificate > >>>> wget -O /etc/openldap/cacerts/cacert.asc http://INSTALL_SERVER/cacert.asc > >>>> # > >>> OK > >>> > >>>> # Have PAM autocreate home directories upon login > >>>> echo "session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ > >>>> umask=0077" >> /etc/pam.d/system-auth > >>> This is useful only if users connect through ssh. > >>> Through samba use root preexec to create home dir automaticly. > >>> For Linux clients use autofs. > >>> > >>>> # > >>>> # Ensure that local authorization is enough to get on the system > >>>> # (i.e. root can login) > >>>> perl -p -i -e 's/^USELOCAUTHORIZE=no/USELOCAUTHORIZE=yes/' > >>>> /etc/sysconfig/authconfig > >>> My system works without change this. > >>> > >>> _______________________________________________ > >>> Kickstart-list mailing list > >>> Kickstart-list at redhat.com > >>> https://www.redhat.com/mailman/listinfo/kickstart-list > >> _______________________________________________ > >> Kickstart-list mailing list > >> Kickstart-list at redhat.com > >> https://www.redhat.com/mailman/listinfo/kickstart-list > >> > > > > _______________________________________________ > > Kickstart-list mailing list > > Kickstart-list at redhat.com > > https://www.redhat.com/mailman/listinfo/kickstart-list > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From hhoffman at ip-solutions.net Sat Sep 8 01:13:14 2007 From: hhoffman at ip-solutions.net (Harry Hoffman) Date: Fri, 07 Sep 2007 21:13:14 -0400 Subject: Setting up LDAP/SSL during kickstart In-Reply-To: References: <46DF1AB6.8000804@ip-solutions.net> <46E0137F.9070400@ip-solutions.net> <46E055B8.90003@ip-solutions.net> Message-ID: <46E1F72A.4050900@ip-solutions.net> nice! thanks very much for the help and pointers. Cheers, Harry mups.cp wrote: > The starttls function tell the application to negotiate an encrypted > session. Either SSL or TLS depends on the way the keys were generated. > With 'openssl ciphers -v ALL' you could check the options your openssl > could generate keys. Look at SSL version. > > See: > http://sial.org/howto/openssl/tls-name/ > > > On 9/6/07, Harry Hoffman wrote: >> Ah, perhaps I was misunderstanding... >> >> I was thinking TLS, e.g. on port 389 an non-encrypted until a starttls >> was issued vs. SSL on port 636 where the encryption is constantly enabled. >> >> Cheers, >> Harry >> >> mups.cp wrote: >>> SSL = SSLv1 or SSLv2 >>> TLS = SSLv3 >>> >>> On 9/6/07, Harry Hoffman wrote: >>>> Hi, >>>> >>>> Thanks for reviewing. >>>> >>>> I'm on RHEL4 and was having all sorts of weird issues with using >>>> auth/authconfig. >>>> >>>> Does TLS == SSL for LDAP? >>>> >>>> Cheers, >>>> Harry >>>> >>>> >>>> mups.cp wrote: >>>>> The kickstart auth option allow set must tyhe options you are settings >>>>> into %post. >>>>> http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html >>>>> has all you need. Look for auth/authconfig >>>>> >>>>> >>>>>> %post >>>>>> # Setup LDAP >>>>>> # >>>>>> # equiv to running setup tool >>>>>> authconfig --kickstart --enableshadow --enablemd5 --enableldap >>>>>> --enableldapauth --ldapserver ldap.yourdomain.com --ldapbasedn >>>>>> dc=yourdomain,dc=com >>>>> Use this out %post. Look the link above. >>>>> >>>>> >>>>>> # >>>>>> # Turn SSL on in the config files >>>>>> perl -p -i -e 's/^ssl no/ssl on/g' /etc/ldap.conf >>>>>> echo "tls_cacertfile /etc/openldap/cacerts/cacert.asc" >> /etc/ldap.conf >>>>>> echo "URI ldaps://ldap.yourdomain.com" >> /etc/openldap/ldap.conf >>>>> Again, no necessary if using the above --enableldaptls. >>>>> >>>>>> # >>>>>> # Create a directory to hold our Cert Auth certificate >>>>>> mkdir -p /etc/openldap/cacerts >>>>>> # Download the CA certificate >>>>>> wget -O /etc/openldap/cacerts/cacert.asc http://INSTALL_SERVER/cacert.asc >>>>>> # >>>>> OK >>>>> >>>>>> # Have PAM autocreate home directories upon login >>>>>> echo "session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ >>>>>> umask=0077" >> /etc/pam.d/system-auth >>>>> This is useful only if users connect through ssh. >>>>> Through samba use root preexec to create home dir automaticly. >>>>> For Linux clients use autofs. >>>>> >>>>>> # >>>>>> # Ensure that local authorization is enough to get on the system >>>>>> # (i.e. root can login) >>>>>> perl -p -i -e 's/^USELOCAUTHORIZE=no/USELOCAUTHORIZE=yes/' >>>>>> /etc/sysconfig/authconfig >>>>> My system works without change this. >>>>> >>>>> _______________________________________________ >>>>> Kickstart-list mailing list >>>>> Kickstart-list at redhat.com >>>>> https://www.redhat.com/mailman/listinfo/kickstart-list >>>> _______________________________________________ >>>> Kickstart-list mailing list >>>> Kickstart-list at redhat.com >>>> https://www.redhat.com/mailman/listinfo/kickstart-list >>>> >>> _______________________________________________ >>> Kickstart-list mailing list >>> Kickstart-list at redhat.com >>> https://www.redhat.com/mailman/listinfo/kickstart-list >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list >> > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From Joe_Wulf at yahoo.com Sat Sep 15 00:49:25 2007 From: Joe_Wulf at yahoo.com (Joe_Wulf) Date: Fri, 14 Sep 2007 20:49:25 -0400 Subject: Pair of recent posts Message-ID: I've submitted a post regarding problems with getting the "comps" package recognized by anaconda/kickstart during installation over 2 days ago. Since I hadn't seen it come out on the list (and I checked my emails) I submitted it again this morning. I've gotten notification for both that they await moderator approval. What more can I do to get my posts posted? Thank you. R, -Joe Wulf, CISSP, USN(RET) Senior IA Engineer ProSync Technology Group, LLC www.prosync.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ProSync_SignatureItem_Blue.jpg Type: image/jpeg Size: 3249 bytes Desc: not available URL: From debian at herakles.homelinux.org Sat Sep 15 03:48:13 2007 From: debian at herakles.homelinux.org (John Summerfield) Date: Sat, 15 Sep 2007 11:48:13 +0800 Subject: Pair of recent posts In-Reply-To: References: Message-ID: <46EB55FD.7030605@herakles.homelinux.org> Joe_Wulf wrote: > I've submitted a post regarding problems with getting the "comps" package > recognized > by anaconda/kickstart during installation over 2 days ago. Since I hadn't seen > it come > out on the list (and I checked my emails) I submitted it again this morning. > I've gotten > notification for both that they await moderator approval. What more can I do to > get my > posts posted? Are you using the same email address as this time? Does it give a reason for being held? Maybe it's too big, or something. -- Cheers John -- spambait 1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu Please do not reply off-list From Vivek.Kalia at Euroclear.com Sat Sep 15 21:03:27 2007 From: Vivek.Kalia at Euroclear.com (Vivek.Kalia at Euroclear.com) Date: Sat, 15 Sep 2007 22:03:27 +0100 Subject: Vivek Kalia is out of the office. Message-ID: I will be out of the office starting 10/09/2007 and will not return until 17/09/2007. Please contact Mario Nevrides, Adam Burton or James Connolly in my abscence. This e-mail message, including any attachments transmitted with it, is CONFIDENTIAL and may contain legally privileged information. This message is intended solely for the use of the individual or entity to whom it is addressed. If you are not the intended recipient you should not read, copy, distribute, disclose or otherwise use this information. If you have received this message in error, please notify us immediately and delete it from your system. The integrity and security of this message cannot be guaranteed and it may be subject to data corruption and unauthorised amendment, for which we accept no liability. Euroclear reserves the right to retain email messages on its systems and to the extent and under circumstances permitted by applicable law, to monitor and intercept email messages to and from its systems. Euroclear is the marketing name for the Euroclear System, Euroclear plc, Euroclear SA/NV and their affiliates. Please visit our website: http://www.euroclear.com From Kevin.Maute at WPAFB.AF.MIL Tue Sep 18 14:48:57 2007 From: Kevin.Maute at WPAFB.AF.MIL (Maute, Kevin P CTR AFRL/VAOO) Date: Tue, 18 Sep 2007 10:48:57 -0400 Subject: %post details Message-ID: <29A7C5F65D54744CBFD97CD62A33DEE9022E3FA2@VFOHMLAO13.Enterprise.afmc.ds.af.mil> Folks, I am somewhat new to kickstart but have been using it with cobbler with a lot of success. Now I find I am frustrated with what I can and cannot do with it. I am able to create files/directories but am having trouble with cp from NFS. I am using the RHEL 5 Installation guide but find the examples somewhat wanting. Can anyone give me a code snippet of how they do this very simple operation? Thanks, Kevin -------------------------------------------- Kevin Maute Sr. Linux/Unix System Administrator RCF Information Systems AFRL/VAOO Contractor 937.255.1810 kevin.maute at wpafb.af.mil -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Shabazian at bankofamerica.com Tue Sep 18 15:51:49 2007 From: Chip.Shabazian at bankofamerica.com (Shabazian, Chip) Date: Tue, 18 Sep 2007 08:51:49 -0700 Subject: %post details In-Reply-To: <29A7C5F65D54744CBFD97CD62A33DEE9022E3FA2@VFOHMLAO13.Enterprise.afmc.ds.af.mil> Message-ID: Kevin, Put something like sleep 9999999999999 in your %post, then open a console on the box you are building (alt-f2) and manually try to do whatever you want to do. You probably want to chroot /mnt/sysimage first so that you are in the built environment. Once you got it worked out, you simply put those commands in your %post. You can also search the archives as I know there have been issues and suggestions in the past with NFS. Chip ________________________________ From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Maute, Kevin P CTR AFRL/VAOO Sent: Tuesday, September 18, 2007 7:49 AM To: kickstart-list at redhat.com Subject: %post details Folks, I am somewhat new to kickstart but have been using it with cobbler with a lot of success. Now I find I am frustrated with what I can and cannot do with it. I am able to create files/directories but am having trouble with cp from NFS. I am using the RHEL 5 Installation guide but find the examples somewhat wanting. Can anyone give me a code snippet of how they do this very simple operation? Thanks, Kevin -------------------------------------------- Kevin Maute Sr. Linux/Unix System Administrator RCF Information Systems AFRL/VAOO Contractor 937.255.1810 kevin.maute at wpafb.af.mil -------------- next part -------------- An HTML attachment was scrubbed... URL: From rkramer at gryphonnetworks.com Tue Sep 18 20:14:30 2007 From: rkramer at gryphonnetworks.com (Ross_Kramer) Date: Tue, 18 Sep 2007 16:14:30 -0400 Subject: Broken AMD64 RHEL4.5 Kickstart install... Message-ID: I have been fighting with Enterprise server 4.5 64bit for the last week. So far I've encountered the following issues in my custom network kickstart build: lvcreate doesn't appear to exist during install causing anaconda to fail when trying to create logical volumes, getting past that by creating regular ext3 partitions IOerror [28] Occurred http://url/to/my/buildir/disc1/RedHat/base/hdlist2 no space left on device Now why that is running out of space is a complete mystery. Has anyone run into this sort of problem? I've attached an abbreviated ks.cfg for perusal -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ks-network.cfg Type: application/octet-stream Size: 3708 bytes Desc: ks-network.cfg URL: From Kevin.Maute at WPAFB.AF.MIL Tue Sep 18 20:41:55 2007 From: Kevin.Maute at WPAFB.AF.MIL (Maute, Kevin P CTR AFRL/VAOO) Date: Tue, 18 Sep 2007 16:41:55 -0400 Subject: %post details In-Reply-To: References: <29A7C5F65D54744CBFD97CD62A33DEE9022E3FA2@VFOHMLAO13.Enterprise.afmc.ds.af.mil> Message-ID: <29A7C5F65D54744CBFD97CD62A33DEE90232079E@VFOHMLAO13.Enterprise.afmc.ds.af.mil> Chip, Thanks. You got me to play with the install while it was being performed and I figured out all of my issues. My general question still stands. Where is kickstart documented for folks who need to be a little more in-depth. A classic case is what are all the options that can be passed to %post and %pre? I have found some info in three or more different locations and the document I mentioned earlier has what appears to be some random text at the end of the "mount -o nolock" line. Kickstart is a great resource which could probably be documented a "little" more :-). Thanks, Kevin > -----Original Message----- > From: kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of > Shabazian, Chip > Sent: Tuesday, September 18, 2007 11:52 AM > To: Discussion list about Kickstart > Subject: RE: %post details > > Kevin, > > Put something like sleep 9999999999999 in your %post, then > open a console on the box you are building (alt-f2) and > manually try to do whatever you want to do. You probably > want to chroot /mnt/sysimage first so that you are in the > built environment. Once you got it worked out, you simply > put those commands in your %post. > > You can also search the archives as I know there have been > issues and suggestions in the past with NFS. > > Chip > > ________________________________ > > From: kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of > Maute, Kevin P CTR AFRL/VAOO > Sent: Tuesday, September 18, 2007 7:49 AM > To: kickstart-list at redhat.com > Subject: %post details > > > > Folks, > > I am somewhat new to kickstart but have been using it with > cobbler with a lot of success. Now I find I am frustrated > with what I can and cannot do with it. I am able to create > files/directories but am having trouble with cp from NFS. I > am using the RHEL 5 Installation guide but find the examples > somewhat wanting. > > Can anyone give me a code snippet of how they do this very > simple operation? > > Thanks, > Kevin > > -------------------------------------------- > Kevin Maute > Sr. Linux/Unix System Administrator > RCF Information Systems > AFRL/VAOO Contractor > 937.255.1810 > kevin.maute at wpafb.af.mil > > From Pablo.Iranzo at redhat.com Tue Sep 18 20:41:53 2007 From: Pablo.Iranzo at redhat.com (=?UTF-8?Q?Pablo_Iranzo_G=C3=B3mez?=) Date: Tue, 18 Sep 2007 22:41:53 +0200 (CEST) Subject: %post details In-Reply-To: <29A7C5F65D54744CBFD97CD62A33DEE90232079E@VFOHMLAO13.Enterprise.afmc.ds.af.mil> References: <29A7C5F65D54744CBFD97CD62A33DEE9022E3FA2@VFOHMLAO13.Enterprise.afmc.ds.af.mil> <29A7C5F65D54744CBFD97CD62A33DEE90232079E@VFOHMLAO13.Enterprise.afmc.ds.af.mil> Message-ID: On Tue, 18 Sep 2007, Maute, Kevin P CTR AFRL/VAOO wrote: > more in-depth. A classic case is what are all the options that can be > passed to %post and %pre? At %pre, you only have one minimal system (lvm, sfdisk, mount, etc) , at %post you have what you installed on your system ;) (you can check the options while you test the installation with the "sleep" Regards Pablo From clumens at redhat.com Tue Sep 18 21:39:20 2007 From: clumens at redhat.com (Chris Lumens) Date: Tue, 18 Sep 2007 17:39:20 -0400 Subject: %post details In-Reply-To: <29A7C5F65D54744CBFD97CD62A33DEE90232079E@VFOHMLAO13.Enterprise.afmc.ds.af.mil> References: <29A7C5F65D54744CBFD97CD62A33DEE9022E3FA2@VFOHMLAO13.Enterprise.afmc.ds.af.mil> <29A7C5F65D54744CBFD97CD62A33DEE90232079E@VFOHMLAO13.Enterprise.afmc.ds.af.mil> Message-ID: <20070918213920.GE29876@exeter.boston.redhat.com> > Thanks. You got me to play with the install while it was being > performed and I figured out all of my issues. My general question still > stands. Where is kickstart documented for folks who need to be a little > more in-depth. A classic case is what are all the options that can be > passed to %post and %pre? I have found some info in three or more > different locations and the document I mentioned earlier has what > appears to be some random text at the end of the "mount -o nolock" line. > Kickstart is a great resource which could probably be documented a > "little" more :-). I agree, the kickstart documentation tends to be both old and scattered around. The current most complete kickstart documentation I've got is: http://fedoraproject.org/wiki/AnacondaKickstart If this is insufficient or incorrect, please either make modifications yourself (it's a wiki, after all) or bring it to my attention and I'll make changes myself. Thanks! - Chris From debian at herakles.homelinux.org Tue Sep 18 23:59:52 2007 From: debian at herakles.homelinux.org (John Summerfield) Date: Wed, 19 Sep 2007 07:59:52 +0800 Subject: %post details In-Reply-To: <29A7C5F65D54744CBFD97CD62A33DEE90232079E@VFOHMLAO13.Enterprise.afmc.ds.af.mil> References: <29A7C5F65D54744CBFD97CD62A33DEE9022E3FA2@VFOHMLAO13.Enterprise.afmc.ds.af.mil> <29A7C5F65D54744CBFD97CD62A33DEE90232079E@VFOHMLAO13.Enterprise.afmc.ds.af.mil> Message-ID: <46F06678.9000007@herakles.homelinux.org> Maute, Kevin P CTR AFRL/VAOO wrote: > Chip, > > Thanks. You got me to play with the install while it was being > performed and I figured out all of my issues. My general question still > stands. Where is kickstart documented for folks who need to be a little Have you tried the RHEL documentation? It's online at www.redhat.com -- Cheers John -- spambait 1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu Please do not reply off-list From Chip.Shabazian at bankofamerica.com Wed Sep 19 08:10:34 2007 From: Chip.Shabazian at bankofamerica.com (Shabazian, Chip) Date: Wed, 19 Sep 2007 01:10:34 -0700 Subject: %post details In-Reply-To: <46F06678.9000007@herakles.homelinux.org> Message-ID: I agree, the documentation is a bit sparse, and there are a lot of undocumented features. Check out my LinuxWorld presentation, and see if that helps: http://www.shabazian.com/lw2007.pdf Chip -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of John Summerfield Sent: Tuesday, September 18, 2007 5:00 PM To: Discussion list about Kickstart Subject: Re: %post details Maute, Kevin P CTR AFRL/VAOO wrote: > Chip, > > Thanks. You got me to play with the install while it was being > performed and I figured out all of my issues. My general question > still stands. Where is kickstart documented for folks who need to be > a little Have you tried the RHEL documentation? It's online at www.redhat.com -- Cheers John -- spambait 1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu Please do not reply off-list _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From rkramer at gryphonnetworks.com Wed Sep 19 14:34:06 2007 From: rkramer at gryphonnetworks.com (Ross Kramer) Date: Wed, 19 Sep 2007 10:34:06 -0400 Subject: Broken AMD64 RHEL4.5 Kickstart install... In-Reply-To: References: Message-ID: <1190212446.8618.3.camel@slappy> As it turns out, I figured out what my issue was. It was PBKAC :-) On Tue, 2007-09-18 at 16:14 -0400, Ross_Kramer wrote: > > I have been fighting with Enterprise server 4.5 64bit for the last > week. So far I've encountered the following issues in my custom > network kickstart build: > > lvcreate doesn't appear to exist during install causing anaconda to > fail when trying to create logical volumes, > getting past that by creating regular ext3 partitions > > IOerror [28] Occurred > http://url/to/my/buildir/disc1/RedHat/base/hdlist2 no space left on > device > > Now why that is running out of space is a complete mystery. > > Has anyone run into this sort of problem? > > I've attached an abbreviated ks.cfg for perusal > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From ianbrn at gmail.com Sun Sep 23 13:19:15 2007 From: ianbrn at gmail.com (Ian Brown) Date: Sun, 23 Sep 2007 15:19:15 +0200 Subject: FC7 kickstart installation, Message-ID: - Hello, - I have a DVD of FC7 x86_64 installation. - I have an http server on the LAN on which there is an installation for FC7 x86_64. - When I boot the DVD inside and boot the machine, I get the following screen, which have a menu of 4 options: Welcome to Fedora Install or upgrade an existing ... ... boot from disk. In previous version of Fedora Core (like 4,5,6), I could type linux ks=http://192.168.0.10/ks.cfg. Here I have a boot menu with only four options. I can enter edit mode for this entries by pressing "Tab". However, I tried pressing Tab , and erasing a line and entering instead linux ks=http://192.168.0.10/ks.cfg and enter but it did not work (the previous, original entry was kept). Any idea what should I do in order to start a kickstart configuration when installing FC7 ? I want to add that I am of course aware of other options (like booting this machine with FC6/FC5 installation DVD, and then running linux ks=http://192.168.0.10/ks.cfg, but I want to be able to do it with installation DVD of FC7 (x86_64). Any ideas? Regards, Ian From andrea.rucks at us.lawson.com Sun Sep 23 17:01:31 2007 From: andrea.rucks at us.lawson.com (Andrea Rucks) Date: Sun, 23 Sep 2007 12:01:31 -0500 Subject: Andrea Rucks is out of the office. Message-ID: I will be out of the office starting 09/21/2007 and will not return until 10/01/2007. I will respond to your message when I return. If you need immediate Unix server assistance, please contact either Barry Haubrich or Chris Hildrum for all Lawson ITS Unix Server requests. Cheers, Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: From mups.cp at gmail.com Mon Sep 24 02:22:21 2007 From: mups.cp at gmail.com (mups.cp) Date: Sun, 23 Sep 2007 23:22:21 -0300 Subject: FC7 kickstart installation, In-Reply-To: References: Message-ID: Your procedure is correct. Maybe Fedora 7 lack the correct drivers for your network interface, so the installer can't connect to your internal server. I recommend you test this using the ks.cfg file in a floppy disk with: linux ks=floppy On 9/23/07, Ian Brown wrote: > - Hello, > > - I have a DVD of FC7 x86_64 installation. > > - I have an http server on the LAN on which there is an installation > for FC7 x86_64. > > - When I boot the DVD inside and boot the machine, I get the following > screen, which have a menu of 4 options: > Welcome to Fedora > > Install or upgrade an existing ... > ... > boot from disk. > > In previous version of Fedora Core (like 4,5,6), I could type > linux ks=http://192.168.0.10/ks.cfg. > > Here I have a boot menu with only four options. > > I can enter edit mode for this entries by pressing "Tab". > However, I tried pressing Tab , and erasing a line and entering instead > linux ks=http://192.168.0.10/ks.cfg and enter but it did not work (the > previous, original entry was kept). > Any idea what should I do in order to start a kickstart configuration > when installing FC7 ? > > I want to add that I am of course aware of other options (like > booting this machine with FC6/FC5 installation DVD, and then running > linux ks=http://192.168.0.10/ks.cfg, but I want to be able to do it > with installation DVD of FC7 (x86_64). > > Any ideas? > > Regards, > Ian > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From mdehaan at redhat.com Mon Sep 24 16:26:36 2007 From: mdehaan at redhat.com (Michael DeHaan) Date: Mon, 24 Sep 2007 12:26:36 -0400 Subject: FC7 kickstart installation, In-Reply-To: References: Message-ID: <46F7E53C.8090108@redhat.com> Ian Brown wrote: > Any idea what should I do in order to start a kickstart configuration > when installing FC7 ? > > I want to add that I am of course aware of other options (like > booting this machine with FC6/FC5 installation DVD, and then running > linux ks=http://192.168.0.10/ks.cfg, but I want to be able to do it > with installation DVD of FC7 (x86_64). > Command line editing should "just work". Typically I think I type "b" to boot, but I don't recall any changes either. One point though -- you shouldn't use the other distro's install CD/DVD to install a distro that is not matched to it. Since the initrd from the CD is different, it shouldn't work. If you get fed up with media, you could set up a local boot server. Ex: http://cobbler.et.redhat.com :) > > Any ideas? > > Regards, > Ian > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From ianbrn at gmail.com Tue Sep 25 08:24:48 2007 From: ianbrn at gmail.com (Ian Brown) Date: Tue, 25 Sep 2007 10:24:48 +0200 Subject: FC7 kickstart installation, In-Reply-To: <46F7E53C.8090108@redhat.com> References: <46F7E53C.8090108@redhat.com> Message-ID: Michael, Thanks, The thing is that changing a line and pressing "b" did not do the job. (whereas in ordinary grub I use it all the time and it works) nor did "enter" and changing the line worked. It seems to me that this is not an ordinary GRUB; the fact is that in ordinary grub you press "E" to edit a menu entry and here you press "TAB" to edit a menu entry. Regards, Ian On 9/24/07, Michael DeHaan wrote: > Ian Brown wrote: > > Any idea what should I do in order to start a kickstart configuration > > when installing FC7 ? > > > > I want to add that I am of course aware of other options (like > > booting this machine with FC6/FC5 installation DVD, and then running > > linux ks=http://192.168.0.10/ks.cfg, but I want to be able to do it > > with installation DVD of FC7 (x86_64). > > > Command line editing should "just work". Typically I think I type "b" > to boot, but I don't > recall any changes either. > > One point though -- you shouldn't use the other distro's install CD/DVD > to install a distro that > is not matched to it. Since the initrd from the CD is different, it > shouldn't work. > > If you get fed up with media, you could set up a local boot server. > Ex: http://cobbler.et.redhat.com :) > > > > > > > Any ideas? > > > > Regards, > > Ian > > > > _______________________________________________ > > Kickstart-list mailing list > > Kickstart-list at redhat.com > > https://www.redhat.com/mailman/listinfo/kickstart-list > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From Joe_Wulf at yahoo.com Tue Sep 25 12:22:29 2007 From: Joe_Wulf at yahoo.com (Joe_Wulf) Date: Tue, 25 Sep 2007 08:22:29 -0400 Subject: COMPS Problem In-Reply-To: References: <46F7E53C.8090108@redhat.com> Message-ID: I am using RHEL AS4 update 5 32bit. I've been manually working the packages issues for the %post section. "COMPS" is the only package during installation that 'errors' out. The installer, when kickstarting, says that "COMPS" is not a valid package, and do I want to abort or continue. What is the proper way to define COMPS as a valid package? Thank you. R, -Joe Wulf, CISSP, USN(RET) Senior IA Engineer ProSync Technology Group, LLC www.prosync.com From mdehaan at redhat.com Tue Sep 25 19:33:44 2007 From: mdehaan at redhat.com (Michael DeHaan) Date: Tue, 25 Sep 2007 15:33:44 -0400 Subject: FC7 kickstart installation, In-Reply-To: References: <46F7E53C.8090108@redhat.com> Message-ID: <46F96298.7030103@redhat.com> Ian Brown wrote: > Michael, > Thanks, > The thing is that changing a line and pressing "b" did not do the job. > (whereas in ordinary grub I use it all the time and it works) > nor did "enter" and changing the line worked. > > It seems to me that this is not an ordinary GRUB; the fact is that in > ordinary grub > you press "E" to edit a menu entry and here you press "TAB" to edit a > menu entry. > > Regards, > Ian > You're right. I should have thought of that. The menu is using syslinux, not grub. Per Peter Jones on #fedora-devel, "escape" will get you to the "boot:" prompt. --Michael > On 9/24/07, Michael DeHaan wrote: > >> Ian Brown wrote: >> >>> Any idea what should I do in order to start a kickstart configuration >>> when installing FC7 ? >>> >>> I want to add that I am of course aware of other options (like >>> booting this machine with FC6/FC5 installation DVD, and then running >>> linux ks=http://192.168.0.10/ks.cfg, but I want to be able to do it >>> with installation DVD of FC7 (x86_64). >>> >>> >> Command line editing should "just work". Typically I think I type "b" >> to boot, but I don't >> recall any changes either. >> >> One point though -- you shouldn't use the other distro's install CD/DVD >> to install a distro that >> is not matched to it. Since the initrd from the CD is different, it >> shouldn't work. >> >> If you get fed up with media, you could set up a local boot server. >> Ex: http://cobbler.et.redhat.com :) >> >> >> >> >>> Any ideas? >>> >>> Regards, >>> Ian >>> >>> _______________________________________________ >>> Kickstart-list mailing list >>> Kickstart-list at redhat.com >>> https://www.redhat.com/mailman/listinfo/kickstart-list >>> >>> >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list >> >> > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From lunixer at gmail.com Tue Sep 25 22:30:00 2007 From: lunixer at gmail.com (Aldo Foot) Date: Tue, 25 Sep 2007 15:30:00 -0700 Subject: FC7 kickstart installation, In-Reply-To: References: Message-ID: <3d22fc520709251530w58d1f467r8891b33d067b298@mail.gmail.com> On 9/23/07, Ian Brown wrote: > > - Hello, > > - I have a DVD of FC7 x86_64 installation. > > - I have an http server on the LAN on which there is an > installation > for FC7 x86_64. > > - When I boot the DVD inside and boot the machine, I get the > following > screen, which have a menu of 4 options: > Welcome to Fedora > > Install or upgrade an existing ... > ... > boot from disk. > > In previous version of Fedora Core (like 4,5,6), I could type > linux ks=http://192.168.0.10/ks.cfg. > > Here I have a boot menu with only four options. > > I can enter edit mode for this entries by pressing "Tab". > However, I tried pressing Tab , and erasing a line and entering > instead > linux ks=http://192.168.0.10/ks.cfg and enter but it did not work > (the > previous, original entry was kept). > Any idea what should I do in order to start a kickstart > configuration > when installing FC7 ? > > I want to add that I am of course aware of other options (like > booting this machine with FC6/FC5 installation DVD, and then > running > linux ks=http://192.168.0.10/ks.cfg, but I want to be able to do > it > with installation DVD of FC7 (x86_64). > > Any ideas? > > Regards, > Ian > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list Ian, Just after the system loops through the POST messages, keep pressing the ESC key. The familiar boot: will appear and you can type the commands for kickstart. ~Aldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kslist at devo.com Tue Sep 25 23:02:53 2007 From: kslist at devo.com (kslist) Date: Wed, 26 Sep 2007 01:02:53 +0200 (CEST) Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) Message-ID: <53983.77.132.133.197.1190761373.squirrel@whipit.devo.com> Hello KSers, I am using my Kickstart script that I have adapted from RHEL 2.1, 3, and 4 now on CentOS 5. CentOS 5 behaves differently when it comes to network configuration. In essence: AFTER the successfull installation, during the first startup of the OS, something desctroys my network configuration. Specifically, the files that I have directly written in my %post script: /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/hosts /etc/resolve.conf are modified, and in the case of the ifcfg-* scripts, my scripts are moved to a *.bak file (which have a datestamp later than the files I created via %post, and which correspond to the firstboot) and a completely newfile is created in its place. The network configuration that replaces my own is one for DHCP. My guess is that this is a result of a change in behaviour of the "network" option. To quote from the RHEL 5 Installation Guide: "Configures network information for the system. If the kickstart installation does not require networking (in other words, it is not installed over NFS, HTTP, or FTP), networking is not configured for the system. If the installation does require networking and network information is not provided in the kickstart file, the installation program assumes that the installation should be done over eth0 via a dynamic IP address (BOOTP/DHCP), and configures the final, installed system to determine its IP address dynamically. The network option configures networking information for kickstart installations via a network as well as for the installed system." Now, I see a problem here: - I use DHCP to install the system (via Kickstart) - I however do NOT want to run the subsequently installed OS to use DHCP. I would say that is a very very normal thing to want. However, the way the manual describes it, and from the behaviour I have seen, it is not possible to install via DHCP, and then setup your own network configuration in %post, because your configuration will be overwritten next time you boot the system. Ussing "firstboot --disable" doesn't help. Please help! -Christian From Joe_Wulf at yahoo.com Wed Sep 26 01:10:57 2007 From: Joe_Wulf at yahoo.com (Joe_Wulf) Date: Tue, 25 Sep 2007 21:10:57 -0400 Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) In-Reply-To: <53983.77.132.133.197.1190761373.squirrel@whipit.devo.com> References: <53983.77.132.133.197.1190761373.squirrel@whipit.devo.com> Message-ID: Christian, Very interesting. I've been doing a lot lately with RHEL5, both manually and via kickstart. My KS server is Fedora 7, though that really shouldn't matter. For my own education, I would very much like to see an anonym zed display of the files you've mentioned before and to see what your method is for doing this. I agree with you, that the behavior you are looking for is normal. Some want to manage their static IP's via DHCP, yet I've worked with large-scale enterprises that decry DHCP entirely. Meaning their entire world is static, period. Its a choice for how to manage the infrastructure. You said using firstboot 'disabled' via your ks.cfg didn't help. Can you please elaborate? One tool I've been using is 'zlister' during the initial phase of the %post section, then when I'm all done manipulating the system, then I run it again as the VERY first 'thing' I do once I log it, no matter WHAT issues/problems I'm having or wish to solve. Its a set of scripts that let me list the entire filesystem (akin to tripwire, kinda) and then do context-diff's of filesystem listings against previous runs. I can speak more to this if desired, but its simply a tool I use. R, -Joe Wulf, CISSP, USN(RET) Senior IA Engineer ProSync Technology Group, LLC www.prosync.com -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of kslist Sent: Tuesday, September 25, 2007 19:03 To: kickstart-list at redhat.com Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) Hello KSers, I am using my Kickstart script that I have adapted from RHEL 2.1, 3, and 4 now on CentOS 5. CentOS 5 behaves differently when it comes to network configuration. In essence: AFTER the successfull installation, during the first startup of the OS, something desctroys my network configuration. Specifically, the files that I have directly written in my %post script: /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/hosts /etc/resolve.conf are modified, and in the case of the ifcfg-* scripts, my scripts are moved to a *.bak file (which have a datestamp later than the files I created via %post, and which correspond to the firstboot) and a completely newfile is created in its place. The network configuration that replaces my own is one for DHCP. My guess is that this is a result of a change in behaviour of the "network" option. To quote from the RHEL 5 Installation Guide: "Configures network information for the system. If the kickstart installation does not require networking (in other words, it is not installed over NFS, HTTP, or FTP), networking is not configured for the system. If the installation does require networking and network information is not provided in the kickstart file, the installation program assumes that the installation should be done over eth0 via a dynamic IP address (BOOTP/DHCP), and configures the final, installed system to determine its IP address dynamically. The network option configures networking information for kickstart installations via a network as well as for the installed system." Now, I see a problem here: - I use DHCP to install the system (via Kickstart) - I however do NOT want to run the subsequently installed OS to use DHCP. I would say that is a very very normal thing to want. However, the way the manual describes it, and from the behaviour I have seen, it is not possible to install via DHCP, and then setup your own network configuration in %post, because your configuration will be overwritten next time you boot the system. Ussing "firstboot --disable" doesn't help. Please help! -Christian _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From srobson at cadence.com Wed Sep 26 16:25:51 2007 From: srobson at cadence.com (Steve Robson) Date: Wed, 26 Sep 2007 17:25:51 +0100 Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) In-Reply-To: <20070926160014.8D97073855@hormel.redhat.com> References: <20070926160014.8D97073855@hormel.redhat.com> Message-ID: <46FA880F.6030404@cadence.com> > Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) > From: "kslist" > Date: Wed, 26 Sep 2007 01:02:53 +0200 (CEST) > To: kickstart-list at redhat.com > > Hello KSers, > > I am using my Kickstart script that I have adapted from RHEL 2.1, 3, and 4 > now on CentOS 5. CentOS 5 behaves differently when it comes to network > configuration. > > In essence: AFTER the successfull installation, during the first startup > of the OS, something desctroys my network configuration. Specifically, the > files that I have directly written in my %post script: > /etc/sysconfig/network > /etc/sysconfig/network-scripts/ifcfg-eth0 > /etc/sysconfig/network-scripts/ifcfg-eth1 > /etc/hosts > /etc/resolve.conf > are modified, and in the case of the ifcfg-* scripts, my scripts are moved > to a *.bak file (which have a datestamp later than the files I created via > %post, and which correspond to the firstboot) and a completely newfile is > created in its place. > > The network configuration that replaces my own is one for DHCP. > > My guess is that this is a result of a change in behaviour of the > "network" option. To quote from the RHEL 5 Installation Guide: > > "Configures network information for the system. If the kickstart > installation does not require networking (in other words, it is not > installed over NFS, HTTP, or FTP), networking is not configured for the > system. If the installation does require networking and network > information is not provided in the kickstart file, the installation > program assumes that the installation should be done over eth0 via a > dynamic IP address (BOOTP/DHCP), and configures the final, installed > system to determine its IP address dynamically. The network option > configures networking information for kickstart installations via a > network as well as for the installed system." > > Now, I see a problem here: > - I use DHCP to install the system (via Kickstart) > - I however do NOT want to run the subsequently installed OS to use DHCP. > > I would say that is a very very normal thing to want. Completely normal, I do it all the time! Typically I use one of the following "network" directives, depending how I want the resulting client to behave. Beware that if you choose to statically address the target client using this method, its IP address must be on the same subnet as your KS server. network --device=eth0 --bootproto=dhcp --hostname=lnx-blah or network --bootproto static --device=eth0 --gateway=I.P.of.GW --ip=I.P.of.client --nameserver=IP.of.DNS.server --netmask=I.P.of.netmask --onboot=on --hostname=lnx-blah Hope this helps, see here for full detail: http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html -- Regards, Steve IT Support - UNIX/Linux Cadence Design Systems Bagshot Road Bracknell BERKSHIRE RG12 0PH UK From dan at half-asleep.com Wed Sep 26 17:02:03 2007 From: dan at half-asleep.com (Daniel Segall) Date: Wed, 26 Sep 2007 13:02:03 -0400 Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) In-Reply-To: <46FA880F.6030404@cadence.com> References: <20070926160014.8D97073855@hormel.redhat.com> <46FA880F.6030404@cadence.com> Message-ID: <46FA908B.40507@half-asleep.com> Steve Robson wrote: >> Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) >> From: "kslist" >> Date: Wed, 26 Sep 2007 01:02:53 +0200 (CEST) >> To: kickstart-list at redhat.com >> >> Hello KSers, >> >> I am using my Kickstart script that I have adapted from RHEL 2.1, 3, >> and 4 >> now on CentOS 5. CentOS 5 behaves differently when it comes to network >> configuration. >> >> In essence: AFTER the successfull installation, during the first startup >> of the OS, something desctroys my network configuration. Specifically, >> the >> files that I have directly written in my %post script: >> /etc/sysconfig/network >> /etc/sysconfig/network-scripts/ifcfg-eth0 >> /etc/sysconfig/network-scripts/ifcfg-eth1 >> /etc/hosts >> /etc/resolve.conf >> are modified, and in the case of the ifcfg-* scripts, my scripts are >> moved >> to a *.bak file (which have a datestamp later than the files I created >> via >> %post, and which correspond to the firstboot) and a completely newfile is >> created in its place. >> >> The network configuration that replaces my own is one for DHCP. >> >> My guess is that this is a result of a change in behaviour of the >> "network" option. To quote from the RHEL 5 Installation Guide: >> >> "Configures network information for the system. If the kickstart >> installation does not require networking (in other words, it is not >> installed over NFS, HTTP, or FTP), networking is not configured for the >> system. If the installation does require networking and network >> information is not provided in the kickstart file, the installation >> program assumes that the installation should be done over eth0 via a >> dynamic IP address (BOOTP/DHCP), and configures the final, installed >> system to determine its IP address dynamically. The network option >> configures networking information for kickstart installations via a >> network as well as for the installed system." >> >> Now, I see a problem here: >> - I use DHCP to install the system (via Kickstart) >> - I however do NOT want to run the subsequently installed OS to use DHCP. >> >> I would say that is a very very normal thing to want. > > Completely normal, I do it all the time! > > Typically I use one of the following "network" directives, depending how > I want the resulting client to behave. Beware that if you choose to > statically address the target client using this method, its IP address > must be on the same subnet as your KS server. > > network --device=eth0 --bootproto=dhcp --hostname=lnx-blah > or > network --bootproto static --device=eth0 --gateway=I.P.of.GW > --ip=I.P.of.client --nameserver=IP.of.DNS.server > --netmask=I.P.of.netmask --onboot=on --hostname=lnx-blah > > Hope this helps, see here for full detail: > http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html > > I think what the OP is referring to is network config files that were changed in %post being squashed after reboot. I noticed this as well when I first started building my configs for RHEL5, but since we haven't been using them, I never looked into it. So for example, you use DHCP during the install, then set the IP's in the %post. When the server reboots, it seems to overwrite any changes you made to the /etc/sysconfig/network-scripts/ifcfg-* files. Hope that helps clarify. -Dan From Chip.Shabazian at bankofamerica.com Wed Sep 26 17:05:15 2007 From: Chip.Shabazian at bankofamerica.com (Shabazian, Chip) Date: Wed, 26 Sep 2007 10:05:15 -0700 Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) In-Reply-To: <46FA908B.40507@half-asleep.com> References: <20070926160014.8D97073855@hormel.redhat.com> <46FA880F.6030404@cadence.com> <46FA908B.40507@half-asleep.com> Message-ID: Why not configure the network line in %pre and include it in the command section? Wouldn't that fix this issue? -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Daniel Segall Sent: Wednesday, September 26, 2007 10:02 AM To: Discussion list about Kickstart Subject: Re: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) Steve Robson wrote: >> Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) >> From: "kslist" >> Date: Wed, 26 Sep 2007 01:02:53 +0200 (CEST) >> To: kickstart-list at redhat.com >> >> Hello KSers, >> >> I am using my Kickstart script that I have adapted from RHEL 2.1, 3, >> and 4 >> now on CentOS 5. CentOS 5 behaves differently when it comes to network >> configuration. >> >> In essence: AFTER the successfull installation, during the first startup >> of the OS, something desctroys my network configuration. Specifically, >> the >> files that I have directly written in my %post script: >> /etc/sysconfig/network >> /etc/sysconfig/network-scripts/ifcfg-eth0 >> /etc/sysconfig/network-scripts/ifcfg-eth1 >> /etc/hosts >> /etc/resolve.conf >> are modified, and in the case of the ifcfg-* scripts, my scripts are >> moved >> to a *.bak file (which have a datestamp later than the files I created >> via >> %post, and which correspond to the firstboot) and a completely newfile is >> created in its place. >> >> The network configuration that replaces my own is one for DHCP. >> >> My guess is that this is a result of a change in behaviour of the >> "network" option. To quote from the RHEL 5 Installation Guide: >> >> "Configures network information for the system. If the kickstart >> installation does not require networking (in other words, it is not >> installed over NFS, HTTP, or FTP), networking is not configured for the >> system. If the installation does require networking and network >> information is not provided in the kickstart file, the installation >> program assumes that the installation should be done over eth0 via a >> dynamic IP address (BOOTP/DHCP), and configures the final, installed >> system to determine its IP address dynamically. The network option >> configures networking information for kickstart installations via a >> network as well as for the installed system." >> >> Now, I see a problem here: >> - I use DHCP to install the system (via Kickstart) >> - I however do NOT want to run the subsequently installed OS to use DHCP. >> >> I would say that is a very very normal thing to want. > > Completely normal, I do it all the time! > > Typically I use one of the following "network" directives, depending how > I want the resulting client to behave. Beware that if you choose to > statically address the target client using this method, its IP address > must be on the same subnet as your KS server. > > network --device=eth0 --bootproto=dhcp --hostname=lnx-blah > or > network --bootproto static --device=eth0 --gateway=I.P.of.GW > --ip=I.P.of.client --nameserver=IP.of.DNS.server > --netmask=I.P.of.netmask --onboot=on --hostname=lnx-blah > > Hope this helps, see here for full detail: > http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation _Guide-en-US/s1-kickstart2-options.html > > I think what the OP is referring to is network config files that were changed in %post being squashed after reboot. I noticed this as well when I first started building my configs for RHEL5, but since we haven't been using them, I never looked into it. So for example, you use DHCP during the install, then set the IP's in the %post. When the server reboots, it seems to overwrite any changes you made to the /etc/sysconfig/network-scripts/ifcfg-* files. Hope that helps clarify. -Dan _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From ebrown at lanl.gov Wed Sep 26 17:19:25 2007 From: ebrown at lanl.gov (Ed Brown) Date: Wed, 26 Sep 2007 11:19:25 -0600 Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) In-Reply-To: References: <20070926160014.8D97073855@hormel.redhat.com> <46FA880F.6030404@cadence.com> <46FA908B.40507@half-asleep.com> Message-ID: <46FA949D.6080600@lanl.gov> This sounds like a reasonable workaround, but firstboot should not be overwriting files created in %post, especially if 'disabled'. Something very wrong with that picture... -Ed Shabazian, Chip wrote: > Why not configure the network line in %pre and include it in the command > section? Wouldn't that fix this issue? > > -----Original Message----- > From: kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Daniel Segall > Sent: Wednesday, September 26, 2007 10:02 AM > To: Discussion list about Kickstart > Subject: Re: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) > > Steve Robson wrote: >>> Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) >>> From: "kslist" >>> Date: Wed, 26 Sep 2007 01:02:53 +0200 (CEST) >>> To: kickstart-list at redhat.com >>> >>> Hello KSers, >>> >>> I am using my Kickstart script that I have adapted from RHEL 2.1, 3, >>> and 4 >>> now on CentOS 5. CentOS 5 behaves differently when it comes to > network >>> configuration. >>> >>> In essence: AFTER the successfull installation, during the first > startup >>> of the OS, something desctroys my network configuration. > Specifically, >>> the >>> files that I have directly written in my %post script: >>> /etc/sysconfig/network >>> /etc/sysconfig/network-scripts/ifcfg-eth0 >>> /etc/sysconfig/network-scripts/ifcfg-eth1 >>> /etc/hosts >>> /etc/resolve.conf >>> are modified, and in the case of the ifcfg-* scripts, my scripts are >>> moved >>> to a *.bak file (which have a datestamp later than the files I > created >>> via >>> %post, and which correspond to the firstboot) and a completely > newfile is >>> created in its place. >>> >>> The network configuration that replaces my own is one for DHCP. >>> >>> My guess is that this is a result of a change in behaviour of the >>> "network" option. To quote from the RHEL 5 Installation Guide: >>> >>> "Configures network information for the system. If the kickstart >>> installation does not require networking (in other words, it is not >>> installed over NFS, HTTP, or FTP), networking is not configured for > the >>> system. If the installation does require networking and network >>> information is not provided in the kickstart file, the installation >>> program assumes that the installation should be done over eth0 via a >>> dynamic IP address (BOOTP/DHCP), and configures the final, installed >>> system to determine its IP address dynamically. The network option >>> configures networking information for kickstart installations via a >>> network as well as for the installed system." >>> >>> Now, I see a problem here: >>> - I use DHCP to install the system (via Kickstart) >>> - I however do NOT want to run the subsequently installed OS to use > DHCP. >>> I would say that is a very very normal thing to want. >> Completely normal, I do it all the time! >> >> Typically I use one of the following "network" directives, depending > how >> I want the resulting client to behave. Beware that if you choose to >> statically address the target client using this method, its IP address > >> must be on the same subnet as your KS server. >> >> network --device=eth0 --bootproto=dhcp --hostname=lnx-blah >> or >> network --bootproto static --device=eth0 --gateway=I.P.of.GW >> --ip=I.P.of.client --nameserver=IP.of.DNS.server >> --netmask=I.P.of.netmask --onboot=on --hostname=lnx-blah >> >> Hope this helps, see here for full detail: >> > http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation > _Guide-en-US/s1-kickstart2-options.html >> > > I think what the OP is referring to is network config files that were > changed in %post being squashed after reboot. I noticed this as well > when I first started building my configs for RHEL5, but since we haven't > > been using them, I never looked into it. > > So for example, you use DHCP during the install, then set the IP's in > the %post. When the server reboots, it seems to overwrite any changes > you made to the /etc/sysconfig/network-scripts/ifcfg-* files. > > Hope that helps clarify. > > -Dan > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From Darrick.Waller at baesystems.com Wed Sep 26 17:26:03 2007 From: Darrick.Waller at baesystems.com (Waller, Darrick J (US SSA)) Date: Wed, 26 Sep 2007 12:26:03 -0500 Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) References: <20070926160014.8D97073855@hormel.redhat.com> <46FA880F.6030404@cadence.com><46FA908B.40507@half-asleep.com> <46FA949D.6080600@lanl.gov> Message-ID: <04799F26A23174449975FB1913E3A02F155CA5@gldms20030.goldlnk.rootlnka.net> I found the same thing, and messaged the list about it a couple weeks ago. It was suggested that I remove the script I had in the %post section that configured my static network, and that fixed it. -Darrick -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Ed Brown Sent: Wednesday, September 26, 2007 12:19 PM To: Discussion list about Kickstart Subject: Re: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) This sounds like a reasonable workaround, but firstboot should not be overwriting files created in %post, especially if 'disabled'. Something very wrong with that picture... -Ed Shabazian, Chip wrote: > Why not configure the network line in %pre and include it in the command > section? Wouldn't that fix this issue? > > -----Original Message----- > From: kickstart-list-bounces at redhat.com > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Daniel Segall > Sent: Wednesday, September 26, 2007 10:02 AM > To: Discussion list about Kickstart > Subject: Re: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) > > Steve Robson wrote: >>> Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) >>> From: "kslist" >>> Date: Wed, 26 Sep 2007 01:02:53 +0200 (CEST) >>> To: kickstart-list at redhat.com >>> >>> Hello KSers, >>> >>> I am using my Kickstart script that I have adapted from RHEL 2.1, 3, >>> and 4 >>> now on CentOS 5. CentOS 5 behaves differently when it comes to > network >>> configuration. >>> >>> In essence: AFTER the successfull installation, during the first > startup >>> of the OS, something desctroys my network configuration. > Specifically, >>> the >>> files that I have directly written in my %post script: >>> /etc/sysconfig/network >>> /etc/sysconfig/network-scripts/ifcfg-eth0 >>> /etc/sysconfig/network-scripts/ifcfg-eth1 >>> /etc/hosts >>> /etc/resolve.conf >>> are modified, and in the case of the ifcfg-* scripts, my scripts are >>> moved >>> to a *.bak file (which have a datestamp later than the files I > created >>> via >>> %post, and which correspond to the firstboot) and a completely > newfile is >>> created in its place. >>> >>> The network configuration that replaces my own is one for DHCP. >>> >>> My guess is that this is a result of a change in behaviour of the >>> "network" option. To quote from the RHEL 5 Installation Guide: >>> >>> "Configures network information for the system. If the kickstart >>> installation does not require networking (in other words, it is not >>> installed over NFS, HTTP, or FTP), networking is not configured for > the >>> system. If the installation does require networking and network >>> information is not provided in the kickstart file, the installation >>> program assumes that the installation should be done over eth0 via a >>> dynamic IP address (BOOTP/DHCP), and configures the final, installed >>> system to determine its IP address dynamically. The network option >>> configures networking information for kickstart installations via a >>> network as well as for the installed system." >>> >>> Now, I see a problem here: >>> - I use DHCP to install the system (via Kickstart) >>> - I however do NOT want to run the subsequently installed OS to use > DHCP. >>> I would say that is a very very normal thing to want. >> Completely normal, I do it all the time! >> >> Typically I use one of the following "network" directives, depending > how >> I want the resulting client to behave. Beware that if you choose to >> statically address the target client using this method, its IP address > >> must be on the same subnet as your KS server. >> >> network --device=eth0 --bootproto=dhcp --hostname=lnx-blah >> or >> network --bootproto static --device=eth0 --gateway=I.P.of.GW >> --ip=I.P.of.client --nameserver=IP.of.DNS.server >> --netmask=I.P.of.netmask --onboot=on --hostname=lnx-blah >> >> Hope this helps, see here for full detail: >> > http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation > _Guide-en-US/s1-kickstart2-options.html >> > > I think what the OP is referring to is network config files that were > changed in %post being squashed after reboot. I noticed this as well > when I first started building my configs for RHEL5, but since we haven't > > been using them, I never looked into it. > > So for example, you use DHCP during the install, then set the IP's in > the %post. When the server reboots, it seems to overwrite any changes > you made to the /etc/sysconfig/network-scripts/ifcfg-* files. > > Hope that helps clarify. > > -Dan > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From jwang at dataseekonline.com Wed Sep 26 17:27:04 2007 From: jwang at dataseekonline.com (John Wang) Date: Wed, 26 Sep 2007 12:27:04 -0500 Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) In-Reply-To: <53983.77.132.133.197.1190761373.squirrel@whipit.devo.com> Message-ID: Hello Christian How about putting the following into your %post: echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot That should fool firstboot into thinking that it already ran... Regards, John On 9/25/07 6:02 PM, "kslist" wrote: > Hello KSers, > > I am using my Kickstart script that I have adapted from RHEL 2.1, 3, and 4 > now on CentOS 5. CentOS 5 behaves differently when it comes to network > configuration. > > In essence: AFTER the successfull installation, during the first startup > of the OS, something desctroys my network configuration. Specifically, the > files that I have directly written in my %post script: > /etc/sysconfig/network > /etc/sysconfig/network-scripts/ifcfg-eth0 > /etc/sysconfig/network-scripts/ifcfg-eth1 > /etc/hosts > /etc/resolve.conf > are modified, and in the case of the ifcfg-* scripts, my scripts are moved > to a *.bak file (which have a datestamp later than the files I created via > %post, and which correspond to the firstboot) and a completely newfile is > created in its place. > > The network configuration that replaces my own is one for DHCP. > > My guess is that this is a result of a change in behaviour of the > "network" option. To quote from the RHEL 5 Installation Guide: > > "Configures network information for the system. If the kickstart > installation does not require networking (in other words, it is not > installed over NFS, HTTP, or FTP), networking is not configured for the > system. If the installation does require networking and network > information is not provided in the kickstart file, the installation > program assumes that the installation should be done over eth0 via a > dynamic IP address (BOOTP/DHCP), and configures the final, installed > system to determine its IP address dynamically. The network option > configures networking information for kickstart installations via a > network as well as for the installed system." > > Now, I see a problem here: > - I use DHCP to install the system (via Kickstart) > - I however do NOT want to run the subsequently installed OS to use DHCP. > > I would say that is a very very normal thing to want. > > However, the way the manual describes it, and from the behaviour I have > seen, it is not possible to install via DHCP, and then setup your own > network configuration in %post, because your configuration will be > overwritten next time you boot the system. > > Ussing "firstboot --disable" doesn't help. > > Please help! > > -Christian > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From kslist at devo.com Thu Sep 27 13:00:02 2007 From: kslist at devo.com (kslist) Date: Thu, 27 Sep 2007 15:00:02 +0200 (CEST) Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) In-Reply-To: References: Message-ID: <22288.62.157.197.30.1190898002.squirrel@whipit.devo.com> Hi Everyone, here's how I fixed it: This is way at the end of my %post: # # Finish local network setup # cat < /mnt/sysimage/root/net.conf.sh #!/bin/sh echo -e " ** Completing network setup..." mv /etc/sysconfig/network.new /etc/sysconfig/network mv /etc/sysconfig/network-scripts/ifcfg-eth0.new \ /etc/sysconfig/network-scripts/ifcfg-eth0 if [ -f /etc/sysconfig/network-scripts/ifcfg-eth1.new ] ; then mv /etc/sysconfig/network-scripts/ifcfg-eth1.new \ /etc/sysconfig/network-scripts/ifcfg-eth1 fi mv /etc/hosts.new /etc/hosts mv /etc/resolv.conf.new /etc/resolv.conf service network restart hostname $HN sed -e 's/^\/root\/net\.conf\.sh//' /etc/rc.local > /tmp/rc.local mv /tmp/rc.local /etc/rc.local rm -f /root/net.conf.sh EOF chmod 755 /mnt/sysimage/root/net.conf.sh # # Set the rc.local to move the new network config into place # cat <> /mnt/sysimage/etc/rc.local /root/net.conf.sh EOF Now, why do I do something that horrible? The reason is this: my kickstart is interactive. My kickstart asks the installer various questions, such as hostname, IP, etc., and it sets the config files apropriately (ie, it wrotes directly into /etc/sysconfig/network-scripts/ifcfg-eth0, etc.) So to answer the questions: - I can't config in %pre, because of the infelxibility of the "network" directive (see below) - I used the option "firstboot --disable" to turn off firstboot, yet the network configuration files still get mangled somehow. - I want to use DHCP _for the installation_ only, I do not want to use DHCP _for the installed system_. - I actually don't mind first-boot running, because it does other useful things, however: - Firstboot SHOULD NOT be connected to the kickstart "network" directive! They should not be coupled at all. OR, there has got to be an option for "network" and "firstboot" that allows me to use DHCP for the install process and still use fixed IPs for the installed system As you can see from my work-around, I use /etc/rc.local to overwrite the files that first-boot mangles, and since its a one-time event, I also use rc.local to remove the from itself so that the re-write script is never called after that first time, and the shell script that does the re-writing itself is also erased. This is really a terrible thing, to have to do that, and a result from kick-start 'doing a little too much thinking" for me, if I may respectfully put it that way. ;) If there is a better solution, I'm all ears! =) Thanks, -Christian On Wed, September 26, 2007 19:27, John Wang wrote: > Hello Christian > > How about putting the following into your %post: > > echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot > > That should fool firstboot into thinking that it already ran... > > Regards, > John > > > On 9/25/07 6:02 PM, "kslist" wrote: > >> Hello KSers, >> >> I am using my Kickstart script that I have adapted from RHEL 2.1, 3, and >> 4 >> now on CentOS 5. CentOS 5 behaves differently when it comes to network >> configuration. >> >> In essence: AFTER the successfull installation, during the first startup >> of the OS, something desctroys my network configuration. Specifically, >> the >> files that I have directly written in my %post script: >> /etc/sysconfig/network >> /etc/sysconfig/network-scripts/ifcfg-eth0 >> /etc/sysconfig/network-scripts/ifcfg-eth1 >> /etc/hosts >> /etc/resolve.conf >> are modified, and in the case of the ifcfg-* scripts, my scripts are >> moved >> to a *.bak file (which have a datestamp later than the files I created >> via >> %post, and which correspond to the firstboot) and a completely newfile >> is >> created in its place. >> >> The network configuration that replaces my own is one for DHCP. >> >> My guess is that this is a result of a change in behaviour of the >> "network" option. To quote from the RHEL 5 Installation Guide: >> >> "Configures network information for the system. If the kickstart >> installation does not require networking (in other words, it is not >> installed over NFS, HTTP, or FTP), networking is not configured for the >> system. If the installation does require networking and network >> information is not provided in the kickstart file, the installation >> program assumes that the installation should be done over eth0 via a >> dynamic IP address (BOOTP/DHCP), and configures the final, installed >> system to determine its IP address dynamically. The network option >> configures networking information for kickstart installations via a >> network as well as for the installed system." >> >> Now, I see a problem here: >> - I use DHCP to install the system (via Kickstart) >> - I however do NOT want to run the subsequently installed OS to use >> DHCP. >> >> I would say that is a very very normal thing to want. >> >> However, the way the manual describes it, and from the behaviour I have >> seen, it is not possible to install via DHCP, and then setup your own >> network configuration in %post, because your configuration will be >> overwritten next time you boot the system. >> >> Ussing "firstboot --disable" doesn't help. >> >> Please help! >> >> -Christian >> >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From Chip.Shabazian at bankofamerica.com Thu Sep 27 15:20:22 2007 From: Chip.Shabazian at bankofamerica.com (Shabazian, Chip) Date: Thu, 27 Sep 2007 08:20:22 -0700 Subject: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) In-Reply-To: <22288.62.157.197.30.1190898002.squirrel@whipit.devo.com> References: <22288.62.157.197.30.1190898002.squirrel@whipit.devo.com> Message-ID: I don't see why you can't ask your network questions in %pre. You say you can't (and say "see below"), but I don't see anything below (or above) that prevents you from doing it this way. -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of kslist Sent: Thursday, September 27, 2007 6:00 AM To: Discussion list about Kickstart Subject: Re: RHEL5/CentOS5 KS Network Oddities (ifcfg-* gets re-written) Hi Everyone, here's how I fixed it: This is way at the end of my %post: # # Finish local network setup # cat < /mnt/sysimage/root/net.conf.sh #!/bin/sh echo -e " ** Completing network setup..." mv /etc/sysconfig/network.new /etc/sysconfig/network mv /etc/sysconfig/network-scripts/ifcfg-eth0.new \ /etc/sysconfig/network-scripts/ifcfg-eth0 if [ -f /etc/sysconfig/network-scripts/ifcfg-eth1.new ] ; then mv /etc/sysconfig/network-scripts/ifcfg-eth1.new \ /etc/sysconfig/network-scripts/ifcfg-eth1 fi mv /etc/hosts.new /etc/hosts mv /etc/resolv.conf.new /etc/resolv.conf service network restart hostname $HN sed -e 's/^\/root\/net\.conf\.sh//' /etc/rc.local > /tmp/rc.local mv /tmp/rc.local /etc/rc.local rm -f /root/net.conf.sh EOF chmod 755 /mnt/sysimage/root/net.conf.sh # # Set the rc.local to move the new network config into place # cat <> /mnt/sysimage/etc/rc.local /root/net.conf.sh EOF Now, why do I do something that horrible? The reason is this: my kickstart is interactive. My kickstart asks the installer various questions, such as hostname, IP, etc., and it sets the config files apropriately (ie, it wrotes directly into /etc/sysconfig/network-scripts/ifcfg-eth0, etc.) So to answer the questions: - I can't config in %pre, because of the infelxibility of the "network" directive (see below) - I used the option "firstboot --disable" to turn off firstboot, yet the network configuration files still get mangled somehow. - I want to use DHCP _for the installation_ only, I do not want to use DHCP _for the installed system_. - I actually don't mind first-boot running, because it does other useful things, however: - Firstboot SHOULD NOT be connected to the kickstart "network" directive! They should not be coupled at all. OR, there has got to be an option for "network" and "firstboot" that allows me to use DHCP for the install process and still use fixed IPs for the installed system As you can see from my work-around, I use /etc/rc.local to overwrite the files that first-boot mangles, and since its a one-time event, I also use rc.local to remove the from itself so that the re-write script is never called after that first time, and the shell script that does the re-writing itself is also erased. This is really a terrible thing, to have to do that, and a result from kick-start 'doing a little too much thinking" for me, if I may respectfully put it that way. ;) If there is a better solution, I'm all ears! =) Thanks, -Christian On Wed, September 26, 2007 19:27, John Wang wrote: > Hello Christian > > How about putting the following into your %post: > > echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot > > That should fool firstboot into thinking that it already ran... > > Regards, > John > > > On 9/25/07 6:02 PM, "kslist" wrote: > >> Hello KSers, >> >> I am using my Kickstart script that I have adapted from RHEL 2.1, 3, and >> 4 >> now on CentOS 5. CentOS 5 behaves differently when it comes to network >> configuration. >> >> In essence: AFTER the successfull installation, during the first startup >> of the OS, something desctroys my network configuration. Specifically, >> the >> files that I have directly written in my %post script: >> /etc/sysconfig/network >> /etc/sysconfig/network-scripts/ifcfg-eth0 >> /etc/sysconfig/network-scripts/ifcfg-eth1 >> /etc/hosts >> /etc/resolve.conf >> are modified, and in the case of the ifcfg-* scripts, my scripts are >> moved >> to a *.bak file (which have a datestamp later than the files I created >> via >> %post, and which correspond to the firstboot) and a completely newfile >> is >> created in its place. >> >> The network configuration that replaces my own is one for DHCP. >> >> My guess is that this is a result of a change in behaviour of the >> "network" option. To quote from the RHEL 5 Installation Guide: >> >> "Configures network information for the system. If the kickstart >> installation does not require networking (in other words, it is not >> installed over NFS, HTTP, or FTP), networking is not configured for the >> system. If the installation does require networking and network >> information is not provided in the kickstart file, the installation >> program assumes that the installation should be done over eth0 via a >> dynamic IP address (BOOTP/DHCP), and configures the final, installed >> system to determine its IP address dynamically. The network option >> configures networking information for kickstart installations via a >> network as well as for the installed system." >> >> Now, I see a problem here: >> - I use DHCP to install the system (via Kickstart) >> - I however do NOT want to run the subsequently installed OS to use >> DHCP. >> >> I would say that is a very very normal thing to want. >> >> However, the way the manual describes it, and from the behaviour I have >> seen, it is not possible to install via DHCP, and then setup your own >> network configuration in %post, because your configuration will be >> overwritten next time you boot the system. >> >> Ussing "firstboot --disable" doesn't help. >> >> Please help! >> >> -Christian >> >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list