From dansmood at gmail.com Wed Apr 4 20:23:19 2012 From: dansmood at gmail.com (Dan Davis) Date: Wed, 4 Apr 2012 16:23:19 -0400 Subject: Question about list policies In-Reply-To: <4F4BDFCE.2030903@blueyonder.co.uk> References: <4F4BDFCE.2030903@blueyonder.co.uk> Message-ID: On Mon, Feb 27, 2012 at 2:55 PM, Virginian wrote: > I don't think it would hurt to post it here. Could you tell us a little > more about where the jobs are located and what exactly you are looking for? > OK - I work for a small company, Index Engines, Inc. located in Holmdel, NJ. We have an indexing appliance that ships based on Fedora, and we've built up a bunch of code over the years to code to administrate the appliance - a perl object model that front-ends system files/tools, a CD/DVD install with a couple of disk configurations, RPM spec. files for various components of the software, etc. We also have a development infrastructure, and we've finally hit the point where we think we can keep someone busy full time on System Administration and Software Configuration/Install stuff. Our appliance/software indexes and manages loose filesystem data and email application data directly from backup tapes, online backup images, and LAN crawls. It is primarily used for legal e-discovery either during a law suit or pro-actively by an enterprise looking to process their backup tapes and build and maintain an email archive. Here's the listing - http://www.indexengines.com/company_jobs.html#Linux System -------------- next part -------------- An HTML attachment was scrubbed... URL: From wincus.public at gmail.com Wed Apr 11 13:41:18 2012 From: wincus.public at gmail.com (jon public) Date: Wed, 11 Apr 2012 10:41:18 -0300 Subject: clearpart -all warning Message-ID: Hi there I've customized my kickstart to delete all partitions ( clearpart --all ). I've noticed that the installer only shows a warning message when the disk does not have a valid partition ( like new virtual machines ). I'm afraid that someone might wipe his entire disk if booting by mistake from the customized disk. Is there any way of forcing anaconda to always ask for user confirmation before erasing disk partitions? Thanks for you help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ks-list at puzzled.xs4all.nl Wed Apr 11 14:24:26 2012 From: ks-list at puzzled.xs4all.nl (Patrick Lists) Date: Wed, 11 Apr 2012 16:24:26 +0200 Subject: clearpart -all warning In-Reply-To: References: Message-ID: <4F85941A.9080503@puzzled.xs4all.nl> On 04/11/2012 03:41 PM, jon public wrote: > Hi there > > I've customized my kickstart to delete all partitions ( clearpart --all > ). I've noticed that the installer only shows a warning message when the > disk does not have a valid partition ( like new virtual machines ). > > I'm afraid that someone might wipe his entire disk if booting by mistake > from the customized disk. Is there any way of forcing anaconda to always > ask for user confirmation before erasing disk partitions? > > Thanks for you help! You could use something like the snippet below. All credit goes to the presentation "Kickstart Tips & Tricks" by Chip Shabazian (caution: lines may be wrapped). %pre #!/bin/sh exec < /dev/tty3 > /dev/tty3 2>&1 chvt 3 install="no" while [ "$install" != "yes" ]; do clear echo echo '********************************************************************************' echo '* W A R N I N G *' echo '* *? echo ?*This process will install a completely new operating system and *? echo '* *' echo '* Do you wish to continue? (Type the entire word "yes" to proceed.) *' echo '* *' echo '********************************************************************************' echo read -p "Proceed with install? " install done clear chvt 1 #%end More instructions at http://www.trueblade.com/techblog/user-input-during-a-fedora-kickstart Regards, Patrick From jason at rampaginggeek.com Wed Apr 11 14:30:52 2012 From: jason at rampaginggeek.com (Jason Edgecombe) Date: Wed, 11 Apr 2012 10:30:52 -0400 Subject: clearpart -all warning In-Reply-To: References: Message-ID: <4F85959C.3050505@rampaginggeek.com> On 04/11/2012 09:41 AM, jon public wrote: > Hi there > > I've customized my kickstart to delete all partitions ( clearpart --all ). > I've noticed that the installer only shows a warning message when the disk > does not have a valid partition ( like new virtual machines ). > > I'm afraid that someone might wipe his entire disk if booting by mistake > from the customized disk. Is there any way of forcing anaconda to always > ask for user confirmation before erasing disk partitions? > > Thanks for you help! > > I suggest using your bootloader to offer a menu where the default option is not to kickstart. The syslinux bootloader can do this. Two options: 1. nuking is not the default for example, when booting the media (CD, USB, or PXE), you are given a menu "press enter to boot from HDD. type 'nukeit' to rebuild system" 2. nuking is default, but with a long delay As a compromise, make "nukeit" be the default, but put in a longer delay. Be aware that pressing the Enter key will skip the delay. Jason From wincus.public at gmail.com Wed Apr 11 15:37:05 2012 From: wincus.public at gmail.com (jon public) Date: Wed, 11 Apr 2012 12:37:05 -0300 Subject: clearpart -all warning In-Reply-To: <4F85941A.9080503@puzzled.xs4all.nl> References: <4F85941A.9080503@puzzled.xs4all.nl> Message-ID: Patrick Works great! Thanks for your answer. Was exactly what I was looking for. Regards, El 11 de abril de 2012 11:24, Patrick Lists escribi?: > On 04/11/2012 03:41 PM, jon public wrote: > >> Hi there >> >> I've customized my kickstart to delete all partitions ( clearpart --all >> ). I've noticed that the installer only shows a warning message when the >> disk does not have a valid partition ( like new virtual machines ). >> >> I'm afraid that someone might wipe his entire disk if booting by mistake >> from the customized disk. Is there any way of forcing anaconda to always >> ask for user confirmation before erasing disk partitions? >> >> Thanks for you help! >> > > You could use something like the snippet below. All credit goes to the > presentation "Kickstart Tips & Tricks" by Chip Shabazian (caution: lines > may be wrapped). > > %pre > #!/bin/sh > exec < /dev/tty3 > /dev/tty3 2>&1 > chvt 3 > install="no" > while [ "$install" != "yes" ]; do > clear > echo > echo '*************************************************************** > *********************' > echo '* > W A R N I N G > *' > echo '* > *? > echo ?*This process will install a completely new operating system and > *? > echo '* > *' > echo '* Do you wish to continue? (Type the entire word "yes" to proceed.) > *' > echo '* > *' > echo '*************************************************************** > *********************' > echo > read -p "Proceed with install? " install done clear chvt 1 #%end > > > More instructions at http://www.trueblade.com/** > techblog/user-input-during-a-**fedora-kickstart > > Regards, > Patrick > > ______________________________**_________________ > 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 michael.m.hayes at ericsson.com Wed Apr 11 15:49:30 2012 From: michael.m.hayes at ericsson.com (Michael Hayes M) Date: Wed, 11 Apr 2012 17:49:30 +0200 Subject: Variables in the %include and repo lines Message-ID: <2C4B4AE6B69DF14FACF9B568E586EA8F3775E0E4CC@ESESSCMS0359.eemea.ericsson.se> Hi, Just wondering if anyone can help me here. I'm writing a modular kickstart. I have a large number of machines to install, but I'm only responsible for the base install, other groups configure their apps etc So, I've defined a repo as repo --name ${inst_type} --baseurl=file:///tmp/APP/${inst_type}/packages and an include of a package list as %include /tmp/APP/${inst_type}/${config}/packages.inc In the %pre section, I source the inst_type and config variables with: cat /tmp/eric_mnt/kickstart/${HOSTNAME}/${HOSTNAME}_installation_param_details | sed 's/^/export /g' > /tmp/params.cfg source /tmp/params.cfg And that works as I use them in the pre section for other things as well. The problem is that the install just stops, sometime after the pre scripts are run, about when I'd expect it to start installing the base packages, without giving me an error I can understand. But, if I hard code those variables into the %include and repo lines, the build completes. Can anyone tell me if variables are not allowed in either the %include or repo lines? Thanks Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From clumens at redhat.com Wed Apr 11 15:54:42 2012 From: clumens at redhat.com (Chris Lumens) Date: Wed, 11 Apr 2012 11:54:42 -0400 Subject: Variables in the %include and repo lines In-Reply-To: <2C4B4AE6B69DF14FACF9B568E586EA8F3775E0E4CC@ESESSCMS0359.eemea.ericsson.se> References: <2C4B4AE6B69DF14FACF9B568E586EA8F3775E0E4CC@ESESSCMS0359.eemea.ericsson.se> Message-ID: <20120411155441.GR20937@exeter.usersys.redhat.com> > But, if I hard code those variables into the %include and repo lines, the build completes. > > Can anyone tell me if variables are not allowed in either the %include or repo lines? kickstart has no concept of variables. You'll either need to generate sections via %pre scripts where you can use environment variables (or really, whatever programming language you would like) or do something server-side to make each host get the appropriate kickstart file. - Chris From me at byteaction.de Thu Apr 12 07:53:37 2012 From: me at byteaction.de (Markus Eyrich) Date: Thu, 12 Apr 2012 09:53:37 +0200 Subject: clearpart -all warning In-Reply-To: References: <4F85941A.9080503@puzzled.xs4all.nl> Message-ID: <4F868A01.1090004@byteaction.de> Does this still work with CentOS 6 and Anaconda ? I can't get it to work. Tried the very exact same code below and Anaconda just goes over it and starts installing... Do i need to do anything more in the kickstart file? Does it need to be in interactive or text mode or something ?! Am 11.04.2012 17:37, schrieb jon public: > Patrick > > Works great! Thanks for your answer. Was exactly what I was looking for. > > Regards, > > El 11 de abril de 2012 11:24, Patrick Lists > escribi?: > > On 04/11/2012 03:41 PM, jon public wrote: > > Hi there > > I've customized my kickstart to delete all partitions ( > clearpart --all > ). I've noticed that the installer only shows a warning > message when the > disk does not have a valid partition ( like new virtual > machines ). > > I'm afraid that someone might wipe his entire disk if booting > by mistake > from the customized disk. Is there any way of forcing anaconda > to always > ask for user confirmation before erasing disk partitions? > > Thanks for you help! > > > You could use something like the snippet below. All credit goes to > the presentation "Kickstart Tips & Tricks" by Chip Shabazian > (caution: lines may be wrapped). > > %pre > #!/bin/sh > exec < /dev/tty3 > /dev/tty3 2>&1 > chvt 3 > install="no" > while [ "$install" != "yes" ]; do > clear > echo > echo > '********************************************************************************' > echo '* > W A R N I N G > *' > echo '* > *' > echo '*This process will install a completely new operating system and > *' > echo '* > *' > echo '* Do you wish to continue? (Type the entire word "yes" to > proceed.) > *' > echo '* > *' > echo > '********************************************************************************' > echo > read -p "Proceed with install? " install done clear chvt 1 #%end > > > More instructions at > http://www.trueblade.com/techblog/user-input-during-a-fedora-kickstart > > Regards, > Patrick > > _______________________________________________ > 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-listDiese E-Mail wurde von BytStorMail archiviert. Zum ?ndern des Status: http://217.195.2.162/bytstor/app/action/SearchStoredMailAction/template/storedMail%2CIndexMail.vm?redirect_template=storedMail%2CIndexMail.vm&mailid=1044997 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ks-list at puzzled.xs4all.nl Thu Apr 12 11:30:15 2012 From: ks-list at puzzled.xs4all.nl (Patrick Lists) Date: Thu, 12 Apr 2012 13:30:15 +0200 Subject: clearpart -all warning In-Reply-To: <4F868A01.1090004@byteaction.de> References: <4F85941A.9080503@puzzled.xs4all.nl> <4F868A01.1090004@byteaction.de> Message-ID: <4F86BCC7.2060809@puzzled.xs4all.nl> On 04/12/2012 09:53 AM, Markus Eyrich wrote: > Does this still work with CentOS 6 and Anaconda ? I can't get it to > work. Tried the very exact same code below and Anaconda just goes over > it and starts installing... Do i need to do anything more in the > kickstart file? Does it need to be in interactive or text mode or > something ?! I have not tried it on CentOS 6. I was just quoting from Chip's kickstart presentation. I always use text mode in my kickstart files. Have you tried that? Maybe Chip Shabazian can shed some light on this? Regards, Patrick From me at byteaction.de Thu Apr 12 13:02:45 2012 From: me at byteaction.de (Markus Eyrich) Date: Thu, 12 Apr 2012 15:02:45 +0200 Subject: clearpart -all warning In-Reply-To: <4F86BCC7.2060809@puzzled.xs4all.nl> References: <4F85941A.9080503@puzzled.xs4all.nl> <4F868A01.1090004@byteaction.de> <4F86BCC7.2060809@puzzled.xs4all.nl> Message-ID: <4F86D275.6010607@byteaction.de> Well, as far as i can see this script doesn't even work in a normal shell, bash or sh... The last line says "read -p "Proceed with install? " install done clear chvt1 #%end Now put the whole stuff into a script, the last line (read...) whould look like this: read -p "Proceed with install? " install done (closing while) clear chvt1 %end But still, this doesn't work, you can type what you want, even "yes" and you won't get out of it, since you now read what is into "install" but have to action for it. So i made: read -p "Proceed with install? " install if [ "$install" = "yes" ] || [ "$install" = "YES" ]; then exit fi done clear chvt1 %end That works. Maybe i'm stupid or something, but the original posted script is not functional ?!? The complete thing is like that: %pre #!/bin/sh exec < /dev/tty6 > /dev/tty6 2>&1 chvt 6 install="no" while [ "$install" != "yes" ] || [ "$install" != "YES" ]; do clear echo echo '********************************************************************************' echo '* W A R N I N G *' echo '* *' echo '* This process will install a completely new operating system! *' echo '* *' echo '* Do you wish to continue? (Type the entire word "yes" to proceed.) *' echo '* *' echo '********************************************************************************' echo read -p "Process with install? " install if [ "$install" = "yes" ] || [ "$install" = "YES" ]; then exit fi done chvt 1 %end Am 12.04.2012 13:30, schrieb Patrick Lists: > On 04/12/2012 09:53 AM, Markus Eyrich wrote: >> Does this still work with CentOS 6 and Anaconda ? I can't get it to >> work. Tried the very exact same code below and Anaconda just goes over >> it and starts installing... Do i need to do anything more in the >> kickstart file? Does it need to be in interactive or text mode or >> something ?! > > I have not tried it on CentOS 6. I was just quoting from Chip's > kickstart presentation. I always use text mode in my kickstart files. > Have you tried that? Maybe Chip Shabazian can shed some light on this? > > Regards, > Patrick > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > > Diese E-Mail wurde von BytStorMail archiviert. Zum ?ndern des Status: > http://217.195.2.162/bytstor/app/action/SearchStoredMailAction/template/storedMail%2CIndexMail.vm?redirect_template=storedMail%2CIndexMail.vm&mailid=1045717 -------------- next part -------------- An HTML attachment was scrubbed... URL: From wincus.public at gmail.com Thu Apr 12 13:06:17 2012 From: wincus.public at gmail.com (jon public) Date: Thu, 12 Apr 2012 10:06:17 -0300 Subject: clearpart -all warning In-Reply-To: <4F868A01.1090004@byteaction.de> References: <4F85941A.9080503@puzzled.xs4all.nl> <4F868A01.1090004@byteaction.de> Message-ID: Well, RHEL6.2 here and worked without changes. I think the code must be at the end of your ks. Regards, El 12 de abril de 2012 04:53, Markus Eyrich escribi?: > **Does this still work with CentOS 6 and Anaconda ? I can't get it to > work. Tried the very exact same code below and Anaconda just goes over it > and starts installing... Do i need to do anything more in the kickstart > file? Does it need to be in interactive or text mode or something ?! > ** > > Am 11.04.2012 17:37, schrieb jon public: > > Patrick > > Works great! Thanks for your answer. Was exactly what I was looking for. > > Regards, > > El 11 de abril de 2012 11:24, Patrick Lists escribi?: > >> On 04/11/2012 03:41 PM, jon public wrote: >> >>> Hi there >>> >>> I've customized my kickstart to delete all partitions ( clearpart --all >>> ). I've noticed that the installer only shows a warning message when the >>> disk does not have a valid partition ( like new virtual machines ). >>> >>> I'm afraid that someone might wipe his entire disk if booting by mistake >>> from the customized disk. Is there any way of forcing anaconda to always >>> ask for user confirmation before erasing disk partitions? >>> >>> Thanks for you help! >>> >> >> You could use something like the snippet below. All credit goes to the >> presentation "Kickstart Tips & Tricks" by Chip Shabazian (caution: lines >> may be wrapped). >> >> %pre >> #!/bin/sh >> exec < /dev/tty3 > /dev/tty3 2>&1 >> chvt 3 >> install="no" >> while [ "$install" != "yes" ]; do >> clear >> echo >> echo >> '********************************************************************************' >> echo '* >> W A R N I N G >> *' >> echo '* >> *? >> echo ?*This process will install a completely new operating system and >> *? >> echo '* >> *' >> echo '* Do you wish to continue? (Type the entire word "yes" to proceed.) >> *' >> echo '* >> *' >> echo >> '********************************************************************************' >> echo >> read -p "Proceed with install? " install done clear chvt 1 #%end >> >> >> More instructions at >> http://www.trueblade.com/techblog/user-input-during-a-fedora-kickstart >> >> Regards, >> Patrick >> >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list >> > > > > _______________________________________________ > Kickstart-list mailing listKickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-listDiese E-Mail wurde von BytStorMail archiviert. Zum ?ndern des Status: http://217.195.2.162/bytstor/app/action/SearchStoredMailAction/template/storedMail%2CIndexMail.vm?redirect_template=storedMail%2CIndexMail.vm&mailid=1044997 > > > _______________________________________________ > 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 wincus.public at gmail.com Thu Apr 12 13:29:41 2012 From: wincus.public at gmail.com (jon public) Date: Thu, 12 Apr 2012 10:29:41 -0300 Subject: clearpart -all warning In-Reply-To: <4F86D275.6010607@byteaction.de> References: <4F85941A.9080503@puzzled.xs4all.nl> <4F868A01.1090004@byteaction.de> <4F86BCC7.2060809@puzzled.xs4all.nl> <4F86D275.6010607@byteaction.de> Message-ID: I'm not sure to understand the extra "if" statement. I've tried this and worked as expected: #!/bin/sh install="no" while [ "$install" != "yes" ]; do clear echo echo "*********************************************************************" echo "*********************** W A R N I N G ******************************" echo "*********************************************************************" echo " If you continue, all partitions from local disks will be erased." echo " Do you wish to continue? (Type the entire word \"yes\" to proceed.) " echo read -p "Proceed with install? " install done Regards, El 12 de abril de 2012 10:02, Markus Eyrich escribi?: > **Well, as far as i can see this script doesn't even work in a normal > shell, bash or sh... > > The last line says "read -p "Proceed with install? " install done clear > chvt1 #%end > > Now put the whole stuff into a script, the last line (read...) whould look > like this: > > > **read -p "Proceed with install? " install > done (closing while) > clear > chvt1 > %end > > But still, this doesn't work, you can type what you want, even "yes" and > you won't get out of it, since you now read what is into "install" but have > to action for it. So i made: > > > read -p "Proceed with install? " install > if [ "$install" = "yes" ] || [ "$install" = "YES" ]; then exit > fi > done > clear > chvt1 > %end > > That works. Maybe i'm stupid or something, but the original posted script > is not functional ?!? > > The complete thing is like that: > > %pre > #!/bin/sh > exec < /dev/tty6 > /dev/tty6 2>&1 > chvt 6 > install="no" > while [ "$install" != "yes" ] || [ "$install" != "YES" ]; do > > clear > echo > echo > '********************************************************************************' > echo '* W A R N I N > G *' > echo > '* > *' > echo '* This process will install a completely new operating > system! *' > > echo > '* > *' > echo '* Do you wish to continue? (Type the entire word "yes" to > proceed.) *' > echo > '* > *' > echo > '********************************************************************************' > echo > read -p "Process with install? " install > if [ "$install" = "yes" ] || [ "$install" = "YES" ]; then > exit > fi > done > chvt 1 > %end > > > > Am 12.04.2012 13:30, schrieb Patrick Lists: > > On 04/12/2012 09:53 AM, Markus Eyrich wrote: > > Does this still work with CentOS 6 and Anaconda ? I can't get it to > work. Tried the very exact same code below and Anaconda just goes over > it and starts installing... Do i need to do anything more in the > kickstart file? Does it need to be in interactive or text mode or > something ?! > > > I have not tried it on CentOS 6. I was just quoting from Chip's kickstart > presentation. I always use text mode in my kickstart files. Have you tried > that? Maybe Chip Shabazian can shed some light on this? > > Regards, > Patrick > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > > Diese E-Mail wurde von BytStorMail archiviert. Zum ?ndern des Status: > http://217.195.2.162/bytstor/app/action/SearchStoredMailAction/template/storedMail%2CIndexMail.vm?redirect_template=storedMail%2CIndexMail.vm&mailid=1045717 > > > _______________________________________________ > 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 joliver at john-oliver.net Tue Apr 17 12:49:51 2012 From: joliver at john-oliver.net (John Oliver) Date: Tue, 17 Apr 2012 08:49:51 -0400 Subject: Can't get files to %include Message-ID: <20120417124951.GA4998@ns2.sdsitehosting.net> RHEL 5.4 In %pre, I can %include /mnt/source/isolinux/setup-questions But if I first copy setup-questions to /tmp/ks-files/, I can no longer include it. Nor do my %include statements in %post for files I copied to /tmp/ks-files/ work. What's the deal? How the heck do I get includes to work??? -- *********************************************************************** * John Oliver http://www.john-oliver.net/ * * * *********************************************************************** From crucerua at avaya.com Thu Apr 19 07:36:38 2012 From: crucerua at avaya.com (Adrian Cruceru) Date: Thu, 19 Apr 2012 10:36:38 +0300 Subject: Variables in the %include and repo lines In-Reply-To: <2C4B4AE6B69DF14FACF9B568E586EA8F3775E0E4CC@ESESSCMS0359.eemea.ericsson.se> References: <2C4B4AE6B69DF14FACF9B568E586EA8F3775E0E4CC@ESESSCMS0359.eemea.ericsson.se> Message-ID: <4F8FC086.8040100@avaya.com> Hi Michael, Why not include generic name: %include /tmp/repo.txt %include /tmp/files.txt and in pre just copy/output to those files %pre echo "repo --name ${inst_type} --baseurl=file:///tmp/APP/${inst_type}/packages" > /tmp/repo.txt cp /tmp/APP/${inst_type}/${config}/packages.inc/tmp/files.txt Regards, Adrian On 04/11/2012 06:49 PM, Michael Hayes M wrote: > > Hi, > > Just wondering if anyone can help me here. > > I'm writing a modular kickstart. I have a large number of machines to > install, but I'm only responsible for the base install, other groups > configure their apps etc > > So, I've defined a repo as > > repo --name ${inst_type} --baseurl=file:///tmp/APP/${inst_type}/packages > > and an include of a package list as > > %include /tmp/APP/${inst_type}/${config}/packages.inc > > In the %pre section, I source the inst_type and config variables with: > > cat > /tmp/eric_mnt/kickstart/${HOSTNAME}/${HOSTNAME}_installation_param_details > | sed 's/^/export /g' > /tmp/params.cfg > > source /tmp/params.cfg > > And that works as I use them in the pre section for other things as well. > > The problem is that the install just stops, sometime after the pre > scripts are run, about when I'd expect it to start installing the base > packages, without giving me an error I can understand. > > But, if I hard code those variables into the %include and repo lines, > the build completes. > > Can anyone tell me if variables are not allowed in either the %include > or repo lines? > > Thanks > > Mike > > > > _______________________________________________ > 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 crucerua at avaya.com Thu Apr 19 09:56:50 2012 From: crucerua at avaya.com (Adrian Cruceru) Date: Thu, 19 Apr 2012 12:56:50 +0300 Subject: Can't get files to %include In-Reply-To: <20120417124951.GA4998@ns2.sdsitehosting.net> References: <20120417124951.GA4998@ns2.sdsitehosting.net> Message-ID: <4F8FE162.9000303@avaya.com> Hi John, I think you should do all processing regarding %include in %pre, anything in %post is too late to change %include statements (system is already installed). Regards, Adrian On 04/17/2012 03:49 PM, John Oliver wrote: > RHEL 5.4 In %pre, I can %include /mnt/source/isolinux/setup-questions > But if I first copy setup-questions to /tmp/ks-files/, I can no longer > include it. Nor do my %include statements in %post for files I copied > to /tmp/ks-files/ work. What's the deal? How the heck do I get > includes to work??? > From joliver at john-oliver.net Thu Apr 19 14:04:39 2012 From: joliver at john-oliver.net (John Oliver) Date: Thu, 19 Apr 2012 10:04:39 -0400 Subject: Can't get files to %include In-Reply-To: <4F8FE162.9000303@avaya.com> References: <20120417124951.GA4998@ns2.sdsitehosting.net> <4F8FE162.9000303@avaya.com> Message-ID: <20120419140439.GA10574@ns2.sdsitehosting.net> On Thu, Apr 19, 2012 at 12:56:50PM +0300, Adrian Cruceru wrote: > Hi John, > > I think you should do all processing regarding %include in %pre, > anything in %post is too late to change %include statements (system is > already installed). > > Regards, > Adrian > > On 04/17/2012 03:49 PM, John Oliver wrote: > >RHEL 5.4 In %pre, I can %include /mnt/source/isolinux/setup-questions > >But if I first copy setup-questions to /tmp/ks-files/, I can no longer > >include it. Nor do my %include statements in %post for files I copied > >to /tmp/ks-files/ work. What's the deal? How the heck do I get > >includes to work??? Hi, Adrian. I'm not sure what you mean by "it's too late"... it's an include. I can't include something in %pre that must be done in %post And that doesn't explain why %include /mnt/source/isolinux/setup-questions works, but copying setup-questions to /tmp/ and then %include /tmp/setup-questions does not, even though /tmp/setup-questions exists, is readable, and contains the exact same code that works just fine when included from the DVD. I have several kickstarts, and chunks of code that are common to all of them. I want to have those common chunks in one place, so when I need to make a change, I make it in one place and the change will automatically be seen by all kickstarts. Just in case there's a question of terminology here. Thanks. -- *********************************************************************** * John Oliver http://www.john-oliver.net/ * * * *********************************************************************** From sr at genyosha.net Fri Apr 20 00:04:57 2012 From: sr at genyosha.net (Steve Rikli) Date: Fri, 20 Apr 2012 00:04:57 +0000 (UTC) Subject: install fails from NFS distribution w/ISO files (anaconda problem?) Message-ID: I'm trying to Kickstart Fedora14 & 15, using NFS for the distribution with ISO file(s) in the NFS directory -- same method used successfully for prior Fedora, Centos5,6 etc. E.g. from a ks.cfg file: nfs --server kick.foo.com --dir /dist/fedora/x86_64/14/ and the /dist/fedora/x86_64/14/ directory contains the Fedora14 DVD ISO (plus the images/ subdir also, fwiw). Same NFS server, client hardware, Kickstart server, network, etc. used successfully with earlier Fedora, and Centos5 & 6, etc. But with Fedora14 & 15, I get an error popup on console: The following error occurred while setting up the installation repository: (16, 'umount.nfs: /mnt/source: device is busy\numount.nfs: /mnt/source: device is busy') Please provide the correct information for installing Fedora. Google finds this redhat report which sounds very similar: https://bugzilla.redhat.com/show_bug.cgi?id=678414 which claims it's fixed (ERRATA) for Fedora15, but I don't see an actual solution for Fedora14. I don't know yet if this problem exists in F16; I'd expect not. As a workaround I could unpack the ISO into an NFS directory, but I'm trying to standardize on ISO installs (and not consume 2x the diskspace for having both packed & unpacked ISO around), so if there's a good fix for the (presumably) anaconda issue in F14/15, or some other workaround that allows me to continue with my NFS+ISO methodology, I'd very much appreciate hearing of it. Thanks, sr. From michael.m.hayes at ericsson.com Fri Apr 20 08:45:44 2012 From: michael.m.hayes at ericsson.com (Michael Hayes M) Date: Fri, 20 Apr 2012 10:45:44 +0200 Subject: Variables in the %include and repo lines In-Reply-To: <4F8FC086.8040100@avaya.com> References: <2C4B4AE6B69DF14FACF9B568E586EA8F3775E0E4CC@ESESSCMS0359.eemea.ericsson.se> <4F8FC086.8040100@avaya.com> Message-ID: <2C4B4AE6B69DF14FACF9B568E586EA8F37773F0C45@ESESSCMS0359.eemea.ericsson.se> Hi Adrian, I've done that and it's working perfectly. Thanks for the pointer Cheers Mike ________________________________ From: Adrian Cruceru [mailto:crucerua at avaya.com] Sent: 19 April 2012 08:37 To: kickstart-list at redhat.com Subject: Re: Variables in the %include and repo lines Hi Michael, Why not include generic name: %include /tmp/repo.txt %include /tmp/files.txt and in pre just copy/output to those files %pre echo "repo --name ${inst_type} --baseurl=file:///tmp/APP/${inst_type}/packages" > /tmp/repo.txt cp /tmp/APP/${inst_type}/${config}/packages.inc /tmp/files.txt Regards, Adrian On 04/11/2012 06:49 PM, Michael Hayes M wrote: Hi, Just wondering if anyone can help me here. I'm writing a modular kickstart. I have a large number of machines to install, but I'm only responsible for the base install, other groups configure their apps etc So, I've defined a repo as repo --name ${inst_type} --baseurl=file:///tmp/APP/${inst_type}/packages and an include of a package list as %include /tmp/APP/${inst_type}/${config}/packages.inc In the %pre section, I source the inst_type and config variables with: cat /tmp/eric_mnt/kickstart/${HOSTNAME}/${HOSTNAME}_installation_param_details | sed 's/^/export /g' > /tmp/params.cfg source /tmp/params.cfg And that works as I use them in the pre section for other things as well. The problem is that the install just stops, sometime after the pre scripts are run, about when I'd expect it to start installing the base packages, without giving me an error I can understand. But, if I hard code those variables into the %include and repo lines, the build completes. Can anyone tell me if variables are not allowed in either the %include or repo lines? Thanks Mike _______________________________________________ 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 michael.m.hayes at ericsson.com Fri Apr 20 08:57:33 2012 From: michael.m.hayes at ericsson.com (Michael Hayes M) Date: Fri, 20 Apr 2012 10:57:33 +0200 Subject: Can't get files to %include In-Reply-To: <20120419140439.GA10574@ns2.sdsitehosting.net> References: <20120417124951.GA4998@ns2.sdsitehosting.net> <4F8FE162.9000303@avaya.com> <20120419140439.GA10574@ns2.sdsitehosting.net> Message-ID: <2C4B4AE6B69DF14FACF9B568E586EA8F37773F0C56@ESESSCMS0359.eemea.ericsson.se> Hi John, Adrian is correct in saying that you need to specify anything in the pre section, because it's then that anything can be set. If you put something into /tmp in the pre section, then before the pre section ends, copy it to /mnt/sysimage/tmp and then once in the post section, it will be in /tmp and available for you use. Basically, /tmp from the pre section is no longer available in the post section (but it is available in a post section if you specify --nochroot). What was in /mnt/sysimage/tmp is now in /tmp in the post section Cheers Mike -----Original Message----- From: John Oliver [mailto:joliver at john-oliver.net] Sent: 19 April 2012 15:05 To: Discussion list about Kickstart Subject: Re: Can't get files to %include On Thu, Apr 19, 2012 at 12:56:50PM +0300, Adrian Cruceru wrote: > Hi John, > > I think you should do all processing regarding %include in %pre, > anything in %post is too late to change %include statements (system is > already installed). > > Regards, > Adrian > > On 04/17/2012 03:49 PM, John Oliver wrote: > >RHEL 5.4 In %pre, I can %include /mnt/source/isolinux/setup-questions > >But if I first copy setup-questions to /tmp/ks-files/, I can no longer > >include it. Nor do my %include statements in %post for files I copied > >to /tmp/ks-files/ work. What's the deal? How the heck do I get > >includes to work??? Hi, Adrian. I'm not sure what you mean by "it's too late"... it's an include. I can't include something in %pre that must be done in %post And that doesn't explain why %include /mnt/source/isolinux/setup-questions works, but copying setup-questions to /tmp/ and then %include /tmp/setup-questions does not, even though /tmp/setup-questions exists, is readable, and contains the exact same code that works just fine when included from the DVD. I have several kickstarts, and chunks of code that are common to all of them. I want to have those common chunks in one place, so when I need to make a change, I make it in one place and the change will automatically be seen by all kickstarts. Just in case there's a question of terminology here. Thanks. -- *********************************************************************** * John Oliver http://www.john-oliver.net/ * * * *********************************************************************** From ayazpathaan at gmail.com Fri Apr 20 09:21:22 2012 From: ayazpathaan at gmail.com (ayaz pathaan) Date: Fri, 20 Apr 2012 14:51:22 +0530 Subject: Can't get files to %include In-Reply-To: <2C4B4AE6B69DF14FACF9B568E586EA8F37773F0C56@ESESSCMS0359.eemea.ericsson.se> References: <20120417124951.GA4998@ns2.sdsitehosting.net> <4F8FE162.9000303@avaya.com> <20120419140439.GA10574@ns2.sdsitehosting.net> <2C4B4AE6B69DF14FACF9B568E586EA8F37773F0C56@ESESSCMS0359.eemea.ericsson.se> Message-ID: Dear All, I am not able to get ssh of a remote server . How will i get the console of the server. ( ssh is not working and vnc is also not allowed .) . What is the otherway you can access the server ? Please give the answer is very argent regards, Ayaz Khan On Fri, Apr 20, 2012 at 2:27 PM, Michael Hayes M < michael.m.hayes at ericsson.com> wrote: > Hi John, > > Adrian is correct in saying that you need to specify anything in the pre > section, because it's then that anything can be set. > > If you put something into /tmp in the pre section, then before the pre > section ends, copy it to /mnt/sysimage/tmp and then once in the post > section, it will be in /tmp and available for you use. > Basically, /tmp from the pre section is no longer available in the post > section (but it is available in a post section if you specify --nochroot). > What was in /mnt/sysimage/tmp is now in /tmp in the post section > > Cheers > > Mike > > > > -----Original Message----- > From: John Oliver [mailto:joliver at john-oliver.net] > Sent: 19 April 2012 15:05 > To: Discussion list about Kickstart > Subject: Re: Can't get files to %include > > On Thu, Apr 19, 2012 at 12:56:50PM +0300, Adrian Cruceru wrote: > > Hi John, > > > > I think you should do all processing regarding %include in %pre, > > anything in %post is too late to change %include statements (system is > > already installed). > > > > Regards, > > Adrian > > > > On 04/17/2012 03:49 PM, John Oliver wrote: > > >RHEL 5.4 In %pre, I can %include /mnt/source/isolinux/setup-questions > > >But if I first copy setup-questions to /tmp/ks-files/, I can no longer > > >include it. Nor do my %include statements in %post for files I copied > > >to /tmp/ks-files/ work. What's the deal? How the heck do I get > > >includes to work??? > > Hi, Adrian. I'm not sure what you mean by "it's too late"... it's an > include. I can't include something in %pre that must be done in %post > > And that doesn't explain why %include > /mnt/source/isolinux/setup-questions works, but copying setup-questions > to /tmp/ and then %include /tmp/setup-questions does not, even though > /tmp/setup-questions exists, is readable, and contains the exact same > code that works just fine when included from the DVD. > > I have several kickstarts, and chunks of code that are common to all of > them. I want to have those common chunks in one place, so when I need > to make a change, I make it in one place and the change will > automatically be seen by all kickstarts. Just in case there's a > question of terminology here. > > > Thanks. > > -- > *********************************************************************** > * John Oliver http://www.john-oliver.net/ * > * * > *********************************************************************** > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -- AyazPathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From joliver at john-oliver.net Tue Apr 24 11:35:44 2012 From: joliver at john-oliver.net (John Oliver) Date: Tue, 24 Apr 2012 07:35:44 -0400 Subject: Can't get files to %include In-Reply-To: <2C4B4AE6B69DF14FACF9B568E586EA8F37773F0C56@ESESSCMS0359.eemea.ericsson.se> References: <20120417124951.GA4998@ns2.sdsitehosting.net> <4F8FE162.9000303@avaya.com> <20120419140439.GA10574@ns2.sdsitehosting.net> <2C4B4AE6B69DF14FACF9B568E586EA8F37773F0C56@ESESSCMS0359.eemea.ericsson.se> Message-ID: <20120424113544.GA1420@ns2.sdsitehosting.net> On Fri, Apr 20, 2012 at 10:57:33AM +0200, Michael Hayes M wrote: > Hi John, > > Adrian is correct in saying that you need to specify anything in the pre section, because it's then that anything can be set. Again, I'm not following. Does %include simply not work anywhere but in %pre? I cannot find a single bit of documentation that says word one about that. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html says: %include (optional) Use the %include /path/to/file command to include the contents of another file in the kickstart file as though the contents were at the location of the %include command in the kickstart file. And that doesn't explain why I can %include a file on the DVD but cannot after copying that file to /tmp > If you put something into /tmp in the pre section, then before the pre section ends, copy it to /mnt/sysimage/tmp and then once in the post section, it will be in /tmp and available for you use. Except it isn't, as I mentioned in my original post. > Basically, /tmp from the pre section is no longer available in the post section (but it is available in a post section if you specify --nochroot). > What was in /mnt/sysimage/tmp is now in /tmp in the post section I'm aware of that. But, again, as stated in my original post, when I copy files from /tmp to /mnt/sysimage/tmp and then refer to /tmp in %post, the %include does not work. -- *********************************************************************** * John Oliver http://www.john-oliver.net/ * * * *********************************************************************** From crucerua at avaya.com Tue Apr 24 11:48:05 2012 From: crucerua at avaya.com (Adrian Cruceru) Date: Tue, 24 Apr 2012 14:48:05 +0300 Subject: Can't get files to %include In-Reply-To: <20120424113544.GA1420@ns2.sdsitehosting.net> References: <20120417124951.GA4998@ns2.sdsitehosting.net> <4F8FE162.9000303@avaya.com> <20120419140439.GA10574@ns2.sdsitehosting.net> <2C4B4AE6B69DF14FACF9B568E586EA8F37773F0C56@ESESSCMS0359.eemea.ericsson.se> <20120424113544.GA1420@ns2.sdsitehosting.net> Message-ID: <4F9692F5.3030107@avaya.com> Hi John, The %include directives are parsed and used immediately after "%pre". This information is used for the install process that is between %pre and %post. Anything you do in %post is too late, system is already installed... you can't really specify install packet list "x" after it's already installed... Not to mention the fact that %post is already chrooted in the installed system, and the "/tmp" folder points to hard disk instead of ram disk. Notes: - This is very simplified and is the general picture. (removed details that might confuse) Regards, Adrian On 24/04/2012 14:35, John Oliver wrote: > On Fri, Apr 20, 2012 at 10:57:33AM +0200, Michael Hayes M wrote: >> Hi John, >> >> Adrian is correct in saying that you need to specify anything in the pre section, because it's then that anything can be set. > Again, I'm not following. Does %include simply not work anywhere but in > %pre? I cannot find a single bit of documentation that says word one > about that. > http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html > says: > > %include (optional) > Use the %include /path/to/file command to include the contents of > another file in the kickstart file as though the contents were at the > location of the %include command in the kickstart file. > > And that doesn't explain why I can %include a file on the DVD but cannot > after copying that file to /tmp > >> If you put something into /tmp in the pre section, then before the pre section ends, copy it to /mnt/sysimage/tmp and then once in the post section, it will be in /tmp and available for you use. > Except it isn't, as I mentioned in my original post. > >> Basically, /tmp from the pre section is no longer available in the post section (but it is available in a post section if you specify --nochroot). >> What was in /mnt/sysimage/tmp is now in /tmp in the post section > I'm aware of that. But, again, as stated in my original post, when I > copy files from /tmp to /mnt/sysimage/tmp and then refer to /tmp in > %post, the %include does not work. > From clumens at redhat.com Tue Apr 24 14:45:22 2012 From: clumens at redhat.com (Chris Lumens) Date: Tue, 24 Apr 2012 10:45:22 -0400 Subject: Can't get files to %include In-Reply-To: <4F9692F5.3030107@avaya.com> References: <20120417124951.GA4998@ns2.sdsitehosting.net> <4F8FE162.9000303@avaya.com> <20120419140439.GA10574@ns2.sdsitehosting.net> <2C4B4AE6B69DF14FACF9B568E586EA8F37773F0C56@ESESSCMS0359.eemea.ericsson.se> <20120424113544.GA1420@ns2.sdsitehosting.net> <4F9692F5.3030107@avaya.com> Message-ID: <20120424144521.GA32078@exeter.usersys.redhat.com> > The %include directives are parsed and used immediately after "%pre". > This information is used for the install process that is between > %pre and %post. This is so a %pre script can generate a %include, if need be. You can also use %ksappend which takes place even earlier. > Not to mention the fact that %post is already chrooted in the > installed system, and the "/tmp" folder points to hard disk instead > of ram disk. You can use --nochroot to get out of that, though. - Chris From hennebry at web.cs.ndsu.nodak.edu Tue Apr 24 16:45:31 2012 From: hennebry at web.cs.ndsu.nodak.edu (Michael Hennebry) Date: Tue, 24 Apr 2012 11:45:31 -0500 (CDT) Subject: kickstart vs. /etc/login.defs In-Reply-To: <000c01ccdc3a$25cc6d70$71654850$@Henderson@ict-software.org> References: <1581250944-1327465954-cardhu_decombobulator_blackberry.rim.net-1077717564-@b26.c5.bise6.blackberry> <000b01ccdc11$8383a7e0$8a8af7a0$@Henderson@ict-software.org> <000c01ccdc3a$25cc6d70$71654850$@Henderson@ict-software.org> Message-ID: On Thu, 26 Jan 2012, Moray Henderson wrote: >> From: Michael Hennebry [mailto:hennebry at web.cs.ndsu.nodak.edu] >> Sent: 26 January 2012 14:13 >> >>> From > http://docs.fedoraproject.org/en-US/Fedora/16/html/Release_Notes/sect-Releas > e_Notes-Changes_for_Sysadmin.html#id3021598 >> "If you need to install a new system from scratch, while starting user >> accounts from 500 (to connect the system to a network with >> globally-defined UIDs), install using a kickstart script that places >> /etc/login.defs on the file system before package installation starts." Actually, to someone with a clue, it's fairly precise. Alas, that wasn't me. I'm not in the target audience. A portion of the pre-filesystem gets copied to the post-filesystem. 'Tisn't clear whether one needs to specify a complete /etc/login.defs . What I eventually did was to change my UID on F14. > Any Fedora developers care to comment here? > Although documentation is a major source of frustration in the Open Source > world, the other guys aren't really any better. I just got a great pop-up > on Win 7 today: "A program running on this computer is trying to display a > message." It gave 2 options: "View the message" and "Ask me later". I mean: > WHAT?? -- Michael hennebry at web.cs.ndsu.NoDak.edu "On Monday, I'm gonna have to tell my kindergarten class, whom I teach not to run with scissors, that my fiance ran me through with a broadsword." -- Lily From joliver at john-oliver.net Tue Apr 24 19:11:44 2012 From: joliver at john-oliver.net (John Oliver) Date: Tue, 24 Apr 2012 15:11:44 -0400 Subject: Can't get files to %include In-Reply-To: <4F9692F5.3030107@avaya.com> References: <20120417124951.GA4998@ns2.sdsitehosting.net> <4F8FE162.9000303@avaya.com> <20120419140439.GA10574@ns2.sdsitehosting.net> <2C4B4AE6B69DF14FACF9B568E586EA8F37773F0C56@ESESSCMS0359.eemea.ericsson.se> <20120424113544.GA1420@ns2.sdsitehosting.net> <4F9692F5.3030107@avaya.com> Message-ID: <20120424191144.GA3159@ns2.sdsitehosting.net> On Tue, Apr 24, 2012 at 02:48:05PM +0300, Adrian Cruceru wrote: > Hi John, > > The %include directives are parsed and used immediately after "%pre". If I %include a file that exists on the DVD in %pre, the contents of that file are run just as if they were in %pre themselves. > This information is used for the install process that is between %pre > and %post. See above. > Anything you do in %post is too late, system is already installed... you > can't really specify install packet list "x" after it's already installed... I can bang out a series of commands in %post. The description of the %include section says, "Use the %include /path/to/file command to include the contents of another file in the kickstart file as though the contents were at the location of the %include command in the kickstart file." There could be more, secret, docs somewhere with more limitations, but... what would be the point of announcing a command that very strongly hints it does X, tell everyone it does X, and then make it do Y anyway? > Not to mention the fact that %post is already chrooted in the installed > system, and the "/tmp" folder points to hard disk instead of ram disk. Yes, I know. Irrelevant... I can copy files from the DVD to /tmp in %pre, copy them from /tmp to /mnt/sysimage/tmp in %post --nochroot, and then access them in /tmp in %post That isn't the issue at all. It isn't that I'm trying to %include files that don't exist... they do, they're readable, they contain valid shell commands. -- *********************************************************************** * John Oliver http://www.john-oliver.net/ * * * ***********************************************************************