From linux.mether at gmail.com Mon Jun 1 12:06:12 2009 From: linux.mether at gmail.com (Linux Geek) Date: Mon, 1 Jun 2009 17:36:12 +0530 Subject: Kickstart ignoring --label option under %pre script Message-ID: Hello, This is my first query. Please correct me if I din't follow complete process. I am trying to setup label for partitions using kickstart under RHEL5. When I use the --label option outside the %pre option it works fine, however the same option don't work under %pre section. Below the 2 configs I am using : 1. Outside %pre clearpart --all --drives=hda part /boot --fstype ext3 --size=100 --ondisk=hda --label=MYLABEL 2. Under the %pre section : %pre ( set $(list-harddrives) let numdrives=$#/2 disk1=$1 size1=$2 disk2=$3 size2=$4 if [ "$numdrives" -eq 1 ]; then cat << EOF >> /tmp/partinfo part / --fstype ext3 --size=2048 --grow --ondisk=$disk1 --asprimary part /boot --fstype ext3 --size=1024 --ondisk=$disk1 --asprimary --label=MYLABEL EOF ) Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlaska at redhat.com Mon Jun 1 16:41:45 2009 From: jlaska at redhat.com (James Laska) Date: Mon, 01 Jun 2009 12:41:45 -0400 Subject: Kickstart ignoring --label option under %pre script In-Reply-To: References: Message-ID: <1243874505.2556.6.camel@flatline.devel.redhat.com> On Mon, 2009-06-01 at 17:36 +0530, Linux Geek wrote: > Hello, > > This is my first query. Please correct me if I din't follow complete > process. > > I am trying to setup label for partitions using kickstart under RHEL5. > When I use the --label option outside the %pre option it works fine, > however the same option don't work under %pre section. Below the 2 > configs I am using : > > 1. Outside %pre > > clearpart --all --drives=hda > part /boot --fstype ext3 --size=100 --ondisk=hda --label=MYLABEL > > > 2. Under the %pre section : > %pre > ( > set $(list-harddrives) > > let numdrives=$#/2 > disk1=$1 > > size1=$2 > disk2=$3 > size2=$4 > > if [ "$numdrives" -eq 1 ]; then > cat << EOF >> /tmp/partinfo > part / --fstype ext3 --size=2048 --grow --ondisk=$disk1 --asprimary > > part /boot --fstype ext3 --size=1024 --ondisk=$disk1 --asprimary --label=MYLABEL > > EOF > ) The pain with %pre and %post scripts often is the ENV they run in or syntax issues that aren't obvious. You can always try running your %pre script by hand from tty2 (press F2) of a manual install for correctness. I would recommend double checking your %pre script above for proper bash syntax. Everything looks good, but make sure you are closing out your 'if' stmt. That could cause the script to fail to run to completion. Also, I assume you have it, but be sure to %include /tmp/partinfo in your kickstart file. Thanks, James -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From bernasconi.pablo at gmail.com Mon Jun 1 19:56:38 2009 From: bernasconi.pablo at gmail.com (Pablo Bernasconi) Date: Mon, 1 Jun 2009 16:56:38 -0300 Subject: Catch the error... Message-ID: <272d5daf0906011256n5fd35fa7v24a8b9eaf050d071@mail.gmail.com> Hello to everyone, I need to catch the log/error of the %post section (the things that are shown if you do* Alt + F3* while the post-script is running) and send it to a file. How can I do this???? My %post section: *%post --nochroot mkdir /mnt/sysimage/usr/src/FSR/ cp /mnt/stage2/FSR/* /mnt/sysimage/usr/src/FSR/ %post cd /usr/src/FSR/ tar -xvzf .... cd .... make make install .... ... ... eject %end* Please help, I have little experience Thank you very much!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From larry.brigman at gmail.com Mon Jun 1 19:59:28 2009 From: larry.brigman at gmail.com (Larry Brigman) Date: Mon, 1 Jun 2009 12:59:28 -0700 Subject: controlling partitioning but not install device Message-ID: I have a need to allow people using my kickstart file; allowed to select the install device in certain cases but not allow them to set up the partitioning. Is there way to do this? the system-config-kickstart tool seems to always want to specify a device. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrose at n-able.com Mon Jun 1 20:07:39 2009 From: mrose at n-able.com (Matt Rose) Date: Mon, 1 Jun 2009 16:07:39 -0400 Subject: Catch the error... In-Reply-To: <272d5daf0906011256n5fd35fa7v24a8b9eaf050d071@mail.gmail.com> References: <272d5daf0906011256n5fd35fa7v24a8b9eaf050d071@mail.gmail.com> Message-ID: <4A24350B.6050502@n-able.com> %post takes a --log= argument which catches stdout, so you could do %post --nochroot --log=/tmp/log ... cp /tmp/log /mnt/sysimage/tmp %end %post --log=/tmp/log2 ... %end Matt Pablo Bernasconi wrote: > Hello to everyone, > > I need to catch the log/error of the %post section (the things that > are shown if you do* Alt + F3* while the post-script is running) and > send it to a file. > > How can I do this???? > > My %post section: > > /%post --nochroot > mkdir /mnt/sysimage/usr/src/FSR/ > cp /mnt/stage2/FSR/* /mnt/sysimage/usr/src/FSR/ > > > %post > cd /usr/src/FSR/ > tar -xvzf .... > cd .... > make > make install > .... > ... > ... > eject > %end/ > > Please help, I have little experience > Thank you very much!!! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kpowell at redhat.com Mon Jun 1 23:36:43 2009 From: kpowell at redhat.com (Kyle Powell) Date: Mon, 01 Jun 2009 19:36:43 -0400 Subject: Catch the error... In-Reply-To: <272d5daf0906011256n5fd35fa7v24a8b9eaf050d071@mail.gmail.com> References: <272d5daf0906011256n5fd35fa7v24a8b9eaf050d071@mail.gmail.com> Message-ID: <4A24660B.8000903@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pablo Bernasconi wrote: > Hello to everyone, > > I need to catch the log/error of the %post section (the things that are > shown if you do* Alt + F3* while the post-script is running) and send it > to a file. > > How can I do this???? Run your scripts in a subshell and redirect STDOUT and STDERR to a log file. %post --nochroot ( mkdir /mnt/sysimage/usr/src/FSR/ cp /mnt/stage2/FSR/* /mnt/sysimage/usr/src/FSR/ ) 2>&1 > /mnt/sysimage/root/ks-post.log %post ( cd /usr/src/FSR/ tar -xvzf .... cd .... make make install .... eject ) 2>&1 > /root/ks-post.log https://fedorahosted.org/pipermail/cobbler/2008-August/000492.html - -- Kyle Powell | Red Hat | Senior Consultant, RHCE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFKJGYL7pTtanQdBU4RAqomAJ99twsyf/fj8/L8raBJb7vc4epBwACfWb5q xwwCbCOvkHfrQKkchTXOcfw= =thYy -----END PGP SIGNATURE----- From kpowell at redhat.com Tue Jun 2 06:11:22 2009 From: kpowell at redhat.com (Kyle Powell) Date: Tue, 02 Jun 2009 02:11:22 -0400 Subject: Catch the error... In-Reply-To: <4A24660B.8000903@redhat.com> References: <272d5daf0906011256n5fd35fa7v24a8b9eaf050d071@mail.gmail.com> <4A24660B.8000903@redhat.com> Message-ID: <4A24C28A.8040605@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kyle Powell wrote: > Run your scripts in a subshell and redirect STDOUT and STDERR to a log file. > > %post --nochroot > ( > mkdir /mnt/sysimage/usr/src/FSR/ > cp /mnt/stage2/FSR/* /mnt/sysimage/usr/src/FSR/ > ) 2>&1 > /mnt/sysimage/root/ks-post.log > > %post > ( > cd /usr/src/FSR/ > tar -xvzf .... > cd .... > make > make install > .... > eject > ) 2>&1 > /root/ks-post.log Oops, you'll want to append here or you'll overwrite the log from the first nochroot post... eject ) 2>&1 >> /root/ks-post.log - -- Kyle Powell | Red Hat | Senior Consultant, RHCE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFKJMKK7pTtanQdBU4RAvFqAJ0efE02BeZl5GPu2RHNHGrOUpH5SACfaSk2 0FKH54/O67F98/Bspznq6e4= =Tf07 -----END PGP SIGNATURE----- From clumens at redhat.com Tue Jun 2 15:11:06 2009 From: clumens at redhat.com (Chris Lumens) Date: Tue, 2 Jun 2009 11:11:06 -0400 Subject: --lba32 Message-ID: <20090602151105.GW5296@localhost.localdomain> Does anyone still use the bootloader --lba32 option? - Chris From kpowell at redhat.com Tue Jun 2 16:09:38 2009 From: kpowell at redhat.com (Kyle Powell) Date: Tue, 02 Jun 2009 12:09:38 -0400 Subject: controlling partitioning but not install device In-Reply-To: References: Message-ID: <4A254EC2.7030407@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Larry Brigman wrote: > I have a need to allow people using my kickstart file; allowed to select > the install device > in certain cases but not allow them to set up the partitioning. > > Is there way to do this? > the system-config-kickstart tool seems to always want to specify a device. I think this could be accomplished using a pre script that asks the user which device they wish to install to, then builds a partition configuration file using that information which is then added to the kickstart with a %include statement. - -- Kyle Powell | Red Hat | Senior Consultant, RHCE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFKJU7C7pTtanQdBU4RAux9AKCAFHotFr6MMGPm7EDtK/E0D3MhZQCdHyvu dJZkLAxHEqvkP7aGhX1PZZ4= =Y3br -----END PGP SIGNATURE----- From tom at ng23.net Tue Jun 2 16:44:30 2009 From: tom at ng23.net (Tom Brown) Date: Tue, 02 Jun 2009 17:44:30 +0100 Subject: Catch the error... In-Reply-To: <272d5daf0906011256n5fd35fa7v24a8b9eaf050d071@mail.gmail.com> References: <272d5daf0906011256n5fd35fa7v24a8b9eaf050d071@mail.gmail.com> Message-ID: <4A2556EE.1040702@ng23.net> Pablo Bernasconi wrote: > Hello to everyone, > > I need to catch the log/error of the %post section (the things that > are shown if you do* Alt + F3* while the post-script is running) and > send it to a file. > > How can I do this???? > > My %post section: > > /%post --nochroot > mkdir /mnt/sysimage/usr/src/FSR/ > cp /mnt/stage2/FSR/* /mnt/sysimage/usr/src/FSR/ > > > %post > cd /usr/src/FSR/ > tar -xvzf .... > cd .... > make > make install > .... > ... > ... > eject > %end/ > > Please help, I have little experience > Thank you very much!!! > not answering our question as others have done that ..... but why on earth are you cd'ing and making during a %post ? Just make an rpm and install this in the packages section, so much cleaner and far far far less ugly. From mrose at n-able.com Tue Jun 2 16:58:36 2009 From: mrose at n-able.com (Matt Rose) Date: Tue, 2 Jun 2009 12:58:36 -0400 Subject: controlling partitioning but not install device In-Reply-To: <4A254EC2.7030407@redhat.com> References: <4A254EC2.7030407@redhat.com> Message-ID: <4A255A3C.2020702@n-able.com> How would you write a pre script that queried the user? Kickstart just runs pre scripts, and doesn't allow interaction, as far as I know. Matt Kyle Powell wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Larry Brigman wrote: > >> I have a need to allow people using my kickstart file; allowed to select >> the install device >> in certain cases but not allow them to set up the partitioning. >> >> Is there way to do this? >> the system-config-kickstart tool seems to always want to specify a device. >> > > I think this could be accomplished using a pre script that asks the user which > device they wish to install to, then builds a partition configuration file using > that information which is then added to the kickstart with a %include statement. > - -- > Kyle Powell | Red Hat | Senior Consultant, RHCE > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iD8DBQFKJU7C7pTtanQdBU4RAux9AKCAFHotFr6MMGPm7EDtK/E0D3MhZQCdHyvu > dJZkLAxHEqvkP7aGhX1PZZ4= > =Y3br > -----END PGP SIGNATURE----- > > _______________________________________________ > 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 kpowell at redhat.com Tue Jun 2 17:20:20 2009 From: kpowell at redhat.com (Kyle Powell) Date: Tue, 02 Jun 2009 13:20:20 -0400 Subject: controlling partitioning but not install device In-Reply-To: <4A255A3C.2020702@n-able.com> References: <4A254EC2.7030407@redhat.com> <4A255A3C.2020702@n-able.com> Message-ID: <4A255F54.3000203@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Matt Rose wrote: > How would you write a pre script that queried the user? Kickstart just > runs pre scripts, and doesn't allow interaction, as far as I know. > > Matt You can use chvt (and possibly exec with redirection) to switch to another virtual termnial (usually VT3) in the %pre script, ask a user for input, then switch back to VT1 (or 6 if you didn't specify a text based kickstart) and let the kickstart continue. http://www.redhat.com/archives/kickstart-list/2003-September/msg00053.html http://www.redhat.com/archives/kickstart-list/2004-November/msg00033.html http://www.redhat.com/archives/kickstart-list/2007-September/msg00015.html http://www.redhat.com/archives/kickstart-list/2008-November/msg00062.html - -- Kyle Powell | Red Hat | Senior Consultant, RHCE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFKJV9U7pTtanQdBU4RAs+gAKCLHSWB5Bwu6H/yqxuI69r/s+iuowCfWgSn 4OSf8mwMuGuMse9QFlXsWNY= =1nx1 -----END PGP SIGNATURE----- From mrose at n-able.com Tue Jun 2 17:43:59 2009 From: mrose at n-able.com (Matt Rose) Date: Tue, 2 Jun 2009 13:43:59 -0400 Subject: controlling partitioning but not install device In-Reply-To: <4A255F54.3000203@redhat.com> References: <4A254EC2.7030407@redhat.com> <4A255A3C.2020702@n-able.com> <4A255F54.3000203@redhat.com> Message-ID: <4A2564DF.5060308@n-able.com> Thanks! I didn't realize you could programmatically change vt's in the anaconda image. Matt Kyle Powell wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Matt Rose wrote: > >> How would you write a pre script that queried the user? Kickstart just >> runs pre scripts, and doesn't allow interaction, as far as I know. >> >> Matt >> > > You can use chvt (and possibly exec with redirection) to switch to another > virtual termnial (usually VT3) in the %pre script, ask a user for input, then > switch back to VT1 (or 6 if you didn't specify a text based kickstart) and let > the kickstart continue. > > http://www.redhat.com/archives/kickstart-list/2003-September/msg00053.html > http://www.redhat.com/archives/kickstart-list/2004-November/msg00033.html > http://www.redhat.com/archives/kickstart-list/2007-September/msg00015.html > http://www.redhat.com/archives/kickstart-list/2008-November/msg00062.html > - -- > Kyle Powell | Red Hat | Senior Consultant, RHCE > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iD8DBQFKJV9U7pTtanQdBU4RAs+gAKCLHSWB5Bwu6H/yqxuI69r/s+iuowCfWgSn > 4OSf8mwMuGuMse9QFlXsWNY= > =1nx1 > -----END PGP SIGNATURE----- > > _______________________________________________ > 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 debian at herakles.homelinux.org Wed Jun 3 02:33:14 2009 From: debian at herakles.homelinux.org (John Summerfield) Date: Wed, 03 Jun 2009 10:33:14 +0800 Subject: THE WAY to copy files from the DVD to the computer??? In-Reply-To: References: <272d5daf0905291521p7a949049s7f7b4f0195a69d99@mail.gmail.com> Message-ID: <4A25E0EA.3060208@herakles.homelinux.org> Shabazian, Chip wrote: > Make this your %post: > > > > %post --no-chroot > > sleep 9999999 > I prefer /bin/sh to look around. The shell prompt is a little more obvious than nothing happening. -- Cheers John -- spambait 1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu -- Advice http://webfoot.com/advice/email.top.php http://www.catb.org/~esr/faqs/smart-questions.html http://support.microsoft.com/kb/555375 You cannot reply off-list:-) From larry.brigman at gmail.com Wed Jun 3 06:19:55 2009 From: larry.brigman at gmail.com (Larry Brigman) Date: Tue, 2 Jun 2009 23:19:55 -0700 Subject: controlling partitioning but not install device In-Reply-To: <4A255F54.3000203@redhat.com> References: <4A254EC2.7030407@redhat.com> <4A255A3C.2020702@n-able.com> <4A255F54.3000203@redhat.com> Message-ID: On Tue, Jun 2, 2009 at 10:20 AM, Kyle Powell wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Matt Rose wrote: > > How would you write a pre script that queried the user? Kickstart just > > runs pre scripts, and doesn't allow interaction, as far as I know. > > > > Matt > > You can use chvt (and possibly exec with redirection) to switch to another > virtual termnial (usually VT3) in the %pre script, ask a user for input, > then > switch back to VT1 (or 6 if you didn't specify a text based kickstart) and > let > the kickstart continue. > > http://www.redhat.com/archives/kickstart-list/2003-September/msg00053.html > http://www.redhat.com/archives/kickstart-list/2004-November/msg00033.html > http://www.redhat.com/archives/kickstart-list/2007-September/msg00015.html > http://www.redhat.com/archives/kickstart-list/2008-November/msg00062.html > - -- > Kyle Powell | Red Hat | Senior Consultant, RHCE > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iD8DBQFKJV9U7pTtanQdBU4RAs+gAKCLHSWB5Bwu6H/yqxuI69r/s+iuowCfWgSn > 4OSf8mwMuGuMse9QFlXsWNY= > =1nx1 > -----END PGP SIGNATURE----- > Thanks. Useful and right on the point. I even tried to use a google query with the basic terms from the provide URL's but if they were there, they were lost in the noise. Thanks again. Now to go and implement. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Axel.Thimm at ATrpms.net Sat Jun 6 09:23:16 2009 From: Axel.Thimm at ATrpms.net (Axel Thimm) Date: Sat, 6 Jun 2009 12:23:16 +0300 Subject: F10 vs F11: %pre and zerombr/autopart Message-ID: <20090606092316.GA7670@victor.nirvana> Hi, I have a kickstart setup that prepares the disks for a dual boot setup with Windows. This setup requires a fixed sized & positioned partition for the Windows world so I had to use sfdisk in %pre. This all worked fine on F10. Now with F11 I have the problem that after the installation the system's first boot fails with mismatching sizes of the physical vs superblock size of /dev/sda1, which is the /boot sector. The physical size matches what I forced in with sfdisk. I looks like the %pre script may run after the partitioning made by anaconda, at least effectively. My core question is how do I pass a partial partition setup to anaconda? I need a certain non-linux partition to be at some specific slot and some specific offset/size. Under F10 it worked to do [...] # System bootloader configuration bootloader --location=mbr # Partition clearing information clearpart --linux # Clear the Master Boot Record zerombr # Allow anaconda to partition the system as needed autopart [...] %pre ## 80887275 is rounded down to cylinder boundary of 80887338. sfdisk -f /dev/sda << EOF unit: sectors /dev/sda1 : start= 63, size= 417627, Id=83 /dev/sda2 : start= 417690, size= 80469585, Id=8e /dev/sda3 : start= 80887275, size= 75409047, Id= 7, bootable /dev/sda4 : start= 0, size= 0, Id= 0 EOF $SNIPPET('pre_install_network_config') $kickstart_start %end [...] I also tried to comment out zerombr and/or autopart, but the problem didn't go away. Furthermore it isn't 100% reproducible, I had 20 systems with identical hardware and some did properly install with a rawhide/F11 setup of the 2nd June, but later rawhide/F11 setups would have them all fail. Thanks! -- Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From chwilk at rice.edu Tue Jun 23 15:08:28 2009 From: chwilk at rice.edu (Chandler Wilkerson) Date: Tue, 23 Jun 2009 10:08:28 -0500 Subject: Kickstart Partitioning Errors In-Reply-To: <06A6610D4F464D4EBEAFBF2C5F86911E010D6AF0@exchange2.columbia.tresys.com> References: <06A6610D4F464D4EBEAFBF2C5F86911E010D6AF0@exchange2.columbia.tresys.com> Message-ID: <4A40EFEC.9070809@rice.edu> It sounds like anaconda is not seeing your hard drive at all (which to my recollection happens with VMWare's SCSI drivers in some versions). You can get more info by going to the shell after getting the error (Alt-F2) and running the list-harddrives command. -- Chandler Wilkerson Rice University Corey Garst wrote: > I've set up a fairly default install of Spacewalk 0.5 and set up a > channel for CentOS 5.2. I've set up a CentOS 5.2 distro for kickstart > and I'm not off to a great start. Perhaps this is just something simple > that I've missed that someone could chime in on. > > When I PXE boot with an IDE VM in VMware Workstation, I get the error: > "An error occurred trying to format myvg/rootvol. This problem > is serious, and the install cannot continue." > > When I PXE boot with a SCSI VM in VMware Workstation, I get the error: > "Could not allocate requested partitions: Partitioning failed: > Could not allocate partitions as primary partitions. Not enough space > left to create partition for /boot." > > Here is the partitioning details from Spacewalk > Systems > Kickstart > > Profiles > CentOS-5-2. I'm not sure where this is stored in file. > > partition /boot --fstype=ext3 --size=200 > partition swap --size=1000 --maxsize=2000 > partition pv.01 --size=1000 --grow > > volgroup myvg pv.01 > > logvol / --vgname=myvg --name=rootvol --size=1000 --grow > > > -Corey Garst > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > > !DSPAM:3857,4a02e40818327459121103! > > From consult.itlinux at gmail.com Wed Jun 24 17:01:12 2009 From: consult.itlinux at gmail.com (Ahmed Taha) Date: Wed, 24 Jun 2009 12:01:12 -0500 Subject: Kickstart Partitioning Errors In-Reply-To: <4A40EFEC.9070809@rice.edu> References: <06A6610D4F464D4EBEAFBF2C5F86911E010D6AF0@exchange2.columbia.tresys.com> <4A40EFEC.9070809@rice.edu> Message-ID: Just a thought; Have you tried to zero the MBR first in the ks profile ? Also I found out that clearpart --all --initlabel must be used otherwise errors for failed partitioning persist. You may try changing your kickstart profile to reflect something like the following: bootloader --location=mbr --driveorder=sda,sdb clearpart --all --initlabel part /boot --fstype ext3 --size=100 --ondisk=sda part pv.31 --size=10000 --ondisk=sda volgroup VolGroup00 --pesize=32768 pv.31 logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=1000 logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=6000 Ahmed On Tue, Jun 23, 2009 at 10:08 AM, Chandler Wilkerson wrote: > It sounds like anaconda is not seeing your hard drive at all (which to my > recollection happens with VMWare's SCSI drivers in some versions). > > You can get more info by going to the shell after getting the error > (Alt-F2) and running the list-harddrives command. > > -- > Chandler Wilkerson > Rice University > > Corey Garst wrote: > >> I've set up a fairly default install of Spacewalk 0.5 and set up a >> channel for CentOS 5.2. I've set up a CentOS 5.2 distro for kickstart >> and I'm not off to a great start. Perhaps this is just something simple >> that I've missed that someone could chime in on. >> >> When I PXE boot with an IDE VM in VMware Workstation, I get the error: >> "An error occurred trying to format myvg/rootvol. This problem >> is serious, and the install cannot continue." >> >> When I PXE boot with a SCSI VM in VMware Workstation, I get the error: >> "Could not allocate requested partitions: Partitioning failed: >> Could not allocate partitions as primary partitions. Not enough space >> left to create partition for /boot." >> >> Here is the partitioning details from Spacewalk > Systems > Kickstart > >> Profiles > CentOS-5-2. I'm not sure where this is stored in file. >> >> partition /boot --fstype=ext3 --size=200 >> partition swap --size=1000 --maxsize=2000 >> partition pv.01 --size=1000 --grow >> >> volgroup myvg pv.01 >> >> logvol / --vgname=myvg --name=rootvol --size=1000 --grow >> >> >> -Corey Garst >> >> _______________________________________________ >> Kickstart-list mailing list >> Kickstart-list at redhat.com >> https://www.redhat.com/mailman/listinfo/kickstart-list >> >> !DSPAM:3857,4a02e40818327459121103! >> >> >> > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -- Ahmed G. Taha Linux Systems Consultant RHCE & Operating System Programmer (Cell): (573) 289-7300 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgarst at tresys.com Mon Jun 29 14:47:12 2009 From: cgarst at tresys.com (Corey Garst) Date: Mon, 29 Jun 2009 10:47:12 -0400 Subject: Kickstart Partitioning Errors In-Reply-To: <4A40EFEC.9070809@rice.edu> References: <06A6610D4F464D4EBEAFBF2C5F86911E010D6AF0@exchange2.columbia.tresys.com> <4A40EFEC.9070809@rice.edu> Message-ID: <06A6610D4F464D4EBEAFBF2C5F86911E01242990@exchange2.columbia.tresys.com> I found that the VMware's LSI Logic SCSI adapter did not have this problem. -Corey -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Chandler Wilkerson Sent: Tuesday, June 23, 2009 11:08 AM To: Discussion list about Kickstart Subject: Re: Kickstart Partitioning Errors It sounds like anaconda is not seeing your hard drive at all (which to my recollection happens with VMWare's SCSI drivers in some versions). You can get more info by going to the shell after getting the error (Alt-F2) and running the list-harddrives command. -- Chandler Wilkerson Rice University Corey Garst wrote: > I've set up a fairly default install of Spacewalk 0.5 and set up a > channel for CentOS 5.2. I've set up a CentOS 5.2 distro for kickstart > and I'm not off to a great start. Perhaps this is just something simple > that I've missed that someone could chime in on. > > When I PXE boot with an IDE VM in VMware Workstation, I get the error: > "An error occurred trying to format myvg/rootvol. This problem > is serious, and the install cannot continue." > > When I PXE boot with a SCSI VM in VMware Workstation, I get the error: > "Could not allocate requested partitions: Partitioning failed: > Could not allocate partitions as primary partitions. Not enough space > left to create partition for /boot." > > Here is the partitioning details from Spacewalk > Systems > Kickstart > > Profiles > CentOS-5-2. I'm not sure where this is stored in file. > > partition /boot --fstype=ext3 --size=200 > partition swap --size=1000 --maxsize=2000 > partition pv.01 --size=1000 --grow > > volgroup myvg pv.01 > > logvol / --vgname=myvg --name=rootvol --size=1000 --grow > > > -Corey Garst > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > > !DSPAM:3857,4a02e40818327459121103! > > _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From matt_milliss at yahoo.com Tue Jun 30 00:34:26 2009 From: matt_milliss at yahoo.com (Matthew Milliss) Date: Tue, 30 Jun 2009 10:34:26 +1000 Subject: Kickstart not rebooting on completion In-Reply-To: <06A6610D4F464D4EBEAFBF2C5F86911E01242990@exchange2.columbia.tresys.com> References: <06A6610D4F464D4EBEAFBF2C5F86911E010D6AF0@exchange2.columbia.tresys.com> <4A40EFEC.9070809@rice.edu> <06A6610D4F464D4EBEAFBF2C5F86911E01242990@exchange2.columbia.tresys.com> Message-ID: <4A495D92.6020303@yahoo.com> I'm using kickstart to install Fedora 11 and I'm having an issue with the system not rebooting when the install has finished. The install is running in text mode and it just stops on the "Running post install" screen. If I force a reboot the install has been successful, but I find myself wasting time waiting around to make sure the install has finished before forcing a reboot. My kickstart file is below. Any help would be greatly appreciated. # Kickstart file automatically generated by anaconda - with some additions by Matt. #version=F11 install text cdrom lang en_AU.UTF-8 keyboard us network --device=eth0 --bootproto=dhcp --hostname=snotrod xconfig --startxonboot rootpw --iscrypted firewall --disabled authconfig --enableshadow --passalgo=sha512 --enablefingerprint selinux --permissive timezone --utc Australia/Sydney bootloader --location=mbr --driveorder=sda --append="quiet reboot=bios" autopart clearpart --all reboot --eject repo --name=msl --baseurl=http://hannibal/tyroyummy/msl %packages @admin-tools @base @core @editors @fonts @gnome-desktop @graphical-internet @graphics @hardware-support @input-methods @office @online-docs @printing @sound-and-video @base-x xfsprogs mtools gpgme pax gnupg2 gvfs-obexftp ImageMagick dcraw netpbm-progs hdparm m17n-db-assamese gok m17n-db-tamil m17n-db-gujarati iok m17n-db-hindi m17n-db-punjabi m17n-db-oriya m17n-db-telugu m17n-db-bengali m17n-db-malayalam m17n-contrib-sinhala m17n-db-kannada gdm nvu binutils rdesktop wireshark wireshark-gnome subversion vnc minicom thunderbird rpm-build kernel-headers createrepo kernel-devel yelp jedit vsftpd AdobeReader_enu flash-plugin nxclient nxnode nxserver ntp %end %post #!/bin/bash env > /root/postks.log mkdir /mnt/pub mkdir /mnt/yum mount -o ro,nolock -t nfs hannibal:/tyroyummy /mnt/yum #mount -o ro,nolock -t nfs 192.168.100.58:/home/pub/ /mnt/pub cp /etc/fstab /etc/fstab.bk echo "avalon-2:/home/pub /mnt/pub nfs auto,rw,intr 0 0" >> /etc/fstab echo "hannibal:/tyroyummy /mnt/yum nfs auto,rw,intr 0 0" >> /etc/fstab cd /mnt/yum/SOE_Fedora11/install ./install.sh > /var/log/msl_install_output.log cd / umount /mnt/yum %end