From phb at llgc.org.uk Tue May 2 09:35:33 2006 From: phb at llgc.org.uk (Phil Bettinson) Date: Tue, 02 May 2006 10:35:33 +0100 Subject: FC5 minimal In-Reply-To: References: <1145295837.3071.25.camel@ender> Message-ID: <445727E5.2070502@llgc.org.uk> Perhaps with something like this: lang en_US.UTF-8 langsupport en_GB.UTF-8 keyboard uk In the kickstart file. In mine it's the frist few lines. Hope this helps. Phil Robin Bowes wrote: > Jesse Keating wrote: > >>On Mon, 2006-04-17 at 10:37 -0700, Shabazian, Chip wrote: >> >>>Be aware however, that this usually results in a system that is >>>unusable. You need to build back up from @base in order to get a good >>>build. I have no idea what these packages might be for FC5. >> >>%packages --nobase >>@Core >> >>will give you a system that is usable, but has no yum, no lftp, no man >>pages, no a lot of stuff. You do get rpm, and thus python so thats >>good. It is usable, just difficult to add to it from there. > > > I've been working on this today, and this post scratch my itch nicely! > > I use this: > > %packages --nobase --resolvedeps > @Core > yum > openssh-server > openssh-clients > # list of other packages here > > This way I can add only just those packages I need and don't get all the > other cruft that comes with the standard install and isn't needed on > servers. > > Now, if I could only work out how to set LANG to en_GB.UTF-8 on > installation ... > > R. > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list -- ----------------------------------------------------------------------- Phil Bettinson Swyddog Gweinyddu Systemau Systems Administrator Isadran Cyfrifiaduron Computer Section Llyfrgell Genedlaethol Cymru National Library of Wales Aberystwyth, Aberystwyth Ceredigion, Ceredigion SY23 3BU SY23 3BU Ff?n / Phone: 01970 632X867 Ffacs / Fax: 01970 615X709 EBost / Email: phb AT NOSPAM llgc.org.uk We / Web: http://www.llgc.org.uk ----------------------------------------------------------------------- Yn siarad drosof fy hun, nid LlGC - Speaking personally, not for NLW From Ajitabh.Pandey at bds.tv Thu May 4 14:56:29 2006 From: Ajitabh.Pandey at bds.tv (Ajitabh Pandey) Date: Thu, 04 May 2006 15:56:29 +0100 Subject: LVM problem after kickstart install on RHEL4 Message-ID: <1146754590.12877.168.camel@localhost.localdomain> Hi, A very strange problem, after the RHEL4 update 3 kickstart install from an http server. When the system comes up after the install it is not able to mount the LVMs. A little investigation tells that the directory /dev/vg_root does not exists. Following is my kickstart file, perhaps something obviously wrong there. System is DL585 G2. install url --url http://our.management-server.net/rhel4/ lang en_US.UTF-8 langsupport --default en_GB.UTF-8 en_GB.UTF-8 en_US.UTF-8 keyboard uk mouse none text skipx zerombr yes # This static address does not work at the moment as install method is # kickstart over http, so system need to have an address network --device eth0 --bootproto=static --ip 192.168.1.55 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 192.168.1.10,192.168.1.11 --hostname noddy03 network --device eth1 --bootproto static --ip 192.168.1.56 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 192.168.1.10,192.168.1.11 --hostname noddy03 rootpw --iscrypted $1dsjhdhs$F/uKYN6URk. #firewall --disabled firewall --enabled --ssh --http #selinux --permissive selinux --disabled authconfig --enableshadow --enablemd5 --enablekrb5 --krb5realm=MYDOMAIN.NET --krb5kdc=mswinadc01.mydomain.net:88,mswinadc02.mydomain.net:88 --krb5adminserver=mswinadc01.bds.tv:749 timezone --utc Europe/London bootloader --location=mbr clearpart --all --initlabel # The following is the partition information part /boot --fstype ext3 --size=2000 --ondisk=cciss/c0d0 --asprimary part / --fstype ext3 --size=70000 --ondisk=cciss/c0d0 --asprimary part swap --size=8000 --ondisk=cciss/c0d0 --asprimary part swap --size=8000 --ondisk=cciss/c0d0 part swap --size=8000 --ondisk=cciss/c0d0 part swap --size=8000 --ondisk=cciss/c0d0 part pv.01 --noformat --size=100 --grow --ondisk=cciss/c0d0 volgroup vg_root pv.01 logvol /usr/local --fstype ext3 --name=lv_usr_local --vgname=vg_root --size=10000 logvol /opt --name=lv_opt --vgname=vg_root --size=10000 logvol /apps --name=lv_apps --vgname=vg_root --size=10000 logvol /var --name=lv_var --vgname=vg_root --size=10000 logvol /var/www --name=lv_www --vgname=vg_root --size=20000 logvol /home --name=lv_home --vgname=vg_root --size=20000 logvol /tmp --name=lv_tmp --vgname=vg_root --size=10000 %packages kernel-smp # mail-server postfix -sendmail -dovecot -sendmail-cf -spamassassin # smb-server samba samba-client -system-config-samba # mysql mysql-server mysql # web-server httpd mod_authz_ldap mod_ssl php php-mysql # editors emacs joe vim-minimal # system-tools zsh sysstat screen openldap-clients nmap open net-snmp-utils mc iptraf ethereal ckermit # development-tools binutils rcs subversion %post rpm --import /usr/share/rhn/RPM-GPG-KEY /usr/sbin/useradd -G wheel -c "Administrator" -d /home/admin -s /bin/bash admin Regards. -- Ajitabh Pandey| Linux/Solaris Systems Administrator bds - Broadcasting Dataservices Ltd 58 Uxbridge Road | London W5 2ST T: +44 (0)20 8280 2036 E: Ajitabh.Pandey at BDS.TV http://www.bds.tv Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender From Chip.Shabazian at bankofamerica.com Thu May 4 16:44:13 2006 From: Chip.Shabazian at bankofamerica.com (Shabazian, Chip) Date: Thu, 04 May 2006 09:44:13 -0700 Subject: LVM problem after kickstart install on RHEL4 In-Reply-To: <1146754590.12877.168.camel@localhost.localdomain> Message-ID: Have you installed lvm on these boxes before? On the HP DL servers, with CCISS controllers, I've noticed a failure on them if there were existing lvm partitions unless you clear the partition table with --initlabel: clearpart --all --initlabel Alternatively, you can delete and re-create the partitions in the CCISS controller BIOS. Chip -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Ajitabh Pandey Sent: Thursday, May 04, 2006 7:56 AM To: kickstart-list at redhat.com Subject: LVM problem after kickstart install on RHEL4 Hi, A very strange problem, after the RHEL4 update 3 kickstart install from an http server. When the system comes up after the install it is not able to mount the LVMs. A little investigation tells that the directory /dev/vg_root does not exists. Following is my kickstart file, perhaps something obviously wrong there. System is DL585 G2. install url --url http://our.management-server.net/rhel4/ lang en_US.UTF-8 langsupport --default en_GB.UTF-8 en_GB.UTF-8 en_US.UTF-8 keyboard uk mouse none text skipx zerombr yes # This static address does not work at the moment as install method is # kickstart over http, so system need to have an address network --device eth0 --bootproto=static --ip 192.168.1.55 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 192.168.1.10,192.168.1.11 --hostname noddy03 network --device eth1 --bootproto static --ip 192.168.1.56 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 192.168.1.10,192.168.1.11 --hostname noddy03 rootpw --iscrypted $1dsjhdhs$F/uKYN6URk. #firewall --disabled firewall --enabled --ssh --http #selinux --permissive selinux --disabled authconfig --enableshadow --enablemd5 --enablekrb5 --krb5realm=MYDOMAIN.NET --krb5kdc=mswinadc01.mydomain.net:88,mswinadc02.mydomain.net:88 --krb5adminserver=mswinadc01.bds.tv:749 timezone --utc Europe/London bootloader --location=mbr clearpart --all --initlabel # The following is the partition information part /boot --fstype ext3 --size=2000 --ondisk=cciss/c0d0 --asprimary part / --fstype ext3 --size=70000 --ondisk=cciss/c0d0 --asprimary part swap --size=8000 --ondisk=cciss/c0d0 --asprimary part swap --size=8000 --ondisk=cciss/c0d0 part swap --size=8000 --ondisk=cciss/c0d0 part swap --size=8000 --ondisk=cciss/c0d0 part pv.01 --noformat --size=100 --grow --ondisk=cciss/c0d0 volgroup vg_root pv.01 logvol /usr/local --fstype ext3 --name=lv_usr_local --vgname=vg_root --size=10000 logvol /opt --name=lv_opt --vgname=vg_root --size=10000 logvol /apps --name=lv_apps --vgname=vg_root --size=10000 logvol /var --name=lv_var --vgname=vg_root --size=10000 logvol /var/www --name=lv_www --vgname=vg_root --size=20000 logvol /home --name=lv_home --vgname=vg_root --size=20000 logvol /tmp --name=lv_tmp --vgname=vg_root --size=10000 %packages kernel-smp # mail-server postfix -sendmail -dovecot -sendmail-cf -spamassassin # smb-server samba samba-client -system-config-samba # mysql mysql-server mysql # web-server httpd mod_authz_ldap mod_ssl php php-mysql # editors emacs joe vim-minimal # system-tools zsh sysstat screen openldap-clients nmap open net-snmp-utils mc iptraf ethereal ckermit # development-tools binutils rcs subversion %post rpm --import /usr/share/rhn/RPM-GPG-KEY /usr/sbin/useradd -G wheel -c "Administrator" -d /home/admin -s /bin/bash admin Regards. -- Ajitabh Pandey| Linux/Solaris Systems Administrator bds - Broadcasting Dataservices Ltd 58 Uxbridge Road | London W5 2ST T: +44 (0)20 8280 2036 E: Ajitabh.Pandey at BDS.TV http://www.bds.tv Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From Ajitabh.Pandey at bds.tv Thu May 4 16:58:10 2006 From: Ajitabh.Pandey at bds.tv (Ajitabh Pandey) Date: Thu, 04 May 2006 17:58:10 +0100 Subject: LVM problem after kickstart install on RHEL4 In-Reply-To: References: Message-ID: <1146761890.12877.176.camel@localhost.localdomain> On Thu, 2006-05-04 at 09:44 -0700, Shabazian, Chip wrote: > Have you installed lvm on these boxes before? LVM, yes, many times, but everytime manually installed the OS. This is the first time I am trying to do that on Kickstart. > On the HP DL servers, > with CCISS controllers, I've noticed a failure on them if there were > existing lvm partitions unless you clear the partition table with > --initlabel: > > clearpart --all --initlabel That's what I am doing, see my kickstart file. > Alternatively, you can delete and re-create the partitions in the CCISS > controller BIOS. First time when I started, I did that. Cleared everything from BIOS and recreated the disk arrays. This is the first time I am doing LVM in kickstart, but from google I understand that people do that all the time, but I havent come across any example on CCISS based systems. PErhaps someone who has done that can pitch in also. Regards. -- Ajitabh Pandey| Linux Systems Administrator bds - Broadcasting Dataservices Ltd 58 Uxbridge Road | London W5 2ST T: +44 (0)20 8280 2036 E: Ajitabh.Pandey at BDS.TV http://www.bds.tv Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender From neeradm at in.niksun.com Fri May 5 21:46:41 2006 From: neeradm at in.niksun.com (Neerad Niksun) Date: Fri, 5 May 2006 14:46:41 -0700 Subject: Kickstart on RHEL AS4 Message-ID: <027d01c6708d$64e6ba20$48003c0a@neeradnew> Hi, I am trying to build a kickstart CD ROM for RHEL 4.0 which is failing. I did make the RHEL 3.0 kickstart CDROM and it worked just fine. RHEL 3.0 works fine with certain set of rpms. RHEL 4.0 fails after the following series of activties are over succesfully. 1) boot succesfuly from the custom CD 2) parse ks.cfg 3) x-server comes up alright 4) check package dependency. 5) parse comps.xml correctly 6) starts installation - partitions the disck according to the partitions specified in the ks.cfg 7) then shows message "transferring install image to the disk" which gets past succesfully 8) starts x-server again comes up okay. And then the message says "install terminated abnormally" No OTHER message to work on further. I have tried following in ks.cfg 1) text install, 2) selinux forced 3) selinux disabled 4) skipx 5) packages --ignoremissing Each time it breaks exactly at the same point. I have even tried now with trimming down the comps.xml file by manually removing the groups and packages that were not required. (initially this gave problems with parsing and installation failed subsequently) but now the the parsing seems okay. This was probably because of the empty groups in comps.xml. CAN anybody help? I am seriously getting frustrated since , working on it for quite some time with different combinations of packages , ks.cfs commands etc. Thanks Neeard -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ajitabh.Pandey at bds.tv Fri May 5 09:28:47 2006 From: Ajitabh.Pandey at bds.tv (Ajitabh Pandey) Date: Fri, 05 May 2006 10:28:47 +0100 Subject: LVM problem after kickstart install on RHEL4 In-Reply-To: <776597aa0605041026s2082e6a8hafdb4bc3756ac082@mail.gmail.com> References: <1146754590.12877.168.camel@localhost.localdomain> <776597aa0605041026s2082e6a8hafdb4bc3756ac082@mail.gmail.com> Message-ID: <1146821328.12877.179.camel@localhost.localdomain> On Thu, 2006-05-04 at 12:26 -0500, Dean Troyer wrote: > On 5/4/06, Ajitabh Pandey wrote: > > > > clearpart --all --initlabel > > # The following is the partition information > > part /boot --fstype ext3 --size=2000 --ondisk=cciss/c0d0 --asprimary > > part / --fstype ext3 --size=70000 --ondisk=cciss/c0d0 --asprimary > > The significant difference I see is that your root partition is not in > LVM. The only non-LVM partition I have is /boot. I think that makes > a difference to what is included in your initrd image. You may have > to force the LVM modules to be included. Thanks for the reply. Sorry I am not a seasoned kickstart user. How do you propose this is done. I mean how do I force LVM modules to be included in the initrd image. I thought they should be there. Does Red Hat installer builds the initrd file dynamically? Regards. -- Ajitabh Pandey| Linux Systems Administrator bds - Broadcasting Dataservices Ltd 58 Uxbridge Road | London W5 2ST T: +44 (0)20 8280 2036 E: Ajitabh.Pandey at BDS.TV http://www.bds.tv Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender From Ajitabh.Pandey at bds.tv Fri May 5 10:28:50 2006 From: Ajitabh.Pandey at bds.tv (Ajitabh Pandey) Date: Fri, 05 May 2006 11:28:50 +0100 Subject: LVM problem after kickstart install on RHEL4 In-Reply-To: <1146821328.12877.179.camel@localhost.localdomain> References: <1146754590.12877.168.camel@localhost.localdomain> <776597aa0605041026s2082e6a8hafdb4bc3756ac082@mail.gmail.com> <1146821328.12877.179.camel@localhost.localdomain> Message-ID: <1146824931.12877.187.camel@localhost.localdomain> On Fri, 2006-05-05 at 10:28 +0100, Ajitabh Pandey wrote: > On Thu, 2006-05-04 at 12:26 -0500, Dean Troyer wrote: > > On 5/4/06, Ajitabh Pandey wrote: > > > > > > clearpart --all --initlabel > > > # The following is the partition information > > > part /boot --fstype ext3 --size=2000 --ondisk=cciss/c0d0 --asprimary > > > part / --fstype ext3 --size=70000 --ondisk=cciss/c0d0 --asprimary > > > > The significant difference I see is that your root partition is not in > > LVM. The only non-LVM partition I have is /boot. I think that makes > > a difference to what is included in your initrd image. You may have > > to force the LVM modules to be included. > OK I can confirm that once I moved the root partition to LVM, it worked like a charm. Commented out the: # part / --fstype ext3 --size=70000 --ondisk=cciss/c0d0 --asprimary and added logvol / --fstype ext3 --name=lv_root --vgname=vg_root --size=70000 So unless the root (/) itself is a part of the LVM then the LVM partitions are not recognized after a reboot. But I always tend to keep the root (/) outside of LVM when doing a manual install and it has worked with RHEL 3 and 4, so can we say that this is a bug? And yes if someone can point out the work around of keeping root outside the LVM and other LVMs still work then I will be glad. Regards. -- Ajitabh Pandey| Linux Systems Administrator bds - Broadcasting Dataservices Ltd 58 Uxbridge Road | London W5 2ST T: +44 (0)20 8280 2036 E: Ajitabh.Pandey at BDS.TV http://www.bds.tv Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender From rspaulding at mail.arc.nasa.gov Fri May 5 14:51:52 2006 From: rspaulding at mail.arc.nasa.gov (Ryan C. Spaulding) Date: Fri, 5 May 2006 07:51:52 -0700 Subject: Kickstart on RHEL AS4 In-Reply-To: <027d01c6708d$64e6ba20$48003c0a@neeradnew> References: <027d01c6708d$64e6ba20$48003c0a@neeradnew> Message-ID: What is the output of your f3 log window (control+alt+f3)? On May 5, 2006, at 2:46 PM, Neerad Niksun wrote: > Hi, > > I am trying to build a kickstart CD ROM for RHEL 4.0 which is > failing. I did make the RHEL 3.0 kickstart CDROM and it worked > just fine. > > RHEL 3.0 works fine with certain set of rpms. > > RHEL 4.0 fails after the following series of activties are over > succesfully. > > 1) boot succesfuly from the custom CD > 2) parse ks.cfg > 3) x-server comes up alright > 4) check package dependency. > 5) parse comps.xml correctly > 6) starts installation - partitions the disck according to the > partitions specified in the ks.cfg > 7) then shows message "transferring install image to the disk" > which gets past succesfully > 8) starts x-server again comes up okay. > > And then the message says "install terminated abnormally" > > No OTHER message to work on further. > > I have tried following in ks.cfg > > 1) text install, > 2) selinux forced > 3) selinux disabled > 4) skipx > 5) packages --ignoremissing > > Each time it breaks exactly at the same point. > > I have even tried now with trimming down the comps.xml file by > manually removing the groups and packages that were not required. > (initially this gave problems with parsing and installation failed > subsequently) but now the the parsing seems okay. > This was probably because of the empty groups in comps.xml. > > CAN anybody help? I am seriously getting frustrated since , working > on it for quite some time with different combinations of packages , > ks.cfs commands etc. > > Thanks > > Neeard > > > _______________________________________________ > 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 forltran at yahoo.com Mon May 8 22:40:18 2006 From: forltran at yahoo.com (Lambert Tran) Date: Mon, 8 May 2006 15:40:18 -0700 (PDT) Subject: Kickstart on RHEL AS4 In-Reply-To: <027d01c6708d$64e6ba20$48003c0a@neeradnew> Message-ID: <20060508224018.41402.qmail@web82313.mail.mud.yahoo.com> I think what you need is to (re)run the genhlist--pkgorder--genhlist over your batch of RPMS. I had that same problem before while creating my installation/kickstart CD. --- Neerad Niksun wrote: > Hi, > > I am trying to build a kickstart CD ROM for RHEL 4.0 which is failing. I did > make the RHEL 3.0 kickstart CDROM and it worked just fine. > > RHEL 3.0 works fine with certain set of rpms. > > RHEL 4.0 fails after the following series of activties are over succesfully. > > 1) boot succesfuly from the custom CD > 2) parse ks.cfg > 3) x-server comes up alright > 4) check package dependency. > 5) parse comps.xml correctly > 6) starts installation - partitions the disck according to the partitions > specified in the ks.cfg > 7) then shows message "transferring install image to the disk" which gets > past succesfully > 8) starts x-server again comes up okay. > > And then the message says "install terminated abnormally" > > No OTHER message to work on further. > > I have tried following in ks.cfg > > 1) text install, > 2) selinux forced > 3) selinux disabled > 4) skipx > 5) packages --ignoremissing > > Each time it breaks exactly at the same point. > > I have even tried now with trimming down the comps.xml file by manually > removing the groups and packages that were not required. (initially this gave > problems with parsing and installation failed subsequently) but now the the > parsing seems okay. > This was probably because of the empty groups in comps.xml. > > CAN anybody help? I am seriously getting frustrated since , working on it for > quite some time with different combinations of packages , ks.cfs commands > etc. > > Thanks > > Neeard > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From pvjuliet at gmail.com Tue May 9 05:04:17 2006 From: pvjuliet at gmail.com (PV Juliet) Date: Tue, 9 May 2006 10:34:17 +0530 Subject: Raid support Message-ID: Hi All, I made an own distribution CD for CentOS. I am using a ks.cfg file automatic installation. But when i changed the machine to raid support it's not installing .. Is it neccessary to anything else?? Thanks in advance Regards juliet From lunixer at gmail.com Tue May 9 22:34:17 2006 From: lunixer at gmail.com (Aldo Foot) Date: Tue, 9 May 2006 15:34:17 -0700 Subject: kickstart Fedora Core 5 / CD+Floppy Message-ID: <3d22fc520605091534v3b34649va234dd5516adcf85@mail.gmail.com> Hello, I'm trying to install Fedora Core 5 using a boot cd (boot.iso) and a kickstart floppy stored in a floppy drive (ks.cfg). I can do a manual nfs install, but I'd like to learn to implement kickstart. I've done some browsing but found no references to my particular problem. This is what I've done so far: [1] created a boot cd with boot.iso. [2] created a ks.cfg with kickstart configurator and edited the disk partition section. [3] issued this command to boot using ks.cfg from floppy: linux ks=floppy:/ks.cfg The boot proceeds normally, but the install halts with the following error: "The following error was found while parsing your kickstart configuration" The following problem occurred in line 31 of the kickstart file: mount point required for partition" line 31 refers to the line "part /boot --fstype ext3 size=200" After having read quite a bit about the subject, I cannot see where the problem might be. Any ideas what's wrong? Your help will be appreciated. Thanks in advanced. This is my ks.cfg: ========================================================== # Kickstart file automatically generated by anaconda. install nfs --server=1.2.3.4 --dir=/stor/DOWNLOAD/FD5 lang en_US.UTF-8 keyboard us xconfig --driver "nv" --videoram 65536 --resolution 800x600 --depth 16 --startxonboot monitor --hsync 30-130 --vsync 48-170 network --device eth0 --bootproto static --ip 10.2.3.4 --netmask 255.255.255.0 \ --gateway 1.2.3.4 --nameserver 10.2.3.4,1.2.3.4 --hostname myhostname rootpw --iscrypted $1$eL3D8/Eh$Vweas*(&klwvopbTg5.wjyKR6wqN/ firewall --enabled --port=22:tcp authconfig --enableshadow --enablemd5 selinux --enforcing timezone America/Los_Angeles zerombr yes clearpart --all bootloader --location=mbr --driveorder=hda --append="rhgb quiet" part /boot --fstype ext3 size=200 part / --fstype ext3 size=200 part swap --noformat size=500 part /usr --fstype ext3 --size=3500 part /home --fstype ext3 --size=3000 part /var --fstype ext3 --size=1000 part /usr/local --fstype ext3 --size=500 part /tmp --fstype ext3 --size=150 part /scratch --fstype ext3 --size=100 --grow %packages --resolvedeps @development-libs @system-tools @x-software-development ============================================================== ~Aldo Foot. -------------- next part -------------- An HTML attachment was scrubbed... URL: From philipp_subx at redfish-solutions.com Wed May 10 16:00:36 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Wed, 10 May 2006 10:00:36 -0600 Subject: Newbie questions about Kickstart Message-ID: <44620E24.9080306@redfish-solutions.com> Hi. I'm trying to write an FC5 installer for my laptop, so that when I'm on the road (and don't have access to the corporate intranet), I can reimage my computer. I've got a few questions about tailoring a ks.cfg file. (1) when you specify "ks=cdrom", where does this imply the ks.cfg file to be? In the top-level directory of the DVD? (2) when your %post script is run, what is mounted where? Where is the DVD root filesystem? Apparently not /mnt/source any more ... because I threw "mount" into the script to display the filesystems just for fun and it wasn't in there. I have some scripts that I want to be able to run off the DVD from there... (3) where does the output of %post get logged? vt3? But not a file? (4) when %post is run, have the repos been created yet? I tried running yum, as in: yum -y update kernel ... yum -y --enablerepo=atrpms install madwifi madwifi-kmdl madwifi-hal-kmdl ... but I'm seeing: Cannot find a valid baseurl for repo: core Error: Cannot find a valid baseurl for repo: core Loading "installonlyn" plugin Setting up Update Process Setting up repositories Thanks, -Philip From anaconda at maisondubonheur.com Wed May 10 16:40:45 2006 From: anaconda at maisondubonheur.com (Alain TAUCH) Date: Wed, 10 May 2006 18:40:45 +0200 Subject: Newbie questions about Kickstart In-Reply-To: <44620E24.9080306@redfish-solutions.com> References: <44620E24.9080306@redfish-solutions.com> Message-ID: <20060510184045.4580ba67.anaconda@maisondubonheur.com> Hi, On Wed, 10 May 2006 10:00:36 -0600 Philip Prindeville [Philip] wrote: [...] Philip> (2) when your %post script is run, what is mounted where? Where Philip> is the DVD root filesystem? Apparently not /mnt/source any more Philip> ... because I threw "mount" into the script to display the filesystems Philip> just for fun and it wasn't in there. I have some scripts that I want Philip> to be able to run off the DVD from there... the %post section is run in a chroot. If you want access to your DVD, use %post --nochroot. Then /mnt/source and /mnt/sysimage should be available. -- Alain From patchu1 at yahoo.com Wed May 10 20:18:54 2006 From: patchu1 at yahoo.com (Pat) Date: Wed, 10 May 2006 13:18:54 -0700 (PDT) Subject: Problem with copying file from install CD to harddrive in %post Message-ID: <20060510201854.24303.qmail@web32508.mail.mud.yahoo.com> I would like to copy a file from the install CD to the harddrive. The file is located in the / directory of the install disc. (I extracted and reburned the image so it would contain my custom files on the install disc.) BTW, the cdrom I'm using to install the OS is the second cd drive in the system so it's location is at /dev/hdb. Here's the section from my kickstart config's %post which deals with copying the file: /bin/mkdir -p /mnt/cdrom /bin/mount /dev/hdb /mnt/cdrom /bin/cp /mnt/cdrom/custom.tar.gz /root After the install, that file is not found in my /root directory or any directory on the harddrive for that matter. The rest of the installation followed the instructions from my kickstart file correctly except for this. BTW, if I manually do those commands above after the installation (login as root, etc), the file does copy over correctly. Any clues on what I'm doing wrong? Thanks! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From philipp_subx at redfish-solutions.com Wed May 10 20:48:18 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Wed, 10 May 2006 14:48:18 -0600 Subject: Problem with copying file from install CD to harddrive in %post In-Reply-To: <20060510201854.24303.qmail@web32508.mail.mud.yahoo.com> References: <20060510201854.24303.qmail@web32508.mail.mud.yahoo.com> Message-ID: <44625192.8050407@redfish-solutions.com> Pat wrote: > I would like to copy a file from the install CD to the > harddrive. The file is located in the / directory of > the install disc. (I extracted and reburned the image > so it would contain my custom files on the install > disc.) > > BTW, the cdrom I'm using to install the OS is the > second cd drive in the system so it's location is at > /dev/hdb. Here's the section from my kickstart > config's %post which deals with copying the file: > > /bin/mkdir -p /mnt/cdrom > /bin/mount /dev/hdb /mnt/cdrom > /bin/cp /mnt/cdrom/custom.tar.gz /root > > After the install, that file is not found in my /root > directory or any directory on the harddrive for that > matter. The rest of the installation followed the > instructions from my kickstart file correctly except > for this. > > BTW, if I manually do those commands above after the > installation (login as root, etc), the file does copy > over correctly. > > Any clues on what I'm doing wrong? Thanks! > I'm not sure, but I suspect there might be issues related to the major/minor device numbers being wrong in the chroot'd environment. Maybe. In any case, you could try: %post --nochroot cp /mnt/source/xyzzy /mnt/sysimage/foo/bar/ instead. -Philip From philipp_subx at redfish-solutions.com Wed May 10 22:09:59 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Wed, 10 May 2006 16:09:59 -0600 Subject: Newbie questions about Kickstart In-Reply-To: <44620E24.9080306@redfish-solutions.com> References: <44620E24.9080306@redfish-solutions.com> Message-ID: <446264B7.7050203@redfish-solutions.com> Ok, I'm very confused. I generated an FC5 dvd with the following: %post --nochroot --log=/mnt/sysimage/root/post-install.log ifconfig -a netstat -n -r mount and was surprised that (a) no network interfaces are up, and hence (b) no routes are installed, nor (c) is the DVD still mounted at this point. Is that normal? This would seem to make doing any sort of useful work from within the %post scripting pretty difficult. What am I missing? -Philip From dtroyer+ks at gmail.com Wed May 10 22:38:41 2006 From: dtroyer+ks at gmail.com (Dean Troyer) Date: Wed, 10 May 2006 17:38:41 -0500 Subject: Newbie questions about Kickstart In-Reply-To: <44620E24.9080306@redfish-solutions.com> References: <44620E24.9080306@redfish-solutions.com> Message-ID: <776597aa0605101538x6ad2bef7n1d63c35137c1328a@mail.gmail.com> On 5/10/06, Philip Prindeville wrote: > Hi. > (1) when you specify "ks=cdrom", where does this imply the ks.cfg > file to be? In the top-level directory of the DVD? Yes; it'll look for \ks.cfg. You can also specify the actual device name and a full path to a different file name: ks=cdrom:/ks/hostname.cfg > (3) where does the output of %post get logged? vt3? But not a file? I just send output to /dev/tty3 so it's all there with the other stuff echo "* Executing non-chroot post" >/dev/tty3 > (4) when %post is run, have the repos been created yet? I tried running > yum, as in: > ... > Cannot find a valid baseurl for repo: core > Error: Cannot find a valid baseurl for repo: core This could be because your networking isn't set up or you're running in the chroot %post and don't have access to your install media. dt -- Dean Troyer dtroyer at gmail.com From philipp_subx at redfish-solutions.com Wed May 10 23:05:24 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Wed, 10 May 2006 17:05:24 -0600 Subject: Newbie questions about Kickstart In-Reply-To: <776597aa0605101538x6ad2bef7n1d63c35137c1328a@mail.gmail.com> References: <44620E24.9080306@redfish-solutions.com> <776597aa0605101538x6ad2bef7n1d63c35137c1328a@mail.gmail.com> Message-ID: <446271B4.5000905@redfish-solutions.com> Dean Troyer wrote: > On 5/10/06, Philip Prindeville > wrote: >> Hi. >> (1) when you specify "ks=cdrom", where does this imply the ks.cfg >> file to be? In the top-level directory of the DVD? > > Yes; it'll look for \ks.cfg. You can also specify the actual device > name and a full path to a different file name: > > ks=cdrom:/ks/hostname.cfg > >> (3) where does the output of %post get logged? vt3? But not a file? > > I just send output to /dev/tty3 so it's all there with the other stuff > > echo "* Executing non-chroot post" >/dev/tty3 > >> (4) when %post is run, have the repos been created yet? I tried running >> yum, as in: >> ... >> Cannot find a valid baseurl for repo: core >> Error: Cannot find a valid baseurl for repo: core > > This could be because your networking isn't set up or you're running > in the chroot %post and don't have access to your install media. > > dt > And that's what I didn't understand... Even in a non-chrooted shell, I still don't have access to the DVD (it seems to have been unmounted already) and the networking isn't up... Which is odd, because I have: network --device eth0 --onboot boot --bootproto dhcp in there. At what point does Anaconda unmount the CD/DVD media? Surely not before running %post scripts... -Philip From dtroyer+ks at gmail.com Wed May 10 23:13:16 2006 From: dtroyer+ks at gmail.com (Dean Troyer) Date: Wed, 10 May 2006 18:13:16 -0500 Subject: Newbie questions about Kickstart In-Reply-To: <446271B4.5000905@redfish-solutions.com> References: <44620E24.9080306@redfish-solutions.com> <776597aa0605101538x6ad2bef7n1d63c35137c1328a@mail.gmail.com> <446271B4.5000905@redfish-solutions.com> Message-ID: <776597aa0605101613i68a62baajbfec6daed7b96481@mail.gmail.com> On 5/10/06, Philip Prindeville wrote: > And that's what I didn't understand... Even in a non-chrooted shell, I still > don't have access to the DVD (it seems to have been unmounted already) > and the networking isn't up... Which is odd, because I have: > > network --device eth0 --onboot boot --bootproto dhcp > > in there. At what point does Anaconda unmount the CD/DVD media? > > Surely not before running %post scripts... Again, I don't do installs that way so I don't know...I wonder if you could add a %pre command that saves the DVD mount and let you re-mount it in %post? dt -- Dean Troyer dtroyer at gmail.com From robin-lists at robinbowes.com Wed May 10 23:16:44 2006 From: robin-lists at robinbowes.com (Robin Bowes) Date: Thu, 11 May 2006 00:16:44 +0100 Subject: kickstart Fedora Core 5 / CD+Floppy In-Reply-To: <3d22fc520605091534v3b34649va234dd5516adcf85@mail.gmail.com> References: <3d22fc520605091534v3b34649va234dd5516adcf85@mail.gmail.com> Message-ID: Aldo Foot wrote: > Hello, > > I'm trying to install Fedora Core 5 using a boot cd (boot.iso) and a > kickstart > floppy stored in a floppy drive (ks.cfg). I can do a manual nfs install, > but I'd like > to learn to implement kickstart. > > I've done some browsing but found no references to my particular problem. > > This is what I've done so far: > > [1] created a boot cd with boot.iso. > > [2] created a ks.cfg with kickstart configurator and edited the disk > partition section. > > [3] issued this command to boot using ks.cfg from floppy: > linux ks=floppy:/ks.cfg > > The boot proceeds normally, but the install halts with the following > error: > "The following error was found while parsing your kickstart > configuration" > The following problem occurred in line 31 of the kickstart file: > mount point required for partition" > > line 31 refers to the line "part /boot --fstype ext3 size=200" > > After having read quite a bit about the subject, I cannot see where the > problem might be. > Any ideas what's wrong? I'll give you the equivalent line from my kickstart file. See if you can spot what's wrong: part /boot --fstype ext3 --size=100 --asprimary --ondisk=sda R. From philipp_subx at redfish-solutions.com Wed May 10 23:24:32 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Wed, 10 May 2006 17:24:32 -0600 Subject: Kickstart variables and syntax Message-ID: <44627630.9030808@redfish-solutions.com> Does anyone have a pointer to the document describing FC5 Kickstart files (for instance, the fact that "timezone --isUtc" is now "timezone --utc")? After spending a day and a half wondering why a Kickstart disk made according to the RHEL 9 guidelines was crashing and burning, it occurred to me that certain syntax had changed in a non-backward compatible way. Thanks, -Philip From wwan at sigma-rt.com Thu May 11 02:31:59 2006 From: wwan at sigma-rt.com (Wim Wan) Date: Thu, 11 May 2006 10:31:59 +0800 Subject: How Can I make sure my custom rpm package installed after OS's rpm? Message-ID: <200605111031579372164@sigma-rt.com> Hi all: I user ks.cfg to install a new OS, and I also want install one my own custom rpm? I do like this in ks.cfg: %packages @ Everything MyRpmName //what I use genhdlist/pkgorder/genhdlist process it When I install, I get a error in install.log: error: %post(dbus-0.22-12.EL.2.i386) scriptlet failed, exit status 255 why?how? Wim Wan 2006-05-11 -------------- next part -------------- An HTML attachment was scrubbed... URL: From error27 at gmail.com Thu May 11 07:33:15 2006 From: error27 at gmail.com (Dan Carpenter) Date: Thu, 11 May 2006 00:33:15 -0700 Subject: kickstart Fedora Core 5 / CD+Floppy In-Reply-To: <3d22fc520605091534v3b34649va234dd5516adcf85@mail.gmail.com> References: <3d22fc520605091534v3b34649va234dd5516adcf85@mail.gmail.com> Message-ID: On 5/9/06, Aldo Foot wrote: > > line 31 refers to the line "part /boot --fstype ext3 size=200" > I'm not sure what Robbin is talking about but half you partition lines say "size" instead of "--size". regards, dan carpenter From phr at doc.ic.ac.uk Thu May 11 12:54:40 2006 From: phr at doc.ic.ac.uk (Philip Rowlands) Date: Thu, 11 May 2006 13:54:40 +0100 (BST) Subject: Kickstart variables and syntax In-Reply-To: <44627630.9030808@redfish-solutions.com> References: <44627630.9030808@redfish-solutions.com> Message-ID: On Wed, 10 May 2006, Philip Prindeville wrote: > Does anyone have a pointer to the document describing FC5 > Kickstart files (for instance, the fact that "timezone --isUtc" is now > "timezone --utc")? Kickstart docs can be found in /usr/share/doc/anaconda-*/kickstart-docs.txt which come with the "anaconda" RPM. Cheers, Phil From clumens at redhat.com Thu May 11 14:00:39 2006 From: clumens at redhat.com (Chris Lumens) Date: Thu, 11 May 2006 10:00:39 -0400 Subject: Kickstart variables and syntax In-Reply-To: <44627630.9030808@redfish-solutions.com> References: <44627630.9030808@redfish-solutions.com> Message-ID: <20060511140039.GD2634@exeter.boston.redhat.com> > Does anyone have a pointer to the document describing FC5 > Kickstart files (for instance, the fact that "timezone --isUtc" is now > "timezone --utc")? > > After spending a day and a half wondering why a Kickstart disk > made according to the RHEL 9 guidelines was crashing and burning, > it occurred to me that certain syntax had changed in a non-backward > compatible way. I rewrote kickstart support for FC5, trying to preserve compatibility throughout. It was a whole lot of code, so there are some mistakes. I've corrected several of these, but there are probably still a couple more. If you find anything that used to work in FC4 but does not work any longer in FC5, please file a bug against pykickstart. Additionally, I have marked certain commands and options as deprecated. If these are used, they will put a DeprecationWarning into your anaconda.log file. Please check this file at some point and make sure you're not doing anything that's been deprecated, as these will be removed in the future. Where I found that I wanted to change syntax in the future, this is what I've done. Your old files should still be working. Anything else is a bug. - Chris From clumens at redhat.com Thu May 11 14:02:31 2006 From: clumens at redhat.com (Chris Lumens) Date: Thu, 11 May 2006 10:02:31 -0400 Subject: Newbie questions about Kickstart In-Reply-To: <446264B7.7050203@redfish-solutions.com> References: <44620E24.9080306@redfish-solutions.com> <446264B7.7050203@redfish-solutions.com> Message-ID: <20060511140230.GE2634@exeter.boston.redhat.com> > Ok, I'm very confused. I generated an FC5 dvd with the following: > > %post --nochroot --log=/mnt/sysimage/root/post-install.log > > ifconfig -a > netstat -n -r > mount > > and was surprised that (a) no network interfaces are up, and hence > (b) no routes are installed If you're doing a DVD install, no networking has been set up, since we don't have any need for it. You'll need to configure it yourself. - Chris From philipp_subx at redfish-solutions.com Thu May 11 14:49:23 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Thu, 11 May 2006 08:49:23 -0600 Subject: Newbie questions about Kickstart In-Reply-To: <20060511140230.GE2634@exeter.boston.redhat.com> References: <44620E24.9080306@redfish-solutions.com> <446264B7.7050203@redfish-solutions.com> <20060511140230.GE2634@exeter.boston.redhat.com> Message-ID: <44634EF3.6020706@redfish-solutions.com> Chris Lumens wrote: >>Ok, I'm very confused. I generated an FC5 dvd with the following: >> >>%post --nochroot --log=/mnt/sysimage/root/post-install.log >> >>ifconfig -a >>netstat -n -r >>mount >> >>and was surprised that (a) no network interfaces are up, and hence >>(b) no routes are installed >> >> > >If you're doing a DVD install, no networking has been set up, since we >don't have any need for it. You'll need to configure it yourself. > >- Chris > > That's a leap... The whole point of the %post is so that you can do additional stuff not foreseen... if "network" is configured, perhaps these parameters should be applied as part of setting up the environment before the install happens? -Philip From lunixer at gmail.com Thu May 11 16:54:31 2006 From: lunixer at gmail.com (Aldo Foot) Date: Thu, 11 May 2006 09:54:31 -0700 Subject: test Message-ID: <3d22fc520605110954q70f835b8k3238557ca901b96f@mail.gmail.com> test -------------- next part -------------- An HTML attachment was scrubbed... URL: From patchu1 at yahoo.com Thu May 11 19:24:52 2006 From: patchu1 at yahoo.com (Pat) Date: Thu, 11 May 2006 12:24:52 -0700 (PDT) Subject: Problem with copying file from install CD to harddrive in %post Message-ID: <20060511192452.75943.qmail@web32508.mail.mud.yahoo.com> I tried your suggestion Phillip however /mnt/source was not found. After doing some more digging, I found an old thread which addressed this issue. See 'Install of rpm packages in %post - script' thread at: https://www.redhat.com/archives/kickstart-list/2004-April/thread.html#00024 Here's the section I added which enabled me to copy my files from the install disc. %post --nochroot mkdir -p /mnt/source mount /tmp/cdrom /mnt/source cp /mnt/source/custom.tar.gz /mnt/sysimage/root/ umount /mnt/source Hope this helps someone else out there. Thanks! > I'm not sure, but I suspect there might be issues > related to the major/minor > device numbers being wrong in the chroot'd > environment. Maybe. > > In any case, you could try: > > %post --nochroot > cp /mnt/source/xyzzy /mnt/sysimage/foo/bar/ > > instead. > > -Philip > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From philipp_subx at redfish-solutions.com Thu May 11 19:28:39 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Thu, 11 May 2006 13:28:39 -0600 Subject: Problem with copying file from install CD to harddrive in %post In-Reply-To: <20060511192452.75943.qmail@web32508.mail.mud.yahoo.com> References: <20060511192452.75943.qmail@web32508.mail.mud.yahoo.com> Message-ID: <44639067.7010508@redfish-solutions.com> Actually, this is a larger issue: /mnt/source should remain mounted until after the %post scripts have run. It's a bug that this isn't the case (it used to be in prior versions). See "Newbie questions about Kickstart" on anaconda-devel for more details. -Philip Pat wrote: > I tried your suggestion Phillip however /mnt/source > was not found. After doing some more digging, I found > an old thread which addressed this issue. See 'Install > of rpm packages in %post - script' thread at: > > https://www.redhat.com/archives/kickstart-list/2004-April/thread.html#00024 > > Here's the section I added which enabled me to copy my > files from the install disc. > > %post --nochroot > mkdir -p /mnt/source > mount /tmp/cdrom /mnt/source > cp /mnt/source/custom.tar.gz /mnt/sysimage/root/ > umount /mnt/source > > > Hope this helps someone else out there. Thanks! > > >> I'm not sure, but I suspect there might be issues >> related to the major/minor >> device numbers being wrong in the chroot'd >> environment. Maybe. >> >> In any case, you could try: >> >> %post --nochroot >> cp /mnt/source/xyzzy /mnt/sysimage/foo/bar/ >> >> instead. >> >> -Philip >> >> > > From donaldm314 at gmail.com Fri May 12 12:45:55 2006 From: donaldm314 at gmail.com (Donald Murray, P.Eng.) Date: Fri, 12 May 2006 06:45:55 -0600 Subject: Newbie questions about Kickstart In-Reply-To: <44620E24.9080306@redfish-solutions.com> References: <44620E24.9080306@redfish-solutions.com> Message-ID: <12984bb00605120545o367bc2f7t5fc88880445c2c81@mail.gmail.com> On 5/10/06, Philip Prindeville wrote: *SNIP* > > (3) where does the output of %post get logged? vt3? But not a file? In my kickstart %post, I do the following: %post ( # Switch to vt 3, so we can watch the sparks fly. chvt 3 # Print shell input lines as they are read. set -v # Do lots of cool things. ) 2>&1 | tee /root/kickstart-post.log # Back to X for the reboot screen. chvt 7 My %post is run in a subshell, and all output is captured in a log file. Because it's piped to tee, we see the same output on the screen. If you are doing text-only installs, you can skip the chvt. From mdehaan at redhat.com Fri May 12 22:02:58 2006 From: mdehaan at redhat.com (Michael DeHaan) Date: Fri, 12 May 2006 18:02:58 -0400 Subject: Announcing cobbler & koan: New provisioning tools for PXE, Xen, and Auto-Kickstart Message-ID: <44650612.1000609@redhat.com> Cobbler is a command line tool for simplified configuration of a boot/provisioning server. It supports provisioning via PXE, Xen (requires libvirt-python), and re-provisioning via "auto-kickstarting". The last two modes require usage of a program called "koan" on the remote system. Koan stands for "kickstart-over-a-network". It interacts with a centralized boot server that has been configured with cobbler. Documentation for each app is contained in the manpages for the respective programs (for now). Both applications are written in Python and are released under the GPL. Comments, questions, and feedback are highly encouraged -- the future direction of this app will assuredly be guided by how people use it and what they like/don't like. I am aiming to address needs of administrators of both small networks and very large several farms, so I am interested in hearing about all sorts of (Linux) deployment use cases. Bug reports (via email for now) and patches are also welcome. A public mercurial server and online documentation are in the works. http://michaeldehaan.net/software/RPMS Michael DeHaan From luoyuhong at gmail.com Sat May 13 12:48:56 2006 From: luoyuhong at gmail.com (Jason Luo) Date: Sat, 13 May 2006 20:48:56 +0800 Subject: Partly install Fedora by kickstart Message-ID: <5fe7a9130605130548v4bd6ad1blbb4aa49055586fc6@mail.gmail.com> Hi, I want to use kickstart to install Linux on my computer, but, I only need some automate install process, other process must be manual, such as: * partition * root password * network config when I use system-config-kickstart to generate a kickstart config file, It require me input a root password, How to avoid it? thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkeating at j2solutions.net Sat May 13 14:29:15 2006 From: jkeating at j2solutions.net (Jesse Keating) Date: Sat, 13 May 2006 10:29:15 -0400 Subject: Partly install Fedora by kickstart In-Reply-To: <5fe7a9130605130548v4bd6ad1blbb4aa49055586fc6@mail.gmail.com> References: <5fe7a9130605130548v4bd6ad1blbb4aa49055586fc6@mail.gmail.com> Message-ID: <1147530555.11744.9.camel@ender> On Sat, 2006-05-13 at 20:48 +0800, Jason Luo wrote: > when I use system-config-kickstart to generate a kickstart config > file, It require me input a root password, How to avoid it? Once the config tool spits out your ks.cfg file, just delete the password line. -- Jesse Keating RHCE (geek.j2solutions.net) Fedora Legacy Team (www.fedoralegacy.org) GPG Public Key (geek.j2solutions.net/jkeating.j2solutions.pub) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From philipp_subx at redfish-solutions.com Sat May 13 16:51:17 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Sat, 13 May 2006 10:51:17 -0600 Subject: Autostep not working? Message-ID: <44660E85.5030901@redfish-solutions.com> Is it my imagination, or does "autostep" not work with "text" (but only "graphical")? -Philip From Ajitabh.Pandey at bds.tv Mon May 15 12:55:20 2006 From: Ajitabh.Pandey at bds.tv (Ajitabh Pandey) Date: Mon, 15 May 2006 13:55:20 +0100 Subject: Textmode kickstart SystemError - pvcreate failed for.... Message-ID: <1147697721.7441.20.camel@localhost.localdomain> Hi, A very strange error in a once functional kickstart file. I get a pretty long error message, last few lines being - SystemError: pvcreate failed for I am attaching my kickstart file. If on this kickstart I comment out the line "text" then the installation is performed in graphical mode and it all works fine. But strange issue is I have done the installation using this kickstart and the only change I have been doing is in the %post section which should not effect the installation at least. install url --url http://intranet.dom.com/rhel4/ lang en_US.UTF-8 langsupport --default en_GB.UTF-8 en_GB.UTF-8 en_US.UTF-8 keyboard uk mouse none text skipx zerombr yes network --device eth0 --bootproto=static --ip 192.168.1.55 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 172.16.200.10,192.168.1.11 --hostname host03 network --device eth1 --bootproto static --ip 192.168.1.56 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 172.16.200.10,192.168.1.11 --hostname host03 rootpw --iscrypted $1$F/BWzbWs$VKczrfEWOCcxSuKYN6URk. firewall --enabled --ssh --http selinux --permissive authconfig --enableshadow --enablemd5 --enablekrb5 --krb5realm=DOM.COM --krb5kdc=msadc01.dom.com:88,msadc02.dom.com:88 --krb5adminserver=msadc01.dom.com:749 timezone --utc Europe/London bootloader --location=mbr clearpart --all --initlabel # The following is the partition information part /boot --fstype ext3 --size=2000 --ondisk=cciss/c0d0 --asprimary part swap --size=8000 --ondisk=cciss/c0d0 --asprimary part swap --size=8000 --ondisk=cciss/c0d0 --asprimary part swap --size=8000 --ondisk=cciss/c0d0 part swap --size=8000 --ondisk=cciss/c0d0 part pv.01 --size=100 --grow --ondisk=cciss/c0d0 volgroup vg_root pv.01 logvol / --fstype ext3 --name=lv_root --vgname=vg_root --size=70000 logvol /usr/local --fstype ext3 --name=lv_usr_local --vgname=vg_root --size=10000 logvol /opt --name=lv_opt --vgname=vg_root --size=10000 logvol /apps --name=lv_apps --vgname=vg_root --size=10000 logvol /var --name=lv_var --vgname=vg_root --size=10000 logvol /var/www --name=lv_www --vgname=vg_root --size=20000 logvol /home --name=lv_home --vgname=vg_root --size=20000 logvol /tmp --name=lv_tmp --vgname=vg_root --size=10000 %packages kernel-smp # mail-server postfix -sendmail -dovecot -sendmail-cf -spamassassin # smb-server samba samba-client -system-config-samba # mysql mysql-server mysql # web-server httpd mod_authz_ldap mod_ssl php php-mysql # editors emacs joe vim-minimal # system-tools sysstat screen net-snmp-utils iptraf # development-tools binutils rcs subversion # Post is run in a subshell and all output is captured in a log file. Because # its piped to tee, we see same output on the screen. %post ( # Switch to vt 3, so we can see what's happening here chvt 3 # Import the GPG keys using which the RHEL packages are signed rpm --import /usr/share/rhn/RPM-GPG-KEY # Create a directory to hold the scripts and move into that mkdir /root/post-install-scripts cd /root/post-install-scripts # Download the post-install scripts /usr/bin/wget http://intranet_server_1.dom.com/rhel4/post-install/prod-common/scripts/post_install_1.sh /usr/bin/wget http://intranet_server_1.dom.com/rhel4/post-install/prod-common/scripts/post_install_2.sh # Assign execute permissions to the scripts /bin/chmod ugo+x *.sh # Execute the scripts ./post_install_1.sh ./post_install_2.sh # Switch on services /sbin/chkconfig psacct on # Process Accounting /sbin/chkconfig httpd on # HTTPD server /sbin/chkconfig mysqld on # MySQL server # Set up ownerships and permissions /bin/chown -R root:root /usr/java /bin/chown -R root:root /usr/local/scripts # Creating the RRD databases /usr/local/scripts/mkrrd.sh # Erasing all the post-install scripts directory rm -rf /root/post-install-scripts ) 2>&1 |tee /root/kickstart-post.log # Switch back to vt 1 so that we can see the reboot screen chvt 1 Regards. -- Ajitabh Pandey| Linux/Solaris Systems Administrator bds - Broadcasting Dataservices Ltd 58 Uxbridge Road | London W5 2ST T: +44 (0)20 8280 2036 E: Ajitabh.Pandey at BDS.TV http://www.bds.tv Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender From dag at wieers.com Mon May 15 13:04:20 2006 From: dag at wieers.com (Dag Wieers) Date: Mon, 15 May 2006 15:04:20 +0200 (CEST) Subject: Textmode kickstart SystemError - pvcreate failed for.... In-Reply-To: <1147697721.7441.20.camel@localhost.localdomain> References: <1147697721.7441.20.camel@localhost.localdomain> Message-ID: On Mon, 15 May 2006, Ajitabh Pandey wrote: > A very strange error in a once functional kickstart file. > > I get a pretty long error message, last few lines being - > > SystemError: pvcreate failed for 0x2a99015878> > > I am attaching my kickstart file. If on this kickstart I comment out the > line "text" then the installation is performed in graphical mode and it > all works fine. But strange issue is I have done the installation using > this kickstart and the only change I have been doing is in the %post > section which should not effect the installation at least. > > > > install > url --url http://intranet.dom.com/rhel4/ > lang en_US.UTF-8 > langsupport --default en_GB.UTF-8 en_GB.UTF-8 en_US.UTF-8 > keyboard uk > mouse none > text > skipx > zerombr yes > network --device eth0 --bootproto=static --ip 192.168.1.55 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 172.16.200.10,192.168.1.11 --hostname host03 > network --device eth1 --bootproto static --ip 192.168.1.56 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 172.16.200.10,192.168.1.11 --hostname host03 > rootpw --iscrypted $1$F/BWzbWs$VKczrfEWOCcxSuKYN6URk. > > firewall --enabled --ssh --http > selinux --permissive > authconfig --enableshadow --enablemd5 --enablekrb5 --krb5realm=DOM.COM --krb5kdc=msadc01.dom.com:88,msadc02.dom.com:88 --krb5adminserver=msadc01.dom.com:749 > timezone --utc Europe/London > bootloader --location=mbr > clearpart --all --initlabel > # The following is the partition information > part /boot --fstype ext3 --size=2000 --ondisk=cciss/c0d0 --asprimary > part swap --size=8000 --ondisk=cciss/c0d0 --asprimary > part swap --size=8000 --ondisk=cciss/c0d0 --asprimary > part swap --size=8000 --ondisk=cciss/c0d0 > part swap --size=8000 --ondisk=cciss/c0d0 > part pv.01 --size=100 --grow --ondisk=cciss/c0d0 > volgroup vg_root pv.01 > logvol / --fstype ext3 --name=lv_root --vgname=vg_root --size=70000 > logvol /usr/local --fstype ext3 --name=lv_usr_local --vgname=vg_root --size=10000 > logvol /opt --name=lv_opt --vgname=vg_root --size=10000 > logvol /apps --name=lv_apps --vgname=vg_root --size=10000 > logvol /var --name=lv_var --vgname=vg_root --size=10000 > logvol /var/www --name=lv_www --vgname=vg_root --size=20000 > logvol /home --name=lv_home --vgname=vg_root --size=20000 > logvol /tmp --name=lv_tmp --vgname=vg_root --size=10000 > > %packages > kernel-smp > > # mail-server > postfix > -sendmail > -dovecot > -sendmail-cf > -spamassassin > > # smb-server > samba > samba-client > -system-config-samba > > # mysql > mysql-server > mysql > > # web-server > httpd > mod_authz_ldap > mod_ssl > php > php-mysql > > # editors > emacs > joe > vim-minimal > > # system-tools > sysstat > screen > net-snmp-utils > iptraf > > # development-tools > binutils > rcs > subversion > > # Post is run in a subshell and all output is captured in a log file. Because > # its piped to tee, we see same output on the screen. > %post > ( > # Switch to vt 3, so we can see what's happening here > chvt 3 > > # Import the GPG keys using which the RHEL packages are signed > rpm --import /usr/share/rhn/RPM-GPG-KEY > > # Create a directory to hold the scripts and move into that > mkdir /root/post-install-scripts > cd /root/post-install-scripts > > # Download the post-install scripts > /usr/bin/wget http://intranet_server_1.dom.com/rhel4/post-install/prod-common/scripts/post_install_1.sh > /usr/bin/wget http://intranet_server_1.dom.com/rhel4/post-install/prod-common/scripts/post_install_2.sh > > # Assign execute permissions to the scripts > /bin/chmod ugo+x *.sh > > # Execute the scripts > ./post_install_1.sh > ./post_install_2.sh > > # Switch on services > /sbin/chkconfig psacct on # Process Accounting > /sbin/chkconfig httpd on # HTTPD server > /sbin/chkconfig mysqld on # MySQL server > > # Set up ownerships and permissions > /bin/chown -R root:root /usr/java > /bin/chown -R root:root /usr/local/scripts > > # Creating the RRD databases > /usr/local/scripts/mkrrd.sh > > # Erasing all the post-install scripts directory > rm -rf /root/post-install-scripts > > ) 2>&1 |tee /root/kickstart-post.log > > # Switch back to vt 1 so that we can see the reboot screen > chvt 1 > I have seen the same problem on HP ProLiant DL580 G2 systems. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=187093 System has been put in production so I can't help debug. Kind regards, -- dag wieers, dag at wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power] From Ajitabh.Pandey at bds.tv Mon May 15 13:18:41 2006 From: Ajitabh.Pandey at bds.tv (Ajitabh Pandey) Date: Mon, 15 May 2006 14:18:41 +0100 Subject: Textmode kickstart SystemError - pvcreate failed for.... In-Reply-To: References: <1147697721.7441.20.camel@localhost.localdomain> Message-ID: <1147699122.7441.26.camel@localhost.localdomain> On Mon, 2006-05-15 at 15:04 +0200, Dag Wieers wrote: > On Mon, 15 May 2006, Ajitabh Pandey wrote: > > > A very strange error in a once functional kickstart file. > > > > I get a pretty long error message, last few lines being - > > > > SystemError: pvcreate failed for > 0x2a99015878> > I have seen the same problem on HP ProLiant DL580 G2 systems. > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=187093 > > System has been put in production so I can't help debug. Mine is a DL585 G2. Also it looks like that since VGs exists from the previous install, pvcreate is failing. Problem is unlike the standard PVCREATE command we cant seem to force the PV creation using -ff -y switches. I can afford to hold my system for a few days. I can upload the dump file to the bug. Just going to get the dump file now. Cheers. -- Ajitabh Pandey| Linux/Solaris Systems Administrator bds - Broadcasting Dataservices Ltd 58 Uxbridge Road | London W5 2ST T: +44 (0)20 8280 2036 E: Ajitabh.Pandey at BDS.TV http://www.bds.tv Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender From clumens at redhat.com Mon May 15 15:36:46 2006 From: clumens at redhat.com (Chris Lumens) Date: Mon, 15 May 2006 11:36:46 -0400 Subject: Autostep not working? In-Reply-To: <44660E85.5030901@redfish-solutions.com> References: <44660E85.5030901@redfish-solutions.com> Message-ID: <20060515153646.GB5387@exeter.boston.redhat.com> > Is it my imagination, or does "autostep" not work with "text" > (but only "graphical")? Can't say I have ever tested this, so it could be broken. We only really use autostep internally for taking screenshots, which doesn't make sense with newt, so it might not just be you. - Chris From katzj at redhat.com Mon May 15 16:51:48 2006 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 15 May 2006 12:51:48 -0400 Subject: Autostep not working? In-Reply-To: <44660E85.5030901@redfish-solutions.com> References: <44660E85.5030901@redfish-solutions.com> Message-ID: <1147711908.8185.6.camel@orodruin.boston.redhat.com> On Sat, 2006-05-13 at 10:51 -0600, Philip Prindeville wrote: > Is it my imagination, or does "autostep" not work with "text" > (but only "graphical")? autostep has always been graphical only (and I believe documented as such). Making it otherwise is somewhere between difficult and impossible Jeremy From philipp_subx at redfish-solutions.com Mon May 15 17:03:27 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Mon, 15 May 2006 11:03:27 -0600 Subject: Autostep not working? In-Reply-To: <1147711908.8185.6.camel@orodruin.boston.redhat.com> References: <44660E85.5030901@redfish-solutions.com> <1147711908.8185.6.camel@orodruin.boston.redhat.com> Message-ID: <4468B45F.4080300@redfish-solutions.com> Jeremy Katz wrote: > On Sat, 2006-05-13 at 10:51 -0600, Philip Prindeville wrote: > >> Is it my imagination, or does "autostep" not work with "text" >> (but only "graphical")? >> > > autostep has always been graphical only (and I believe documented as > such). Making it otherwise is somewhere between difficult and > impossible > > Jeremy > Why? All it does is continue with the supplies values without waiting for the user to enter new values... that's orthogonal to using a GUI or a simple ASCII interface... Besides, not everything has a head or graphics capability. We have some industrial PC's we use as Wifi routers and as VoIP call managers, and they either run in text/VGA mode (with no X server), or else their BIOS uses a serial port as the console (a la Sun). Using text mode autostep would be extremely handy on such machines. -Philip -Philip From philipp_subx at redfish-solutions.com Mon May 15 17:11:46 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Mon, 15 May 2006 11:11:46 -0600 Subject: Textmode kickstart SystemError - pvcreate failed for.... In-Reply-To: References: <1147697721.7441.20.camel@localhost.localdomain> Message-ID: <4468B652.3090208@redfish-solutions.com> Dag Wieers wrote: > On Mon, 15 May 2006, Ajitabh Pandey wrote: > > >> A very strange error in a once functional kickstart file. >> >> I get a pretty long error message, last few lines being - >> >> SystemError: pvcreate failed for > 0x2a99015878> >> >> I am attaching my kickstart file. If on this kickstart I comment out the >> line "text" then the installation is performed in graphical mode and it >> all works fine. But strange issue is I have done the installation using >> this kickstart and the only change I have been doing is in the %post >> section which should not effect the installation at least. >> >> >> >> install >> url --url http://intranet.dom.com/rhel4/ >> lang en_US.UTF-8 >> langsupport --default en_GB.UTF-8 en_GB.UTF-8 en_US.UTF-8 >> keyboard uk >> mouse none >> text >> skipx >> zerombr yes >> network --device eth0 --bootproto=static --ip 192.168.1.55 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 172.16.200.10,192.168.1.11 --hostname host03 >> network --device eth1 --bootproto static --ip 192.168.1.56 --netmask 255.255.0.0 --gateway 192.168.1.254 --nameserver 172.16.200.10,192.168.1.11 --hostname host03 >> rootpw --iscrypted $1$F/BWzbWs$VKczrfEWOCcxSuKYN6URk. >> >> firewall --enabled --ssh --http >> selinux --permissive >> authconfig --enableshadow --enablemd5 --enablekrb5 --krb5realm=DOM.COM --krb5kdc=msadc01.dom.com:88,msadc02.dom.com:88 --krb5adminserver=msadc01.dom.com:749 >> timezone --utc Europe/London >> bootloader --location=mbr >> clearpart --all --initlabel >> # The following is the partition information >> part /boot --fstype ext3 --size=2000 --ondisk=cciss/c0d0 --asprimary >> part swap --size=8000 --ondisk=cciss/c0d0 --asprimary >> part swap --size=8000 --ondisk=cciss/c0d0 --asprimary >> part swap --size=8000 --ondisk=cciss/c0d0 >> part swap --size=8000 --ondisk=cciss/c0d0 >> part pv.01 --size=100 --grow --ondisk=cciss/c0d0 >> volgroup vg_root pv.01 >> logvol / --fstype ext3 --name=lv_root --vgname=vg_root --size=70000 >> logvol /usr/local --fstype ext3 --name=lv_usr_local --vgname=vg_root --size=10000 >> logvol /opt --name=lv_opt --vgname=vg_root --size=10000 >> logvol /apps --name=lv_apps --vgname=vg_root --size=10000 >> logvol /var --name=lv_var --vgname=vg_root --size=10000 >> logvol /var/www --name=lv_www --vgname=vg_root --size=20000 >> logvol /home --name=lv_home --vgname=vg_root --size=20000 >> logvol /tmp --name=lv_tmp --vgname=vg_root --size=10000 >> >> %packages >> kernel-smp >> >> # mail-server >> postfix >> -sendmail >> -dovecot >> -sendmail-cf >> -spamassassin >> >> # smb-server >> samba >> samba-client >> -system-config-samba >> >> # mysql >> mysql-server >> mysql >> >> # web-server >> httpd >> mod_authz_ldap >> mod_ssl >> php >> php-mysql >> >> # editors >> emacs >> joe >> vim-minimal >> >> # system-tools >> sysstat >> screen >> net-snmp-utils >> iptraf >> >> # development-tools >> binutils >> rcs >> subversion >> >> # Post is run in a subshell and all output is captured in a log file. Because >> # its piped to tee, we see same output on the screen. >> %post >> ( >> # Switch to vt 3, so we can see what's happening here >> chvt 3 >> >> # Import the GPG keys using which the RHEL packages are signed >> rpm --import /usr/share/rhn/RPM-GPG-KEY >> >> # Create a directory to hold the scripts and move into that >> mkdir /root/post-install-scripts >> cd /root/post-install-scripts >> >> # Download the post-install scripts >> /usr/bin/wget http://intranet_server_1.dom.com/rhel4/post-install/prod-common/scripts/post_install_1.sh >> /usr/bin/wget http://intranet_server_1.dom.com/rhel4/post-install/prod-common/scripts/post_install_2.sh >> >> # Assign execute permissions to the scripts >> /bin/chmod ugo+x *.sh >> >> # Execute the scripts >> ./post_install_1.sh >> ./post_install_2.sh >> >> # Switch on services >> /sbin/chkconfig psacct on # Process Accounting >> /sbin/chkconfig httpd on # HTTPD server >> /sbin/chkconfig mysqld on # MySQL server >> >> # Set up ownerships and permissions >> /bin/chown -R root:root /usr/java >> /bin/chown -R root:root /usr/local/scripts >> >> # Creating the RRD databases >> /usr/local/scripts/mkrrd.sh >> >> Unrelated, but... Don't you need to "cd /" or "cd" to get out of the cwd before you try to delete it? >> # Erasing all the post-install scripts directory >> rm -rf /root/post-install-scripts >> >> ) 2>&1 |tee /root/kickstart-post.log >> >> # Switch back to vt 1 so that we can see the reboot screen >> chvt 1 >> >> > > I have seen the same problem on HP ProLiant DL580 G2 systems. > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=187093 > > System has been put in production so I can't help debug. > > Kind regards, > -- dag wieers, dag at wieers.com, http://dag.wieers.com/ -- > [all I want is a warm bed and a kind word and unlimited power] > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From jkeating at j2solutions.net Mon May 15 17:22:43 2006 From: jkeating at j2solutions.net (Jesse Keating) Date: Mon, 15 May 2006 13:22:43 -0400 Subject: Autostep not working? In-Reply-To: <4468B45F.4080300@redfish-solutions.com> References: <44660E85.5030901@redfish-solutions.com> <1147711908.8185.6.camel@orodruin.boston.redhat.com> <4468B45F.4080300@redfish-solutions.com> Message-ID: <1147713763.8578.13.camel@dhcp83-49.boston.redhat.com> On Mon, 2006-05-15 at 11:03 -0600, Philip Prindeville wrote: > > Using text mode autostep would be extremely handy on such machines. Try using the vnc option. -- Jesse Keating RHCE (geek.j2solutions.net) Fedora Legacy Team (www.fedoralegacy.org) GPG Public Key (geek.j2solutions.net/jkeating.j2solutions.pub) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From philipp_subx at redfish-solutions.com Mon May 15 17:47:49 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Mon, 15 May 2006 11:47:49 -0600 Subject: Autostep not working? In-Reply-To: <1147713763.8578.13.camel@dhcp83-49.boston.redhat.com> References: <44660E85.5030901@redfish-solutions.com> <1147711908.8185.6.camel@orodruin.boston.redhat.com> <4468B45F.4080300@redfish-solutions.com> <1147713763.8578.13.camel@dhcp83-49.boston.redhat.com> Message-ID: <4468BEC5.4030205@redfish-solutions.com> Jesse Keating wrote: > On Mon, 2006-05-15 at 11:03 -0600, Philip Prindeville wrote: > >> Using text mode autostep would be extremely handy on such machines. >> > > Try using the vnc option. > > The network isn't brought up by default if you're doing a CDROM install, right? -Philip From katzj at redhat.com Mon May 15 18:21:17 2006 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 15 May 2006 14:21:17 -0400 Subject: Autostep not working? In-Reply-To: <4468BEC5.4030205@redfish-solutions.com> References: <44660E85.5030901@redfish-solutions.com> <1147711908.8185.6.camel@orodruin.boston.redhat.com> <4468B45F.4080300@redfish-solutions.com> <1147713763.8578.13.camel@dhcp83-49.boston.redhat.com> <4468BEC5.4030205@redfish-solutions.com> Message-ID: <1147717277.3575.0.camel@aglarond.local> On Mon, 2006-05-15 at 11:47 -0600, Philip Prindeville wrote: > Jesse Keating wrote: > > On Mon, 2006-05-15 at 11:03 -0600, Philip Prindeville wrote: > >> Using text mode autostep would be extremely handy on such machines. > >> > > Try using the vnc option. > > > The network isn't brought up by default if you're doing a CDROM install, > right? It should get brought up if you say you want vnc to be used Jeremy From katzj at redhat.com Mon May 15 18:22:48 2006 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 15 May 2006 14:22:48 -0400 Subject: Autostep not working? In-Reply-To: <4468B45F.4080300@redfish-solutions.com> References: <44660E85.5030901@redfish-solutions.com> <1147711908.8185.6.camel@orodruin.boston.redhat.com> <4468B45F.4080300@redfish-solutions.com> Message-ID: <1147717368.3575.3.camel@aglarond.local> On Mon, 2006-05-15 at 11:03 -0600, Philip Prindeville wrote: > Jeremy Katz wrote: > > On Sat, 2006-05-13 at 10:51 -0600, Philip Prindeville wrote: > > > >> Is it my imagination, or does "autostep" not work with "text" > >> (but only "graphical")? > >> > > autostep has always been graphical only (and I believe documented as > > such). Making it otherwise is somewhere between difficult and > > impossible > > Why? All it does is continue with the supplies values without waiting > for the user to enter new values... that's orthogonal to using a GUI or > a simple ASCII interface... Because there's no way to tell the underlying toolkit "press this button now" with the text-mode interface. But in the case you're trying to achieve, why do you even need or want autostep? Really... it's handy for debugging that screens "look" right (especially in different languages), but for actual automated installs, what are you gaining by having steps that take no time pop up and wait on the screen? Jeremy From tibbs at math.uh.edu Mon May 15 18:34:50 2006 From: tibbs at math.uh.edu (Jason L Tibbitts III) Date: Mon, 15 May 2006 13:34:50 -0500 Subject: Fixing x86_64 xvnc crashes Message-ID: Has anyone had any luck working around the fact that xvnc segfaults instantly on x86_64? It kind of makes it tough to do remote installs. I noticed an xvnc update; has anyone tried rebuilding the install images with it? - J< From philipp_subx at redfish-solutions.com Mon May 15 19:03:03 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Mon, 15 May 2006 13:03:03 -0600 Subject: Autostep not working? In-Reply-To: <1147717368.3575.3.camel@aglarond.local> References: <44660E85.5030901@redfish-solutions.com> <1147711908.8185.6.camel@orodruin.boston.redhat.com> <4468B45F.4080300@redfish-solutions.com> <1147717368.3575.3.camel@aglarond.local> Message-ID: <4468D067.3080304@redfish-solutions.com> Jeremy Katz wrote: > On Mon, 2006-05-15 at 11:03 -0600, Philip Prindeville wrote: > >> Jeremy Katz wrote: >> >>> On Sat, 2006-05-13 at 10:51 -0600, Philip Prindeville wrote: >>> >>> >>>> Is it my imagination, or does "autostep" not work with "text" >>>> (but only "graphical")? >>>> >>>> >>> autostep has always been graphical only (and I believe documented as >>> such). Making it otherwise is somewhere between difficult and >>> impossible >>> >> Why? All it does is continue with the supplies values without waiting >> for the user to enter new values... that's orthogonal to using a GUI or >> a simple ASCII interface... >> > > Because there's no way to tell the underlying toolkit "press this button > now" with the text-mode interface. > > But in the case you're trying to achieve, why do you even need or want > autostep? Really... it's handy for debugging that screens "look" right > (especially in different languages), but for actual automated installs, > what are you gaining by having steps that take no time pop up and wait > on the screen? > > Jeremy > As opposed to what? There's "interactive", and there's "autostep", right? If you're using "text" mode, there's no way to get an unattended install that I can think of... -Philip From katzj at redhat.com Mon May 15 19:16:57 2006 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 15 May 2006 15:16:57 -0400 Subject: Autostep not working? In-Reply-To: <4468D067.3080304@redfish-solutions.com> References: <44660E85.5030901@redfish-solutions.com> <1147711908.8185.6.camel@orodruin.boston.redhat.com> <4468B45F.4080300@redfish-solutions.com> <1147717368.3575.3.camel@aglarond.local> <4468D067.3080304@redfish-solutions.com> Message-ID: <1147720617.3575.13.camel@aglarond.local> On Mon, 2006-05-15 at 13:03 -0600, Philip Prindeville wrote: > Jeremy Katz wrote: > > On Mon, 2006-05-15 at 11:03 -0600, Philip Prindeville wrote: > >> Jeremy Katz wrote: > >>> On Sat, 2006-05-13 at 10:51 -0600, Philip Prindeville wrote: > >>>> Is it my imagination, or does "autostep" not work with "text" > >>>> (but only "graphical")? > >>>> > >>> autostep has always been graphical only (and I believe documented as > >>> such). Making it otherwise is somewhere between difficult and > >>> impossible > >>> > >> Why? All it does is continue with the supplies values without waiting > >> for the user to enter new values... that's orthogonal to using a GUI or > >> a simple ASCII interface... > >> > > Because there's no way to tell the underlying toolkit "press this button > > now" with the text-mode interface. > > > > But in the case you're trying to achieve, why do you even need or want > > autostep? Really... it's handy for debugging that screens "look" right > > (especially in different languages), but for actual automated installs, > > what are you gaining by having steps that take no time pop up and wait > > on the screen? > > > As opposed to what? There's "interactive", and there's "autostep", right? > > If you're using "text" mode, there's no way to get an unattended install > that I can think of... There's normal kickstart. It goes through and will prompt for missing information, but otherwise do an automated install. On top of that are two additional modes. "interactive" mode will stop on screens and allow you to modify/confirm the information provided in the kickstart config. Note that there are some weird caveats that make this different from a normal interactive installation. Then, there is "autostep" mode which takes the information in the kickstart config and actually goes through the UI steps in graphical mode pausing on each. It largely exists to allow automatic screenshot'ing to occur. Note that with the advent of tools such as dogtail, autostep will probably go away at some point in the not too far future. Jeremy From philipp_subx at redfish-solutions.com Mon May 15 20:46:47 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Mon, 15 May 2006 14:46:47 -0600 Subject: Autostep not working? In-Reply-To: <1147720617.3575.13.camel@aglarond.local> References: <44660E85.5030901@redfish-solutions.com> <1147711908.8185.6.camel@orodruin.boston.redhat.com> <4468B45F.4080300@redfish-solutions.com> <1147717368.3575.3.camel@aglarond.local> <4468D067.3080304@redfish-solutions.com> <1147720617.3575.13.camel@aglarond.local> Message-ID: <4468E8B7.1010107@redfish-solutions.com> Jeremy Katz wrote: > On Mon, 2006-05-15 at 13:03 -0600, Philip Prindeville wrote: > >> Jeremy Katz wrote: >> >>> On Mon, 2006-05-15 at 11:03 -0600, Philip Prindeville wrote: >>> >>>> Jeremy Katz wrote: >>>> >>>>> On Sat, 2006-05-13 at 10:51 -0600, Philip Prindeville wrote: >>>>> >>>>>> Is it my imagination, or does "autostep" not work with "text" >>>>>> (but only "graphical")? >>>>>> >>>>>> >>>>> autostep has always been graphical only (and I believe documented as >>>>> such). Making it otherwise is somewhere between difficult and >>>>> impossible >>>>> >>>>> >>>> Why? All it does is continue with the supplies values without waiting >>>> for the user to enter new values... that's orthogonal to using a GUI or >>>> a simple ASCII interface... >>>> >>>> >>> Because there's no way to tell the underlying toolkit "press this button >>> now" with the text-mode interface. >>> >>> But in the case you're trying to achieve, why do you even need or want >>> autostep? Really... it's handy for debugging that screens "look" right >>> (especially in different languages), but for actual automated installs, >>> what are you gaining by having steps that take no time pop up and wait >>> on the screen? >>> >>> >> As opposed to what? There's "interactive", and there's "autostep", right? >> >> If you're using "text" mode, there's no way to get an unattended install >> that I can think of... >> > > There's normal kickstart. It goes through and will prompt for missing > information, but otherwise do an automated install. > > On top of that are two additional modes. > > "interactive" mode will stop on screens and allow you to modify/confirm > the information provided in the kickstart config. Note that there are > some weird caveats that make this different from a normal interactive > installation. > > Then, there is "autostep" mode which takes the information in the > kickstart config and actually goes through the UI steps in graphical > mode pausing on each. It largely exists to allow automatic > screenshot'ing to occur. Note that with the advent of tools such as > dogtail, autostep will probably go away at some point in the not too far > future. > > Jeremy > Ah, ok. Good to know. The kickstart docs don't make it that clear... I was assuming that it was either interactive or autostep... -Philip From philipp_subx at redfish-solutions.com Mon May 15 20:50:10 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Mon, 15 May 2006 14:50:10 -0600 Subject: Various python blow-outs Message-ID: <4468E982.3070006@redfish-solutions.com> I'm seeing a couple of error messages (some of which are easier to capture than others, which have to be retyped on another computer)... One of which is (from firstboot.*): Traceback (most recent call last): File "/usr/share/firstboot/firstbootWindow.py", line 468, in loadModules vbox, pix, title = module.launch() File "/usr/share/firstboot/modules/networking.py", line 94, in launch self.updateLabels() File "/usr/share/firstboot/modules/networking.py", line 122, in updateLabels if string.strip(tokens[0]) == "alias" and string.strip(tokens[1][:3]) == "eth": IndexError: list index out of range It doesn't say which line it's on when this happens. My /etc/modprobe.conf file looks like: alias eth0 tg3 # turn off IPv6 alias net-pf-10 off alias ipv6 off # needed for wireless card alias ath0 ath_pci # tell the Radeon drivers to work with DRM options radeon allow_r300=1 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 Any ideas? Is this a known issue? I'll try to dig out the other message I'm seeing... -Philip From philipp_subx at redfish-solutions.com Mon May 15 21:07:37 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Mon, 15 May 2006 15:07:37 -0600 Subject: Xconfig not taking Message-ID: <4468ED99.2000306@redfish-solutions.com> Well, I imaged an installer DVD with the following in my ks.cfg file: # X Window System configuration information xconfig --driver "radeon" --videoram 32768 --resolution 1400x1050 --depth 24 --startxonboot --defaultdesktop gnome # System monitor monitor --noprobe --monitor "LCD Panel 1400x1050" but instead I'm seeing in /root/anaconda-ks.cfg: xconfig --driver "radeon" --videoram 32768 --resolution 800x600 --depth 24 --startxonboot --defaultdesktop gnome monitor --hsync 31.5-90 --vsync 59-75 no idea why. This is on a laptop (a Compaq nc6000). The rest of the config seems to be taking just fine. This is with FC5. Any ideas? Oh, minor note... I have: cat >>/etc/modprobe.conf <<__EOF__ options radeon allow_r300=1 __EOF__ in my %post script (the chroot'd one)... Does that need to be done earlier, as in the %pre script? I don't even know if the /etc/modprobe.conf file will be present on the /mnt/sysimage/ filesystem at that point... -Philip From clumens at redhat.com Mon May 15 21:15:38 2006 From: clumens at redhat.com (Chris Lumens) Date: Mon, 15 May 2006 17:15:38 -0400 Subject: Various python blow-outs In-Reply-To: <4468E982.3070006@redfish-solutions.com> References: <4468E982.3070006@redfish-solutions.com> Message-ID: <20060515211538.GE5387@exeter.boston.redhat.com> > Traceback (most recent call last): > File "/usr/share/firstboot/firstbootWindow.py", line 468, in loadModules > vbox, pix, title = module.launch() > File "/usr/share/firstboot/modules/networking.py", line 94, in launch > self.updateLabels() > File "/usr/share/firstboot/modules/networking.py", line 122, in > updateLabels > if string.strip(tokens[0]) == "alias" and string.strip(tokens[1][:3]) == > "eth": > IndexError: list index out of range File a bug against firstboot, including your modules.conf (or whatever it's called anymore) and a description of whatever networking hardware you've got in the computer. - Chris From Ajitabh.Pandey at bds.tv Tue May 16 08:51:03 2006 From: Ajitabh.Pandey at bds.tv (Ajitabh Pandey) Date: Tue, 16 May 2006 09:51:03 +0100 Subject: Textmode kickstart SystemError - pvcreate failed for.... In-Reply-To: <4468B652.3090208@redfish-solutions.com> References: <1147697721.7441.20.camel@localhost.localdomain> <4468B652.3090208@redfish-solutions.com> Message-ID: <1147769464.7441.30.camel@localhost.localdomain> On Mon, 2006-05-15 at 11:11 -0600, Philip Prindeville wrote: > Dag Wieers wrote: > > On Mon, 15 May 2006, Ajitabh Pandey wrote: > Unrelated, but... > > Don't you need to "cd /" or "cd" to get out of the cwd before you > try to delete it? > > >> # Erasing all the post-install scripts directory > >> rm -rf /root/post-install-scripts :-O Dead right. Fixed it now. Regards. -- Ajitabh Pandey| Linux/Solaris Systems Administrator bds - Broadcasting Dataservices Ltd 58 Uxbridge Road | London W5 2ST T: +44 (0)20 8280 2036 E: Ajitabh.Pandey at BDS.TV http://www.bds.tv Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender From teng at dataway.com Tue May 16 20:01:35 2006 From: teng at dataway.com (Tedman Eng) Date: Tue, 16 May 2006 13:01:35 -0700 Subject: Autostep not working? Message-ID: <37ED92F9890FAF4BB947613C66FF8B1A08BB2DA1@dw-mail.dataway.com> > -----Original Message----- > From: Philip Prindeville [mailto:philipp_subx at redfish-solutions.com] > Sent: Monday, May 15, 2006 1:47 PM > To: Discussion list about Kickstart > Subject: Re: Autostep not working? > > Ah, ok. Good to know. The kickstart docs don't make it that > clear... > I was > assuming that it was either interactive or autostep... > > -Philip This is documented in the manual. Please read it more thorougly. Most of the answers to your questions to this mailing list are already covered in the the manual. http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s 1-kickstart2-file.html "Omitting any required item results in the installation program prompting the user for an answer to the related item, just as the user would be prompted during a typical installation. Once the answer is given, the installation continues unattended (unless it finds another missing item)." http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s 1-kickstart2-options.html autostep (optional) Similar to interactive except it goes to the next screen for you. IT IS USED MOSTLY FOR DEBUGGING. From philipp_subx at redfish-solutions.com Wed May 17 06:10:44 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Wed, 17 May 2006 00:10:44 -0600 Subject: Crashing on missing network adapters Message-ID: <446ABE64.3040001@redfish-solutions.com> Ok, I'm having a hard time with something (happens to me a lot). I have a ks.cfg file (on a custom installer DVD) that looks like: ... network --device eth0 --onboot yes --bootproto dhcp network --device ath0 --onboot no --bootproto dhcp ... For a variety of computers, some of which have a wireless PCMCIA card and some of which don't. Or might have, on a transient basis. I tried to install on a computer without such a card, figuring that it would just prep the /etc/sysconfig/network-scripts/ifcfg-ath0 interface and leave it at that. Well, no such luck. It failed the install and I had to reboot the install... take out the line from the DVD image (burn a new DVD, etc) and retry. Is this a little overly brittle? It seems to me that the absence of a network adapter (especially one that isn't enabled at boot-time by default!) isn't a critical/fatal issue. What am I missing? -Philip From abarrow at enpocket.com Wed May 17 08:35:43 2006 From: abarrow at enpocket.com (Alan Barrow) Date: Wed, 17 May 2006 09:35:43 +0100 Subject: Crashing on missing network adapters In-Reply-To: <446ABE64.3040001@redfish-solutions.com> References: <446ABE64.3040001@redfish-solutions.com> Message-ID: <1147854943.13883.5.camel@ops.london.enpocket.co.uk> The hardware is missing :) How about not specifying the network, then the install will throw up the network config screen, select [*] dhcp and you are off, it will not display if you do not have the hardware inplace at the time. After the install kudzu will pick up the pcmcia adapter when it is inserted. Otherwise build 2 DVD's. One without networking and one without. Cheers Alan On Wed, 2006-05-17 at 00:10 -0600, Philip Prindeville wrote: > Ok, I'm having a hard time with something (happens to me a lot). > > I have a ks.cfg file (on a custom installer DVD) that looks like: > > ... > network --device eth0 --onboot yes --bootproto dhcp > network --device ath0 --onboot no --bootproto dhcp > ... > > For a variety of computers, some of which have a wireless PCMCIA > card and some of which don't. Or might have, on a transient basis. > > I tried to install on a computer without such a card, figuring that it > would just prep the /etc/sysconfig/network-scripts/ifcfg-ath0 interface > and leave it at that. > > Well, no such luck. It failed the install and I had to reboot the > install... > take out the line from the DVD image (burn a new DVD, etc) and > retry. > > Is this a little overly brittle? It seems to me that the absence of a > network adapter (especially one that isn't enabled at boot-time by > default!) isn't a critical/fatal issue. > > What am I missing? > > -Philip > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From anaconda at maisondubonheur.com Wed May 17 09:14:04 2006 From: anaconda at maisondubonheur.com (Alain TAUCH) Date: Wed, 17 May 2006 11:14:04 +0200 Subject: Crashing on missing network adapters In-Reply-To: <1147854943.13883.5.camel@ops.london.enpocket.co.uk> References: <446ABE64.3040001@redfish-solutions.com> <1147854943.13883.5.camel@ops.london.enpocket.co.uk> Message-ID: <20060517111404.7017984d.anaconda@maisondubonheur.com> On Wed, 17 May 2006 09:35:43 +0100 Alan Barrow [Alan] wrote: [...] Alan> Otherwise build 2 DVD's. One without networking and one without. Or just one DVD with multiple kickstart files, you can still choose at the boot prompt. But I agree with Philip, it could be nice to have the missing adapters information just dropped, instead of exiting the installation process. -- Alain From philipp_subx at redfish-solutions.com Wed May 17 16:00:55 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Wed, 17 May 2006 10:00:55 -0600 Subject: Crashing on missing network adapters In-Reply-To: <20060517111404.7017984d.anaconda@maisondubonheur.com> References: <446ABE64.3040001@redfish-solutions.com> <1147854943.13883.5.camel@ops.london.enpocket.co.uk> <20060517111404.7017984d.anaconda@maisondubonheur.com> Message-ID: <446B48B7.8030604@redfish-solutions.com> Alain TAUCH wrote: >On Wed, 17 May 2006 09:35:43 +0100 >Alan Barrow [Alan] wrote: > >[...] >Alan> Otherwise build 2 DVD's. One without networking and one without. > >Or just one DVD with multiple kickstart files, you can still choose >at the boot prompt. > >But I agree with Philip, it could be nice to have the missing adapters >information just dropped, instead of exiting the installation process. > > > I'm not saying drop it... I'm saying store it away so that it's there when the NIC's are present... Of course, I noticed that what goes into the ifcfg-ath0 file (or whatever) is a comment with the PCI id information, and the hardware MAC address, both of which would be unavailable... Hmmm... I haven't looked too much at the scripts to see why ${HWADDR} is even being used. -Philip From Ajitabh.Pandey at bds.tv Wed May 17 16:09:55 2006 From: Ajitabh.Pandey at bds.tv (Ajitabh Pandey) Date: Wed, 17 May 2006 17:09:55 +0100 Subject: Crashing on missing network adapters In-Reply-To: <446B48B7.8030604@redfish-solutions.com> References: <446ABE64.3040001@redfish-solutions.com> <1147854943.13883.5.camel@ops.london.enpocket.co.uk> <20060517111404.7017984d.anaconda@maisondubonheur.com> <446B48B7.8030604@redfish-solutions.com> Message-ID: <1147882195.7441.83.camel@localhost.localdomain> On Wed, 2006-05-17 at 10:00 -0600, Philip Prindeville wrote: > Alain TAUCH wrote: > > >On Wed, 17 May 2006 09:35:43 +0100 > >Alan Barrow [Alan] wrote: > > > >[...] > > > >But I agree with Philip, it could be nice to have the missing adapters > >information just dropped, instead of exiting the installation process. > > I'm not saying drop it... I'm saying store it away so that it's there > when the NIC's are present... > Well you can write the NIC configuration scripts in the %post section that's what I do sometime when I am not sure about the networking side. I just create something like this: %post cat >/etc/sysconfig/network-scripts/ifcfg-eth0 <<__EOF__ ... ... ... __EOF__ ofcourse actual parameters instead of ... :-) That's the way I create NIC bonding through kickstart. Regards. -- Ajitabh Pandey| Linux/Solaris Systems Administrator bds - Broadcasting Dataservices Ltd 58 Uxbridge Road | London W5 2ST T: +44 (0)20 8280 2036 E: Ajitabh.Pandey at BDS.TV http://www.bds.tv Broadcasting Dataservices Ltd is a subsidiary of Red Bee Media Group This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Broadcasting Dataservices. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the sender From rspaulding at mail.arc.nasa.gov Wed May 17 16:35:40 2006 From: rspaulding at mail.arc.nasa.gov (Ryan C. Spaulding) Date: Wed, 17 May 2006 09:35:40 -0700 Subject: Custom Install CD ? Message-ID: <5825B0BC-A3DA-47A2-94BF-B65EC155DCE4@mail.arc.nasa.gov> Hi All, Background: We recently built a system that we have to send to another location and I wanted to build an install CD that has all of the packages and extras (custom configs, and scripts) in it so the remote admin can install from it. Redhat 4.0-3 The packages and "extras" do not exceed 500 Megabytes Questions: Can I create my own install CD that will allow the admin to install just from the CD? If this is possible where can I get more information about doing this (URL, search terms, etc)? Thank you, Ryan From philipp_subx at redfish-solutions.com Wed May 17 17:20:34 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Wed, 17 May 2006 11:20:34 -0600 Subject: Crashing on missing network adapters In-Reply-To: <1147882195.7441.83.camel@localhost.localdomain> References: <446ABE64.3040001@redfish-solutions.com> <1147854943.13883.5.camel@ops.london.enpocket.co.uk> <20060517111404.7017984d.anaconda@maisondubonheur.com> <446B48B7.8030604@redfish-solutions.com> <1147882195.7441.83.camel@localhost.localdomain> Message-ID: <446B5B62.6010907@redfish-solutions.com> Ajitabh Pandey wrote: >On Wed, 2006-05-17 at 10:00 -0600, Philip Prindeville wrote: > > >>Alain TAUCH wrote: >> >> >> >>>On Wed, 17 May 2006 09:35:43 +0100 >>>Alan Barrow [Alan] wrote: >>> >>>[...] >>> >>> > > > >>>But I agree with Philip, it could be nice to have the missing adapters >>>information just dropped, instead of exiting the installation process. >>> >>> >>I'm not saying drop it... I'm saying store it away so that it's there >>when the NIC's are present... >> >> >> > > >Well you can write the NIC configuration scripts in the %post section >that's what I do sometime when I am not sure about the networking side. >I just create something like this: > >%post > >cat >/etc/sysconfig/network-scripts/ifcfg-eth0 <<__EOF__ > >... >... >... >__EOF__ > >ofcourse actual parameters instead of ... :-) > >That's the way I create NIC bonding through kickstart. > >Regards. > > The problem, of course, is that it's more complicated than that. There are hard-links that need to be created in /etc/sysconfig/networking/devices/ and /etc/sysconfig/networking/profiles (etc). Since the functionality is already in the "network" command, let's get it to work properly, rather than adding clutter in the form of work-arounds. We could add "--optional" to the network command, to mean that we don't really care if the hardware is present or not... just go ahead and config the parameters anyway. -Philip From chris at instalinux.com Wed May 17 17:39:50 2006 From: chris at instalinux.com (Chris) Date: Wed, 17 May 2006 10:39:50 -0700 Subject: Custom Install CD ? In-Reply-To: <5825B0BC-A3DA-47A2-94BF-B65EC155DCE4@mail.arc.nasa.gov> References: <5825B0BC-A3DA-47A2-94BF-B65EC155DCE4@mail.arc.nasa.gov> Message-ID: <446B5FE6.4030307@instalinux.com> Hi Ryan, I run a site called instalinux.com that may be what you're looking for. Check it out and let me know if I can help in any way. Chris Ryan C. Spaulding wrote: > > Hi All, > > Background: > We recently built a system that we have to send to another location > and I wanted to build an install CD that has all of the packages and > extras (custom configs, and scripts) in it so the remote admin can > install from it. > > Redhat 4.0-3 > The packages and "extras" do not exceed 500 Megabytes > > Questions: > Can I create my own install CD that will allow the admin to install > just from the CD? > > If this is possible where can I get more information about doing this > (URL, search terms, etc)? > > Thank you, > > Ryan > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > > From patchu1 at yahoo.com Wed May 17 22:01:59 2006 From: patchu1 at yahoo.com (Pat) Date: Wed, 17 May 2006 15:01:59 -0700 (PDT) Subject: Problem with getting autologged off in run-once rc.local script Message-ID: <20060517220159.24783.qmail@web32505.mail.mud.yahoo.com> Part of my kickstart install involves creating a custom rc.local file which installs some software when it runs after the first reboot, it deletes itself at the end so it's only run once. My rc.local looks like this (editted for brevity): [CODE] #!/bin/sh clear echo " Post-Install Setup " echo " " rpm -ivh /root/mycustom.rpm #restore original rc.local mv -f /etc/rc.d/rc.local /etc/rc.d/rc.local_custom cp /etc/rc.d/rc.local.orig /etc/rc.d/rc.local echo " Install FINISHED! " echo " Press ENTER to reboot " read X reboot exit 0 [/CODE] The script works fine and installs my rpm properly. The only issue I have is when I leave the computer when this runs, I get autologoffed after awhile. Rather than coming back to see a "Press ENTER to reboot" message awaiting my input, I only see the console login screen (the computer is set to run level 3 BTW). The screen was cleared as well so I don't see any output from my script. I estimate I get logged off after 1-2 hours. I need to check the output from my script so it's important I don't get logged off. In addition, after I enter a login name and press enter at the login prompt, the computer will reboot itself as the reboot command from my rc.local script is still waiting to be executed. How can I turn off this autologoff feature when running this rc.local script? Also when the rc.local is run, does it use the profile of the root user? I checked the shell config files and don't see TMOUT or autologout set. Just to be safe, I tried adding the following lines before read X in my rc.local script but I was still logged out: TMOUT=0 unset autologout Any ideas? Thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From art at caa.is Mon May 22 10:46:29 2006 From: art at caa.is (Arnar =?ISO-8859-1?Q?=DE=F3rarinsson?=) Date: Mon, 22 May 2006 10:46:29 +0000 Subject: Newbie problem with kickstart post section Message-ID: <1148294789.16099.47.camel@black148> Hi I'm having a hard time getting the %post section to do what I want to do, like turning services off and installing RPMs and fonts. chkconfig is not found unless I use /mnt/sysimage/sbin/chkconfig and then it can't find /etc/init.d rpm -qa gives a blank output, like no rpms are installed. I'm guessing that theres something wrong with my environment ;) post section runs as : %post --nochroot --interpreter=/bin/bash --log=/mnt/sysimage/root/post- install.log /sbin/chkconfig --level 345 telnet off /mnt/sysimage/sbin/chkconfig --level 345 telnet off System in RHEL WS 4.3 what am I doing wrong here ???? Regards. -- -- Regards Arnar Thorarinsson Software Programmer / System Administrator Systems Department, Air Traffic Services Phone : +354 569 4289 ------------------------------------------ Icelandic Civil Aviation Administration Reykjavik Airport IS 121 Reykjavik Iceland http://www.caa.is ------------------------------------------ Thessi tolvupostur og vidhengi hans geta innihaldid trunadarupplysingar og er eingongu aetladur theim sem hann er stiladur a. Oheimil medferd tolvuposts thessa og vidhengja hans getur vardad skadabota- og refsiabyrgd samkvaemt logum um fjarskipti. Efni tolvupostsins og vidhengja er a abyrgd sendanda ef thad tengist ekki starfsemi Flugmalastjornar Islands. Ef Thu ert ekki skradur mottakandi og hefur fengid skeytid vegna mistaka, vinsamlegast hafdu strax samband vid sendanda. ------------ This e-mail and its attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. From anaconda at maisondubonheur.com Mon May 22 11:26:25 2006 From: anaconda at maisondubonheur.com (Alain TAUCH) Date: Mon, 22 May 2006 13:26:25 +0200 Subject: Newbie problem with kickstart post section In-Reply-To: <1148294789.16099.47.camel@black148> References: <1148294789.16099.47.camel@black148> Message-ID: <20060522132625.0061c399.anaconda@maisondubonheur.com> On Mon, 22 May 2006 10:46:29 +0000 Arnar ??rarinsson [Arnar] wrote: [...] Arnar> chkconfig is not found unless I use /mnt/sysimage/sbin/chkconfig and Arnar> then it can't find /etc/init.d Arnar> Arnar> rpm -qa gives a blank output, like no rpms are installed. [...] Arnar> post section runs as : Arnar> %post --nochroot --interpreter=/bin/bash --log=/mnt/sysimage/root/post- Arnar> install.log Arnar> Arnar> /sbin/chkconfig --level 345 telnet off Arnar> /mnt/sysimage/sbin/chkconfig --level 345 telnet off [...] Arnar> what am I doing wrong here ???? these commands shoul be run in the chroot. By using %post --nochroot your rpm/chkconfig commands apply to the installer environment, not to the system you are installing. -- Alain From philipp_subx at redfish-solutions.com Mon May 22 14:10:45 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Mon, 22 May 2006 08:10:45 -0600 Subject: Newbie problem with kickstart post section In-Reply-To: <1148294789.16099.47.camel@black148> References: <1148294789.16099.47.camel@black148> Message-ID: <4471C665.6020509@redfish-solutions.com> Arnar ??rarinsson wrote: >Hi >I'm having a hard time getting the %post section to do what I want to >do, like turning services off and installing RPMs and fonts. > >chkconfig is not found unless I use /mnt/sysimage/sbin/chkconfig and >then it can't find /etc/init.d > >rpm -qa gives a blank output, like no rpms are installed. > >I'm guessing that theres something wrong with my environment ;) > >post section runs as : >%post --nochroot --interpreter=/bin/bash --log=/mnt/sysimage/root/post- >install.log > >/sbin/chkconfig --level 345 telnet off >/mnt/sysimage/sbin/chkconfig --level 345 telnet off > > >System in RHEL WS 4.3 > >what am I doing wrong here ???? > >Regards. > > > Either use as chroot'd environment, or else use --root /mnt/sysimage with rpm. -Philip From neeradm at in.niksun.com Tue May 23 17:25:06 2006 From: neeradm at in.niksun.com (Neerad Niksun) Date: Tue, 23 May 2006 10:25:06 -0700 Subject: Newbie problem with kickstart post section References: <1148294789.16099.47.camel@black148> Message-ID: <0c5c01c67e8d$d59a3720$48003c0a@neeradnew> Hey! , nothing seems wrong with your env ;) This is the way is it suppose to wrok. This is how you should understand. All the partitioning/installation and stuff you did while installation went into /mnt/sysimage. This does not come into effect until you reboot the system. mean while you have a ristricted env to do some common stuff while /mnt/sysimage just act as a normal directory. Okay so if you wanna make changes to something , those should go into /mnt/sysimage ... respective files. Let me give you an example. I needed to create a user in my post section. So this is what i did. cp -f /mnt/sysimage/etc/passwd /etc/passwd cp -f /mnt/sysimage/etc/group /etc/group cp -f /mnt/sysimage/etc/shadow /etc/shadow /mnt/sysimage/usr/sbin/useradd -d -s /bin/bash -g -G , ..... cp -f /etc/passwd /mnt/sysimage/etc/passwd cp -f /etc/group /mnt/sysimage/etc/group cp -f /etc/shadow /mnt/sysimage/etc/shadow Also if you want to install packages there are two ways. 1) Include it in comps.xml and hdlist 2) In post section as described under. mkdir /tmp/cd mount /tmp/cdrom /tmp/cd /mnt/sysimage/bin/rpm -i /tmp/cdrom /tmp/cd/ Hope this helps. Neerad Mittal Lead Software Engineer ----- Original Message ----- From: "Arnar ??rarinsson" To: Sent: Monday, May 22, 2006 3:46 AM Subject: Newbie problem with kickstart post section > Hi > I'm having a hard time getting the %post section to do what I want to > do, like turning services off and installing RPMs and fonts. > > chkconfig is not found unless I use /mnt/sysimage/sbin/chkconfig and > then it can't find /etc/init.d > > rpm -qa gives a blank output, like no rpms are installed. > > I'm guessing that theres something wrong with my environment ;) > > post section runs as : > %post --nochroot --interpreter=/bin/bash --log=/mnt/sysimage/root/post- > install.log > > /sbin/chkconfig --level 345 telnet off > /mnt/sysimage/sbin/chkconfig --level 345 telnet off > > > System in RHEL WS 4.3 > > what am I doing wrong here ???? > > Regards. > > -- > -- > Regards > Arnar Thorarinsson > > Software Programmer / System Administrator > Systems Department, Air Traffic Services > Phone : +354 569 4289 > ------------------------------------------ > Icelandic Civil Aviation Administration > Reykjavik Airport > IS 121 Reykjavik > Iceland > http://www.caa.is > ------------------------------------------ > > > Thessi tolvupostur og vidhengi hans geta innihaldid > trunadarupplysingar og er eingongu aetladur theim sem hann er > stiladur a. > Oheimil medferd tolvuposts thessa og vidhengja hans getur vardad > skadabota- og refsiabyrgd samkvaemt logum um fjarskipti. Efni > tolvupostsins og vidhengja er a abyrgd sendanda ef thad tengist > ekki starfsemi Flugmalastjornar Islands. Ef Thu ert ekki skradur > mottakandi og hefur fengid skeytid vegna mistaka, vinsamlegast > hafdu strax samband vid sendanda. > > ------------ > > > This e-mail and its attachments is intended only for the person or > entity to which it is addressed and may contain confidential > and/or privileged material. Any review, retransmission, > dissemination or other use of, or taking of any action in > reliance upon, this information by persons or entities other than > the intended recipient is prohibited. > If you received this in error, please contact the sender and > delete the material from any computer. > > > From anaconda at maisondubonheur.com Tue May 23 08:26:05 2006 From: anaconda at maisondubonheur.com (Alain TAUCH) Date: Tue, 23 May 2006 10:26:05 +0200 Subject: Newbie problem with kickstart post section In-Reply-To: <0c5c01c67e8d$d59a3720$48003c0a@neeradnew> References: <1148294789.16099.47.camel@black148> <0c5c01c67e8d$d59a3720$48003c0a@neeradnew> Message-ID: <20060523102605.0fb22113.anaconda@maisondubonheur.com> On Tue, 23 May 2006 10:25:06 -0700 Neerad Niksun [Neerad] wrote: [...] Neerad> Let me give you an example. Neerad> Neerad> I needed to create a user in my post section. So this is what i did. Neerad> Neerad> cp -f /mnt/sysimage/etc/passwd /etc/passwd Neerad> cp -f /mnt/sysimage/etc/group /etc/group Neerad> cp -f /mnt/sysimage/etc/shadow /etc/shadow Neerad> /mnt/sysimage/usr/sbin/useradd -d -s Neerad> /bin/bash -g -G , ..... Neerad> cp -f /etc/passwd /mnt/sysimage/etc/passwd Neerad> cp -f /etc/group /mnt/sysimage/etc/group Neerad> cp -f /etc/shadow /mnt/sysimage/etc/shadow The chroot is precisely here to avoid such ugly stuff [...] Neerad> 2) In post section as described under. Neerad> Neerad> mkdir /tmp/cd Neerad> mount /tmp/cdrom /tmp/cd Neerad> Neerad> /mnt/sysimage/bin/rpm -i /tmp/cdrom /tmp/cd/ good luck with this. Neerad> Hope this helps. It won't for sure. But it should help you fix your kickstarts ;-) Neerad> Neerad> Neerad Mittal Neerad> Lead Software Engineer -- Alain From art at caa.is Tue May 23 09:21:05 2006 From: art at caa.is (Arnar =?ISO-8859-1?Q?=DE=F3rarinsson?=) Date: Tue, 23 May 2006 09:21:05 +0000 Subject: Newbie problem with kickstart post section In-Reply-To: <20060522132625.0061c399.anaconda@maisondubonheur.com> References: <1148294789.16099.47.camel@black148> <20060522132625.0061c399.anaconda@maisondubonheur.com> Message-ID: <1148376065.16099.65.camel@black148> doohhh Should have figured that out myself... Thanks to all that have replied for your help ! /Arnar On Mon, 2006-05-22 at 13:26 +0200, Alain TAUCH wrote: > On Mon, 22 May 2006 10:46:29 +0000 > Arnar ??rarinsson [Arnar] wrote: > > [...] > Arnar> chkconfig is not found unless I use /mnt/sysimage/sbin/chkconfig and > Arnar> then it can't find /etc/init.d > Arnar> > Arnar> rpm -qa gives a blank output, like no rpms are installed. > [...] > Arnar> post section runs as : > Arnar> %post --nochroot --interpreter=/bin/bash --log=/mnt/sysimage/root/post- > Arnar> install.log > Arnar> > Arnar> /sbin/chkconfig --level 345 telnet off > Arnar> /mnt/sysimage/sbin/chkconfig --level 345 telnet off > [...] > Arnar> what am I doing wrong here ???? > > these commands shoul be run in the chroot. > By using %post --nochroot your rpm/chkconfig commands apply to > the installer environment, not to the system you are installing. > Thessi tolvupostur og vidhengi hans geta innihaldid trunadarupplysingar og er eingongu aetla?ur theim sem hann er stiladur a. Oheimil medferd tolvuposts thessa og vidhengja hans getur vardad skadabota- og refsiabyrgd samkvaemt logum um fjarskipti. Efni tolvupostsins og vi?hengja er a abyrgd sendanda ef thad tengist ekki starfsemi Flugmalastjornar Islands. Ef Thu ert ekki skradur mottakandi og hefur fengid skeytid vegna mistaka, vinsamlegast hafdu strax samband vid sendanda. ------------ This e-mail and its attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. From dazio_r at yahoo.com Tue May 23 14:36:43 2006 From: dazio_r at yahoo.com (rajarshi das) Date: Tue, 23 May 2006 07:36:43 -0700 (PDT) Subject: spaces in root password. Message-ID: <20060523143643.50650.qmail@web33714.mail.mud.yahoo.com> All, In my kickstart configuration file, the root password entry looks like : rootpw r r r I have set the root password to (5 chars) : "r" "r" "r". This configuration file is specified as ks= in lilo.conf. However, the installation fails with the following error msg : "Kickstart.kickstartvalueerror: A single argument is expected rootpw Install exited abnormally" What are the possible reasons for this error ? Thanks, Rajarshi. --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mjburling at gmail.com Tue May 23 14:40:25 2006 From: mjburling at gmail.com (Matthew Burling) Date: Tue, 23 May 2006 15:40:25 +0100 Subject: spaces in root password. In-Reply-To: <20060523143643.50650.qmail@web33714.mail.mud.yahoo.com> References: <20060523143643.50650.qmail@web33714.mail.mud.yahoo.com> Message-ID: Rajarshi, You need to encrypt your password and put that text in the kickstart file. You can do this with htpasswd. Matthew On 5/23/06, rajarshi das wrote: > > All, > > In my kickstart configuration file, the root password entry looks like : > > rootpw r r r > > I have set the root password to (5 chars) : "r" "r" "r". > > This configuration file is specified as ks= in lilo.conf. > > However, the installation fails with the following error msg : > > "Kickstart.kickstartvalueerror: A single argument is expected rootpw > Install exited abnormally" > > What are the possible reasons for this error ? > > Thanks, > Rajarshi. > > > ________________________________ > New Yahoo! Messenger with Voice. Call regular phones from your PC and save > big. > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From neeradm at in.niksun.com Wed May 24 19:22:25 2006 From: neeradm at in.niksun.com (Neerad Niksun) Date: Wed, 24 May 2006 12:22:25 -0700 Subject: Newbie problem with kickstart post section References: <1148294789.16099.47.camel@black148> <0c5c01c67e8d$d59a3720$48003c0a@neeradnew> Message-ID: <0e0b01c67f67$64089180$48003c0a@neeradnew> Hi, Alain, Thanks for pointing all this out. Question. If some commands are required to be run in chroot where as others in nochroot (ie copying the files from install media etc) . What in your openion should be done. You r right , rpm install might not work because of the restrictd env. I will try to figure out some of the ugly stuff for this too. So , is there any possiblity other than including in comps.xml and hdlist , that the rpm can be installed in post section? Neerad ----- Original Message ----- From: "Neerad Niksun" To: ; "Discussion list about Kickstart" Sent: Tuesday, May 23, 2006 10:25 AM Subject: Re: Newbie problem with kickstart post section > Hey! , nothing seems wrong with your env ;) > > This is the way is it suppose to wrok. > > This is how you should understand. > > All the partitioning/installation and stuff you did while installation went > into /mnt/sysimage. This does not come into effect until you reboot the > system. > > mean while you have a ristricted env to do some common stuff while > /mnt/sysimage just act as a normal directory. > > Okay so if you wanna make changes to something , those should go into > /mnt/sysimage ... respective files. > > Let me give you an example. > > I needed to create a user in my post section. So this is what i did. > > cp -f /mnt/sysimage/etc/passwd /etc/passwd > cp -f /mnt/sysimage/etc/group /etc/group > cp -f /mnt/sysimage/etc/shadow /etc/shadow > /mnt/sysimage/usr/sbin/useradd -d -s > /bin/bash -g -G , ..... > cp -f /etc/passwd /mnt/sysimage/etc/passwd > cp -f /etc/group /mnt/sysimage/etc/group > cp -f /etc/shadow /mnt/sysimage/etc/shadow > > Also if you want to install packages there are two ways. > > 1) Include it in comps.xml and hdlist > 2) In post section as described under. > > mkdir /tmp/cd > mount /tmp/cdrom /tmp/cd > > /mnt/sysimage/bin/rpm -i /tmp/cdrom /tmp/cd/ > > > Hope this helps. > > Neerad Mittal > Lead Software Engineer > > ----- Original Message ----- > From: "Arnar ??rarinsson" > To: > Sent: Monday, May 22, 2006 3:46 AM > Subject: Newbie problem with kickstart post section > > > > Hi > > I'm having a hard time getting the %post section to do what I want to > > do, like turning services off and installing RPMs and fonts. > > > > chkconfig is not found unless I use /mnt/sysimage/sbin/chkconfig and > > then it can't find /etc/init.d > > > > rpm -qa gives a blank output, like no rpms are installed. > > > > I'm guessing that theres something wrong with my environment ;) > > > > post section runs as : > > %post --nochroot --interpreter=/bin/bash --log=/mnt/sysimage/root/post- > > install.log > > > > /sbin/chkconfig --level 345 telnet off > > /mnt/sysimage/sbin/chkconfig --level 345 telnet off > > > > > > System in RHEL WS 4.3 > > > > what am I doing wrong here ???? > > > > Regards. > > > > -- > > -- > > Regards > > Arnar Thorarinsson > > > > Software Programmer / System Administrator > > Systems Department, Air Traffic Services > > Phone : +354 569 4289 > > ------------------------------------------ > > Icelandic Civil Aviation Administration > > Reykjavik Airport > > IS 121 Reykjavik > > Iceland > > http://www.caa.is > > ------------------------------------------ > > > > > > Thessi tolvupostur og vidhengi hans geta innihaldid > > trunadarupplysingar og er eingongu aetladur theim sem hann er > > stiladur a. > > Oheimil medferd tolvuposts thessa og vidhengja hans getur vardad > > skadabota- og refsiabyrgd samkvaemt logum um fjarskipti. Efni > > tolvupostsins og vidhengja er a abyrgd sendanda ef thad tengist > > ekki starfsemi Flugmalastjornar Islands. Ef Thu ert ekki skradur > > mottakandi og hefur fengid skeytid vegna mistaka, vinsamlegast > > hafdu strax samband vid sendanda. > > > > ------------ > > > > > > This e-mail and its attachments is intended only for the person or > > entity to which it is addressed and may contain confidential > > and/or privileged material. Any review, retransmission, > > dissemination or other use of, or taking of any action in > > reliance upon, this information by persons or entities other than > > the intended recipient is prohibited. > > If you received this in error, please contact the sender and > > delete the material from any computer. > > > > > > > > > From philipp_subx at redfish-solutions.com Wed May 24 14:17:57 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Wed, 24 May 2006 08:17:57 -0600 Subject: Newbie problem with kickstart post section In-Reply-To: <0e0b01c67f67$64089180$48003c0a@neeradnew> References: <1148294789.16099.47.camel@black148> <0c5c01c67e8d$d59a3720$48003c0a@neeradnew> <0e0b01c67f67$64089180$48003c0a@neeradnew> Message-ID: <44746B15.2000503@redfish-solutions.com> Have a look at: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=192332#c1 -Philip Neerad Niksun wrote: >Hi, Alain, > >Thanks for pointing all this out. > >Question. If some commands are required to be run in chroot where as others >in nochroot (ie copying the files from install media etc) . What in your >openion should be done. > >You r right , rpm install might not work because of the restrictd env. I >will try to figure out some of the ugly stuff for this too. > >So , is there any possiblity other than including in comps.xml and hdlist , >that the rpm can be installed in post section? > >Neerad > >----- Original Message ----- >From: "Neerad Niksun" >To: ; "Discussion list about Kickstart" > >Sent: Tuesday, May 23, 2006 10:25 AM >Subject: Re: Newbie problem with kickstart post section > > > > >>Hey! , nothing seems wrong with your env ;) >> >>This is the way is it suppose to wrok. >> >>This is how you should understand. >> >>All the partitioning/installation and stuff you did while installation >> >> >went > > >>into /mnt/sysimage. This does not come into effect until you reboot the >>system. >> >>mean while you have a ristricted env to do some common stuff while >>/mnt/sysimage just act as a normal directory. >> >>Okay so if you wanna make changes to something , those should go into >>/mnt/sysimage ... respective files. >> >>Let me give you an example. >> >>I needed to create a user in my post section. So this is what i did. >> >>cp -f /mnt/sysimage/etc/passwd /etc/passwd >>cp -f /mnt/sysimage/etc/group /etc/group >>cp -f /mnt/sysimage/etc/shadow /etc/shadow >>/mnt/sysimage/usr/sbin/useradd -d -s >>/bin/bash -g -G , ..... >>cp -f /etc/passwd /mnt/sysimage/etc/passwd >>cp -f /etc/group /mnt/sysimage/etc/group >>cp -f /etc/shadow /mnt/sysimage/etc/shadow >> >>Also if you want to install packages there are two ways. >> >>1) Include it in comps.xml and hdlist >>2) In post section as described under. >> >>mkdir /tmp/cd >>mount /tmp/cdrom /tmp/cd >> >>/mnt/sysimage/bin/rpm -i /tmp/cdrom /tmp/cd/ >> >> >>Hope this helps. >> >>Neerad Mittal >>Lead Software Engineer >> >>----- Original Message ----- >>From: "Arnar ??rarinsson" >>To: >>Sent: Monday, May 22, 2006 3:46 AM >>Subject: Newbie problem with kickstart post section >> >> >> >> >>>Hi >>>I'm having a hard time getting the %post section to do what I want to >>>do, like turning services off and installing RPMs and fonts. >>> >>>chkconfig is not found unless I use /mnt/sysimage/sbin/chkconfig and >>>then it can't find /etc/init.d >>> >>>rpm -qa gives a blank output, like no rpms are installed. >>> >>>I'm guessing that theres something wrong with my environment ;) >>> >>>post section runs as : >>>%post --nochroot --interpreter=/bin/bash --log=/mnt/sysimage/root/post- >>>install.log >>> >>>/sbin/chkconfig --level 345 telnet off >>>/mnt/sysimage/sbin/chkconfig --level 345 telnet off >>> >>> >>>System in RHEL WS 4.3 >>> >>>what am I doing wrong here ???? >>> >>>Regards. >>> >>>-- >>>-- >>>Regards >>>Arnar Thorarinsson >>> >>>Software Programmer / System Administrator >>>Systems Department, Air Traffic Services >>>Phone : +354 569 4289 >>>------------------------------------------ >>>Icelandic Civil Aviation Administration >>>Reykjavik Airport >>>IS 121 Reykjavik >>>Iceland >>>http://www.caa.is >>>------------------------------------------ >>> >>> >>>Thessi tolvupostur og vidhengi hans geta innihaldid >>>trunadarupplysingar og er eingongu aetladur theim sem hann er >>>stiladur a. >>>Oheimil medferd tolvuposts thessa og vidhengja hans getur vardad >>>skadabota- og refsiabyrgd samkvaemt logum um fjarskipti. Efni >>>tolvupostsins og vidhengja er a abyrgd sendanda ef thad tengist >>>ekki starfsemi Flugmalastjornar Islands. Ef Thu ert ekki skradur >>>mottakandi og hefur fengid skeytid vegna mistaka, vinsamlegast >>>hafdu strax samband vid sendanda. >>> >>>------------ >>> >>> >>>This e-mail and its attachments is intended only for the person or >>>entity to which it is addressed and may contain confidential >>>and/or privileged material. Any review, retransmission, >>>dissemination or other use of, or taking of any action in >>>reliance upon, this information by persons or entities other than >>>the intended recipient is prohibited. >>>If you received this in error, please contact the sender and >>>delete the material from any computer. >>> >>> >>> >>> >>> >> >> >> > >_______________________________________________ >Kickstart-list mailing list >Kickstart-list at redhat.com >https://www.redhat.com/mailman/listinfo/kickstart-list > > From Colin.Coe at woodside.com.au Fri May 26 03:36:23 2006 From: Colin.Coe at woodside.com.au (Coe, Colin C.) Date: Fri, 26 May 2006 11:36:23 +0800 Subject: Passing boot params from pxelinux to KickStart Message-ID: <17EBC05307239C4896ED25244F42A8010136796F@permls05.wde.woodside.com.au> Hi all I need pass boot time params from machines booted using PXELinux to KickStart for use within the %pre portion of a kickstart config file. I've googled but not found anything helpful. Any pointers on how to do this? Thanks CC -------------- next part -------------- An HTML attachment was scrubbed... URL: From error27 at gmail.com Fri May 26 04:05:36 2006 From: error27 at gmail.com (Dan Carpenter) Date: Thu, 25 May 2006 21:05:36 -0700 Subject: Passing boot params from pxelinux to KickStart In-Reply-To: <17EBC05307239C4896ED25244F42A8010136796F@permls05.wde.woodside.com.au> References: <17EBC05307239C4896ED25244F42A8010136796F@permls05.wde.woodside.com.au> Message-ID: On 5/25/06, Coe, Colin C. wrote: > I need pass boot time params from machines booted using PXELinux to > KickStart for use within the %pre portion of a kickstart config file. I've > googled but not found anything helpful. Any pointers on how to do this? > They end up in /proc/cmdline http://www.redhat.com/archives/kickstart-list/2005-August/msg00097.html regards, dan carpenter From rmanley at harland.net Fri May 26 04:18:03 2006 From: rmanley at harland.net (rmanley at harland.net) Date: Fri, 26 May 2006 00:18:03 -0400 Subject: Roby Manley/ITD/Harland is out of the office. Message-ID: I will be out of the office starting 05/26/2006 and will not return until 06/13/2006. I will respond to your message when I return. If you need immediate assistance please call the TSC @ 1-877-9-Helper. Regards, Roby The information contained in this electronic mail transmission is intended only for the use of the individual or entity named above and is privileged and confidential. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others. Any dissemination, distribution or copying of this communication other than to the person or entity named above is strictly prohibited. If you have received this communication in error, please immediately delete it from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Colin.Coe at woodside.com.au Fri May 26 05:26:26 2006 From: Colin.Coe at woodside.com.au (Coe, Colin C.) Date: Fri, 26 May 2006 13:26:26 +0800 Subject: Passing boot params from pxelinux to KickStart Message-ID: <17EBC05307239C4896ED25244F42A80101367970@permls05.wde.woodside.com.au> Thanks Dan. Still having issues. This is an extract from my PXE config file. When I put my params on the append line kickstart spat out an error, however, they are ignored on the kernel line. label el3 kernel el3u5_x86_64/vmlinux my_param1 my_param2=1 append ksdevice=eth0 ks=nfs:10.240.34.254:/export/install/el3u5_x86_64/rhel_3x86_64_lws_testi ng.cfg load_ramdisk=1 initrd=el3u5_x86_64/initrd.img ipappend 1 Ideas? Thanks CC -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Dan Carpenter Sent: Friday, 26 May 2006 12:06 PM To: Discussion list about Kickstart Subject: Re: Passing boot params from pxelinux to KickStart On 5/25/06, Coe, Colin C. wrote: > I need pass boot time params from machines booted using PXELinux to > KickStart for use within the %pre portion of a kickstart config file. > I've googled but not found anything helpful. Any pointers on how to > do this? > They end up in /proc/cmdline http://www.redhat.com/archives/kickstart-list/2005-August/msg00097.html regards, dan carpenter _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From jkeating at j2solutions.net Fri May 26 14:01:54 2006 From: jkeating at j2solutions.net (Jesse Keating) Date: Fri, 26 May 2006 10:01:54 -0400 Subject: Passing boot params from pxelinux to KickStart In-Reply-To: <17EBC05307239C4896ED25244F42A80101367970@permls05.wde.woodside.com.au> References: <17EBC05307239C4896ED25244F42A80101367970@permls05.wde.woodside.com.au> Message-ID: <1148652114.9879.0.camel@dhcp83-49.boston.redhat.com> On Fri, 2006-05-26 at 13:26 +0800, Coe, Colin C. wrote: > > label el3 > kernel el3u5_x86_64/vmlinux my_param1 my_param2=1 > append ksdevice=eth0 > ks=nfs:10.240.34.254:/export/install/el3u5_x86_64/rhel_3x86_64_lws_testi > ng.cfg load_ramdisk=1 initrd=el3u5_x86_64/initrd.img > ipappend 1 They need to be on the append line. -- Jesse Keating RHCE (geek.j2solutions.net) Fedora Legacy Team (www.fedoralegacy.org) GPG Public Key (geek.j2solutions.net/jkeating.j2solutions.pub) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From philipp_subx at redfish-solutions.com Sat May 27 17:35:24 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Sat, 27 May 2006 11:35:24 -0600 Subject: Figuring package class Message-ID: <44788DDC.4020209@redfish-solutions.com> Hi. I was trying to come up with a ks.cfg that excluded certain packages but included others that weren't there by default in the package class... for instance, sendmail-cf and -wpa_supplicant, but I can't tell which class they go into (@base-x???). How do you tell? All of this information must be in the .xml.gz files in repodata/ directory... But I can't figure out how to interpret it. Someone care to set me straight? Thanks, -Philip From Paul.Mallasch at Tectura.com Sat May 27 19:44:24 2006 From: Paul.Mallasch at Tectura.com (Mallasch, Paul) Date: Sat, 27 May 2006 12:44:24 -0700 Subject: Figuring package class Message-ID: <5303BDF3F253554E889BE362FA0C604ED12CBE@MAIL1.TecturaCorp.net> Check out comps.xml which can also be found on the distribution. http://rhlinux.redhat.com/anaconda/comps.html P-- -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Philip Prindeville Sent: Saturday, May 27, 2006 10:35 AM To: kickstart-list at redhat.com Subject: Figuring package class Hi. I was trying to come up with a ks.cfg that excluded certain packages but included others that weren't there by default in the package class... for instance, sendmail-cf and -wpa_supplicant, but I can't tell which class they go into (@base-x???). How do you tell? All of this information must be in the .xml.gz files in repodata/ directory... But I can't figure out how to interpret it. Someone care to set me straight? Thanks, -Philip _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From neeradm at in.niksun.com Mon May 29 20:06:02 2006 From: neeradm at in.niksun.com (Neerad Niksun) Date: Mon, 29 May 2006 13:06:02 -0700 Subject: Figuring package class References: <44788DDC.4020209@redfish-solutions.com> Message-ID: <00f401c6835b$4f51a090$48003c0a@neeradnew> comps.xml helps you create your own group. RHEL 4.0 has lots of rpms not present in comps.xml and yet those get installed. This is simply done through hdlist. If a package is listed in hdlist (and not there in any section of comps.xml) it gets installed. Neerad ----- Original Message ----- From: "Philip Prindeville" To: Sent: Saturday, May 27, 2006 10:35 AM Subject: Figuring package class > Hi. > > I was trying to come up with a ks.cfg that excluded certain > packages but included others that weren't there by default > in the package class... for instance, sendmail-cf and -wpa_supplicant, > but I can't tell which class they go into (@base-x???). > > How do you tell? All of this information must be in the .xml.gz > files in repodata/ directory... But I can't figure out how to > interpret it. > > Someone care to set me straight? > > Thanks, > > -Philip > > > From philipp_subx at redfish-solutions.com Tue May 30 20:39:22 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Tue, 30 May 2006 14:39:22 -0600 Subject: Figuring package class In-Reply-To: <00f401c6835b$4f51a090$48003c0a@neeradnew> References: <44788DDC.4020209@redfish-solutions.com> <00f401c6835b$4f51a090$48003c0a@neeradnew> Message-ID: <447CAD7A.1010907@redfish-solutions.com> Ok, and where does hdlist live? I was trying to figure out, for instance, why "apr" gets installed... but can't find any chaining or dependencies. And it's not named explictly in comps.xml or any of the other xml.gz files. -Philip Neerad Niksun wrote: > comps.xml helps you create your own group. > RHEL 4.0 has lots of rpms not present in comps.xml and yet those get > installed. > > This is simply done through hdlist. If a package is listed in hdlist (and > not there in any section of comps.xml) it gets installed. > > Neerad > ----- Original Message ----- > From: "Philip Prindeville" > To: > Sent: Saturday, May 27, 2006 10:35 AM > Subject: Figuring package class > > > >> Hi. >> >> I was trying to come up with a ks.cfg that excluded certain >> packages but included others that weren't there by default >> in the package class... for instance, sendmail-cf and -wpa_supplicant, >> but I can't tell which class they go into (@base-x???). >> >> How do you tell? All of this information must be in the .xml.gz >> files in repodata/ directory... But I can't figure out how to >> interpret it. >> >> Someone care to set me straight? >> >> Thanks, >> >> -Philip >> >> >> >> > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > From philipp_subx at redfish-solutions.com Tue May 30 20:52:38 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Tue, 30 May 2006 14:52:38 -0600 Subject: Configuring wireless adapters Message-ID: <447CB096.6040003@redfish-solutions.com> Hi. I'm a little confused about wireless. I'm trying to build some installer scripts in a ks.cfg file for FC5, for a Dell Lattitude L610. This beast has an Intel 2915ABG wireless NIC. The issue is that the default package set that I configure doesn't include the ATRPMS ipw2200 package that I need to get this detected and running, so it isn't until the %post script that I enable the ATRPMS repository for yum, and start grabbing packages, writing out config files for wpa_supplicant, etc. but by then it's too late for "network --device iwlan0 ..." (or whatever... in this case eth1) to take effect. Since you can't specify --optional on network lines (at least not yet) and preconfigure them in the case of missing drivers or removable (PCMCIA) NIC cards, then I'm not sure what the solution is. I'd like to be able to get the file as: /etc/sysconfig/network-scripts/ifcfg-iwlan0 (or whatever) written out in a semi-automatic way, but I can't figure out how to do that. Note also that I upgrade the kernel in my %post script, and when I fetch packages (including kernel -kmdl packages) for the wireless NIC, they are for the highest numbered version of the OS (that which we will boot into when we complete the install) and not the baseline version (no, I don't want to statically put a replacement kernel version onto the DVD, because it will only be "latest" for a matter of days). What am I missing? -Philip From klaus.steden at thomson.net Tue May 30 21:01:47 2006 From: klaus.steden at thomson.net (Klaus Steden) Date: Tue, 30 May 2006 17:01:47 -0400 Subject: Figuring package class In-Reply-To: <447CAD7A.1010907@redfish-solutions.com> References: <44788DDC.4020209@redfish-solutions.com> <00f401c6835b$4f51a090$48003c0a@neeradnew> <447CAD7A.1010907@redfish-solutions.com> Message-ID: <20060530210147.GJ16481@thomson.net> > Ok, and where does hdlist live? > > I was trying to figure out, for instance, why "apr" gets installed... > but can't find any chaining or dependencies. And it's not named > explictly in comps.xml or any of the other xml.gz files. > hdlist and hdlist2 are in the RedHat/base directory, alongside comps.rpm and comps.xml. If you've added RPMs to your install base and want them to work during installation under anaconda, you'll need to run 'genhdlist'. It's a little complex and a lot annoying, I'm looking forward to the day when anaconda manages packages with YUM. Klaus From shawn at ll.mit.edu Tue May 30 21:09:53 2006 From: shawn at ll.mit.edu (Shawn K. O'Shea) Date: Tue, 30 May 2006 17:09:53 -0400 Subject: Figuring package class In-Reply-To: <20060530210147.GJ16481@thomson.net> References: <44788DDC.4020209@redfish-solutions.com> <00f401c6835b$4f51a090$48003c0a@neeradnew> <447CAD7A.1010907@redfish-solutions.com> <20060530210147.GJ16481@thomson.net> Message-ID: <447CB4A1.8010807@ll.mit.edu> >>I was trying to figure out, for instance, why "apr" gets installed... >>but can't find any chaining or dependencies. And it's not named >>explictly in comps.xml or any of the other xml.gz files. >> >> >> If you have an installed system, you can do a "test remove" of the package to see what packages depend on it: # rpm -q --provides apr libapr-0.so.0 apr = 0.9.4-24.5.c4.1 # rpm -e --test apr error: Failed dependencies: libapr-0.so.0 is needed by (installed) mod_perl-1.99_16-4.centos4.i386 libapr-0.so.0 is needed by (installed) apr-util-0.9.4-21.i386 libapr-0.so.0 is needed by (installed) httpd-2.0.52-22.ent.centos4.i386 apr >= 0.9.4-24.2 is needed by (installed) httpd-2.0.52-22.ent.centos4.i386 -Shawn From philipp_subx at redfish-solutions.com Tue May 30 21:20:54 2006 From: philipp_subx at redfish-solutions.com (Philip Prindeville) Date: Tue, 30 May 2006 15:20:54 -0600 Subject: Figuring package class In-Reply-To: <20060530210147.GJ16481@thomson.net> References: <44788DDC.4020209@redfish-solutions.com> <00f401c6835b$4f51a090$48003c0a@neeradnew> <447CAD7A.1010907@redfish-solutions.com> <20060530210147.GJ16481@thomson.net> Message-ID: <447CB736.5020709@redfish-solutions.com> Klaus Steden wrote: >> Ok, and where does hdlist live? >> >> I was trying to figure out, for instance, why "apr" gets installed... >> but can't find any chaining or dependencies. And it's not named >> explictly in comps.xml or any of the other xml.gz files. >> >> > hdlist and hdlist2 are in the RedHat/base directory, alongside comps.rpm and > comps.xml. > > If you've added RPMs to your install base and want them to work during > installation under anaconda, you'll need to run 'genhdlist'. It's a little > complex and a lot annoying, I'm looking forward to the day when anaconda > manages packages with YUM. > > Klaus > I'm using FC5. There's no such file in the Fedora/base/ directory. -Philip From rspaulding at mail.arc.nasa.gov Wed May 31 16:25:41 2006 From: rspaulding at mail.arc.nasa.gov (Ryan C. Spaulding) Date: Wed, 31 May 2006 09:25:41 -0700 Subject: Figuring package class In-Reply-To: <447CAD7A.1010907@redfish-solutions.com> References: <44788DDC.4020209@redfish-solutions.com> <00f401c6835b$4f51a090$48003c0a@neeradnew> <447CAD7A.1010907@redfish-solutions.com> Message-ID: As a side note if you have subversion installed it requires apr (other then httpd). On May 30, 2006, at May 30, 2006 [1:39 PM], Philip Prindeville wrote: > Ok, and where does hdlist live? > > I was trying to figure out, for instance, why "apr" gets installed... > but can't find any chaining or dependencies. And it's not named > explictly in comps.xml or any of the other xml.gz files. > > -Philip > > > Neerad Niksun wrote: >> comps.xml helps you create your own group. >> RHEL 4.0 has lots of rpms not present in comps.xml and yet those get >> installed. >> >> This is simply done through hdlist. If a package is listed in >> hdlist (and >> not there in any section of comps.xml) it gets installed. >> >> Neerad >> ----- Original Message ----- >> From: "Philip Prindeville" >> To: >> Sent: Saturday, May 27, 2006 10:35 AM >> Subject: Figuring package class >> >> >> >>> Hi. >>> >>> I was trying to come up with a ks.cfg that excluded certain >>> packages but included others that weren't there by default >>> in the package class... for instance, sendmail-cf and - >>> wpa_supplicant, >>> but I can't tell which class they go into (@base-x???). >>> >>> How do you tell? All of this information must be in the .xml.gz >>> files in repodata/ directory... But I can't figure out how to >>> interpret it. >>> >>> Someone care to set me straight? >>> >>> Thanks, >>> >>> -Philip >>> >>> >>> >>> >> >> _______________________________________________ >> 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 bill at wiliweld.com Wed May 31 19:49:50 2006 From: bill at wiliweld.com (Bill Schoolcraft) Date: Wed, 31 May 2006 12:49:50 -0700 (PDT) Subject: [kickstart] Need newer kernel during install(?) Message-ID: Hello Family, I have a kickstart process that has been working for a while and wanted to have a newer kernel install vs the default one for RHEL4 and when I switched (replaced) the kernel-2.6.9-5.EL.i686.rpm with kernel-smp-2.6.9-22.0.1.EL.i686.rpm in the packages directory it complains of course that the former kernel is missing. I can't seem to find where I can implicitly state that version of the kernel. My package list, as I inherited the kickstart engine, has standard pacakage addons and at the top of the package list file, two entries @ Core @ Base plus filenames such as, but not limited to... glibc glibc-common glibc-kernheaders glibc-headers glibc-devel cpp gcc libstdc++ libstdc++ gcc-c++ compat-db and I need to find the syntax to add the following file... kernel-smp-2.6.9-22.0.1.EL.i686.rpm I tried adding a line like this and it did not seem to grab the above mentioned file... kernel-smp Thanks for any consideration to reply to this. -- Bill Schoolcraft | http://wiliweld.com "If your life was full of nothing but sunshine, you would just be a desert." From error27 at gmail.com Wed May 31 22:11:06 2006 From: error27 at gmail.com (Dan Carpenter) Date: Wed, 31 May 2006 15:11:06 -0700 Subject: [kickstart] Need newer kernel during install(?) In-Reply-To: References: Message-ID: On 5/31/06, Bill Schoolcraft wrote: > Hello Family, > > I have a kickstart process that has been working for a while and > wanted to have a newer kernel install vs the default one for RHEL4 > and when I switched (replaced) the > > kernel-2.6.9-5.EL.i686.rpm with > > kernel-smp-2.6.9-22.0.1.EL.i686.rpm It would make more sense to just download the updated ISOs from rhn.. You have to go through the complete rebuild process to swap out packages. To answer your question, on that release the version numbers get added when you run when you run genhdlist --withnumbers. Another easier way would be to just install the new kernel in the %post part of the kickstart. regards, dan carpenter