From mad at comsoft.de Tue Sep 1 13:05:26 2009 From: mad at comsoft.de (mad) Date: Tue, 1 Sep 2009 15:05:26 +0200 Subject: RAID6 support? Message-ID: <200909011505.26185.mad@comsoft.de> Hi! On the page http://fedoraproject.org/wiki/Anaconda/Kickstart it is only possible to configure RAID5. Is it possible to configure RAID6 as well? Thanks in advance, mad From Moray.Henderson at ict.om.org Tue Sep 1 16:53:05 2009 From: Moray.Henderson at ict.om.org (Moray Henderson (ICT)) Date: Tue, 1 Sep 2009 16:53:05 +0000 Subject: SELinux upgrade issue In-Reply-To: <4A980EC8.1090700@redhat.com> References: <211227D58676844E9EFBA3414EC92E88050F35D4F1@QTS-MBXCLSTR1.global.local> <4A980EC8.1090700@redhat.com> Message-ID: <211227D58676844E9EFBA3414EC92E8805110EF646@QTS-MBXCLSTR1.global.local> >-----Original Message----- >From: Daniel J Walsh [mailto:dwalsh at redhat.com] >Sent: 28 August 2009 18:07 >To: Discussion list about Kickstart >Subject: Re: SELinux upgrade issue > >On 08/28/2009 12:22 PM, Moray Henderson (ICT) wrote: >> Just encountered an interesting issue, and wondered if anyone had seen >anything like it before. One of the packages I add to my CentOS-based >build is a custom SELinux policy (FX: screaming, running away). During a >fresh install, it works perfectly: >> >> # grep selinux install.log >> Installing libselinux-1.33.4-5.1.el5.i386 >> Installing libselinux-python-1.33.4-5.1.el5.i386 >> Installing libselinux-utils-1.33.4-5.1.el5.i386 >> Installing selinux-policy-2.4.6-203.el5.noarch >> Installing selinux-policy-targeted-2.4.6-203.el5.noarch >> Installing sls-selinux-policy-1.0-3.sls17.noarch >> Installing selinux-policy-devel-2.4.6-203.el5.noarch >> >> But during an upgrade from CentOS 4, this happens: >> >> # grep selinux /root/upgrade.log >> Upgrading libselinux-1.33.4-5.1.el5.i386 >> Upgrading libselinux-python-1.33.4-5.1.el5.i386 >> Upgrading libselinux-utils-1.33.4-5.1.el5.i386 >> Upgrading selinux-policy-2.4.6-203.el5.noarch >> Upgrading selinux-policy-targeted-2.4.6-203.el5.noarch >> Upgrading sls-selinux-policy-1.0-3.sls17.noarch >> libsemanage.semanage_make_sandbox: Could not copy files to sandbox >/etc/selinux/targeted/modules/tmp. >> /usr/sbin/semodule: Failed on /usr/share/selinux/targeted/sls.pp! >> Upgrading selinux-policy-devel-2.4.6-203.el5.noarch >> warning: /etc/selinux/targeted/policy/policy.18 saved as >/etc/selinux/targeted/policy/policy.18.rpmsave >> >> Once anaconda has finished and is on the "installation complete" screen, >I can switch to Alt-F2 and say >> >> chroot /mnt/sysimage >> /usr/sbin/semodule -i /usr/share/selinux/targeted/sls.pp -s targeted >> >> and now the module installs and loads at the next boot. Any ideas how >to get it to install properly the first time? >> >> >> Moray. >> "To err is human. To purr, feline" >> >I think you want to make sure selinux-policy-targeted post install is >finished before you run your post. > >Something like > >Requires(post): selinux-policy-targeted > I tried that, but it didn't make any difference. There is some kind of timing or transaction issue, because if I leave my sls-selinux-policy module out of the automated upgrade, and install it manually from the Alt-F2 screen before rebooting, I don't see the libsemanage.semanage_make_sandbox error. On the other hand, the file contexts that are supposed to be updated when the policy is loaded are left with their old values. Actually, it's more complicated than that: the anaconda environment has my policy loaded already, so that the files are installed with their correct contexts. During a fresh install, this policy seems to be unloaded when selinux-policy-targeted is installed in the chroot, then reloaded when its rpm is installed. During an upgrade, it fails to load when its rpm is installed. At this point in the load there must be a discrepancy in the chroot between the control files in /etc/selinux and the actual modules that are loaded, and it feels as if this is what is causing the problem. I'll keep experimenting here, too. From clintonlee.taylor at gmail.com Wed Sep 2 15:46:15 2009 From: clintonlee.taylor at gmail.com (Clinton Lee Taylor) Date: Wed, 2 Sep 2009 17:46:15 +0200 Subject: Configure Kickstart with a degraded RAID1 ... Message-ID: Greetings ... > Has anyone successfully configured their system with Kickstart to have a degraded RAID1 array? Not that I'm aware of ... I have asked similar questions, with ideas of converting from none-RAID to RAID1 on both this list and Anaconda-devel-list, but the closest I have come, is a suggestion to install with a single device RAID1 array and grow it afterwards, but that would take some programming skills, which I just don't have at the moment .... I have worked out a little recipe to convert a normally none-raid drive filesystem to RAID1 ... Have not tried it with all partition on a booting system, but will get around to do that ... > I have tried in the command portion and it doesn't appear that Kickstart allows a degraded RAID1 array.? If this is true, then has anyone successfully configured a RAID 1 in the %pre section using mdadm?? I > know mdadm can configure a degraded RAID 1 but I am still learning what I can and can't do in Kickstart especially in the %pre portion of the script. I have seen some kickstart scripts, which don't use the anaconda storage module, but instead use %pre section to manually build the storage layout ... Think you should search the mailling list archive for %pre scripts for filesystem layouts ... > As for why I want a degraded RAID 1 system.? I have a group of servers setup as a test environment with limited hardware.? I am attempting to mimic the static drive partitions via sdisk.? I want to eventually > go virtual (possibly with XEN) for a more complete system test.? But baby steps first - getting a Kickstart script that gives me the desired system setup. I have done similar things with VirualBox, it's were I test my base installs ... > Any info on building a degraded RAID 1 or commands available in the %pre portion of the Kickstart file is greatly appreciated. Would be great if the anaconda developers could add this function or someone like myself and find the time to add this feature ... Best of luck. Mailed LeeT From Moray.Henderson at ict.om.org Wed Sep 2 17:15:42 2009 From: Moray.Henderson at ict.om.org (Moray Henderson (ICT)) Date: Wed, 2 Sep 2009 17:15:42 +0000 Subject: SELinux upgrade issue In-Reply-To: <4A980EC8.1090700@redhat.com> References: <211227D58676844E9EFBA3414EC92E88050F35D4F1@QTS-MBXCLSTR1.global.local> <4A980EC8.1090700@redhat.com> Message-ID: <211227D58676844E9EFBA3414EC92E8805110EF6A5@QTS-MBXCLSTR1.global.local> Some further notes on installing/upgrading selinux policy through kickstart. By monitoring the install/upgrade log and Alt-F4 screens, I see the following sequence during a fresh install: ... Installing selinux-policy Installing selinux-policy-targeted <7>security: 3 users, 6 roles, 1914 types, 234 bools, 1 sens, 1024 cats <7>security: 61 classes, 69080 rules <3>security: invalidating context system_u:object_r:defang_spool_t:s0 Installing sls-selinux-policy <7>security: 3 users, 6 roles , 1915 types, 234 bools, 1 sens, 1024 cats <7>security: 61 classes, 69128 rules ... remaining packages are installed The second pair of security lines on Alt-F4 come up immediately after my policy module is loaded, and show the new rules and type. During an upgrade, the sequence is different: ... Upgrading selinux-policy Upgrading selinux-policy-targeted <7>security: 3 users, 6 roles, 1914 types, 234 bools, 1 sens, 1024 cats <7>security: 61 classes, 69080 rules <3>security: invalidating context system_u:object:r:defang_spool_t:s0 <4>inode_doinit_with_dentry: context_to_sid(system_u:object_r:defang_spool_t:s0) returned 22 for dev=dm-4 ino=49189 Upgrading sls-selinux-policy libsemanage.semanage_make_sandbox: Could not copy files to sandbox /etc/selinux/targeted/modules/tmp. /usr/sbin/semodule: Failed on /usr/share/selinux/targeted/sls.pp! ... 59 remaining packages are upgraded ... warning: /etc/selinux/targeted/policy/policy.18 saved as /etc/selinux/targeded/policy/policy.18.rpmsave <7>security: 3 users, 6 roles, 1914 types, 234 bools, 1 sens, 1024 cats <7>security: 61 classes, 69080 rules There is a long pause after the "invalidating context defang_spool_t" line, then the "inode_doinit_with_dentry" line comes up on Alt-F4 just before "Upgrading sls-selinux-policy" is added to /root/upgrade.log. The "policy.18.rpmsave" and second pair of "<7>security" lines come up as the upgrade transaction is finishing. I have tried: Putting "sleep 20" in the %pre script of sls-selinux-policy Removing /etc/selinux/targeted/policy/policy.18 before the upgrade Removing /etc/selinux entirely before the upgrade Uninstalling the selinux rpms before the upgrade (_really_ bad idea!) None of those helped. I have made the problem go away by loading sls.pp and running fixfiles in a firstboot script after the upgrade. Still, it would be good to know why it broke during upgrade. Moray. "To err is human. To purr, feline" From mdehaan at redhat.com Tue Sep 8 21:18:24 2009 From: mdehaan at redhat.com (Michael DeHaan) Date: Tue, 08 Sep 2009 17:18:24 -0400 Subject: RAID6 support? In-Reply-To: <200909011505.26185.mad@comsoft.de> References: <200909011505.26185.mad@comsoft.de> Message-ID: <4AA6CA20.2030303@redhat.com> On 09/01/2009 09:05 AM, mad wrote: > Hi! > > On the page http://fedoraproject.org/wiki/Anaconda/Kickstart it is only > possible to configure RAID5. Is it possible to configure RAID6 as well? > > Thanks in advance, > mad > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > I would certaintly think so. The docs could just be out of date. How about trying it out real quick and see if Anaconda yells at you? If so the docs are easily fixable (its a Wiki). --Michael From drewweath at yahoo.com Thu Sep 10 16:39:59 2009 From: drewweath at yahoo.com (Drew Weatherby) Date: Thu, 10 Sep 2009 09:39:59 -0700 (PDT) Subject: Configure Kickstart with a degraded RAID1 ... In-Reply-To: Message-ID: <730806.43327.qm@web53603.mail.re2.yahoo.com> Sorry for the late response.? Work/life has been busy.? Thanks for the reply.? I've done some research and found some bugzilla reports that show this has been a problem for years.? https:/bugzilla.redhat.com/show_bug.cgi?id=105598 ????????????????????????????????????????????????????????????? =158426 ????????????????????????????????????????????????????????????? =177894 ??????????????????????????????????????????????????????????? ? =452441 The problem sounds like it exists in 3 areas/projects not just in one: KICKSTART; GRUB, and ANACONDA.? A patch was submitted for one of the areas but sounds like the correction may be more complicated than it was first believed.? I did not review the patch so I do not know what is involved with it or how tricky the area in code may be.? But, at least, I know that others have found this same problem and documented it.? As far as I know there is currently no official fix for this problem as of yet. Regards, Drew --- On Wed, 9/2/09, Clinton Lee Taylor wrote: From: Clinton Lee Taylor Subject: Re: Configure Kickstart with a degraded RAID1 ... To: kickstart-list at redhat.com Date: Wednesday, September 2, 2009, 11:46 AM Greetings ... > Has anyone successfully configured their system with Kickstart to have a degraded RAID1 array? Not that I'm aware of ... I have asked similar questions, with ideas of converting from none-RAID to RAID1 on both this list and Anaconda-devel-list, but the closest I have come, is a suggestion to install with a single device RAID1 array and grow it afterwards, but that would take some programming skills, which I just don't have at the moment .... I have worked out a little recipe to convert a normally none-raid drive filesystem to RAID1 ... Have not tried it with all partition on a booting system, but will get around to do that ... > I have tried in the command portion and it doesn't appear that Kickstart allows a degraded RAID1 array.? If this is true, then has anyone successfully configured a RAID 1 in the %pre section using mdadm?? I > know mdadm can configure a degraded RAID 1 but I am still learning what I can and can't do in Kickstart especially in the %pre portion of the script. I have seen some kickstart scripts, which don't use the anaconda storage module, but instead use %pre section to manually build the storage layout ... Think you should search the mailling list archive for %pre scripts for filesystem layouts ... > As for why I want a degraded RAID 1 system.? I have a group of servers setup as a test environment with limited hardware.? I am attempting to mimic the static drive partitions via sdisk.? I want to eventually > go virtual (possibly with XEN) for a more complete system test.? But baby steps first - getting a Kickstart script that gives me the desired system setup. I have done similar things with VirualBox, it's were I test my base installs ... > Any info on building a degraded RAID 1 or commands available in the %pre portion of the Kickstart file is greatly appreciated. Would be great if the anaconda developers could add this function or someone like myself and find the time to add this feature ... Best of luck. Mailed LeeT _______________________________________________ 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 Kenyetta.Johnson at us.army.mil Fri Sep 11 18:15:08 2009 From: Kenyetta.Johnson at us.army.mil (Johnson, Kenyetta A Mrs CIV USA NETCOM/9TH SC A) Date: Fri, 11 Sep 2009 11:15:08 -0700 Subject: Kickstart Steps (UNCLASSIFIED) Message-ID: Classification: UNCLASSIFIED Caveats: NONE Does anyone have a kickstart step-by-step guide that can be released? K.A.Johnson Department of the Army Classification: UNCLASSIFIED Caveats: NONE From alan.mckay at gmail.com Fri Sep 11 18:29:27 2009 From: alan.mckay at gmail.com (Alan McKay) Date: Fri, 11 Sep 2009 14:29:27 -0400 Subject: Kickstart Steps (UNCLASSIFIED) In-Reply-To: References: Message-ID: <844129e80909111129p362711b3j1e67277584e30c72@mail.gmail.com> I'm putting one together right now. Here is what I have so far. Pick your closest repository, not necessarily the one I list. * On kickstart server I've created /var/www/html/ks for doing kickstart installs, and it shows up at http://192.168.0.222/ks/ * the Centos 5.3 DVDs got downloaded - both 32 bit and 64 bit mkdir /mnt/C5.3_{32,64} chmod 0777 /mnt/C5.3_{32,64} mount -ro loop /home/amckay/Desktop/CentOS-5.3-i386-bin-DVD.iso /mnt/C5.3_32 mount -ro loop /home/amckay/Desktop/CentOS-5.3-x86_64-bin-DVD.iso /mnt/C5.3_64 mkdir -p /var/www/html/ks/centos/5.3/{os,updates}/{i386,x86_64} pushd /var/www/html/ks/centos/ ln -s 5.3 5 popd rsync -avHPS /mnt/C5.3_64/ /var/www/html/ks/centos/5.3/os/x86_64/ rsync -avHPS /mnt/C5.3_32/ /var/www/html/ks/centos/5.3/os/i386/ rsync -avSHP --delete --exclude "local*" --exclude "isos" rsync://mirror.csclub.uwaterloo.ca/centos/5.3/ /var/www/html/ks/centos/5.3/ chown -R apache:apache /var/www/html/ks/ Then I have this set up to run nightly in cron to rsync my repo : /usr/bin/rsync -avSHP --delete --exclude "local*" --exclude "isos" rsync://mirror.csclub.uwaterloo.ca/centos/5.3/ /var/www/html/ks/centos/5.3/ Now the server itself is done. Do your first install manually and select all the packages you want. When you are done, log in and grab the file /root/anaconda-ks.cfg as it is your first kickstart file. In that file replace the word "cdrom" with the appropriate location of your kickstart server : url --url http://192.168.0.22/ks/centos/5.3/os/x86_64 We also have custom versions of the default repo files which point to our own yum repo instead of externally. So within the %post section of the kickstart file we do : wget http://192.168.0.22/ks/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo That's about it for now. You can do tonnes of stuff in the kickstart file - even stuff like prompt up front before the install to ask if you want the HD automatically formatted, or if you want to do it manually. Or ask if they want to provide the IP and other config info right now. I don't have that implemented yet. But when I'm closer to done near the end of the month I'd be happy to provide my complete kickstart files. I'd have to sanitize them first ... cheers, -Alan -- ?Don't eat anything you've ever seen advertised on TV? - Michael Pollan, author of "In Defense of Food" From bschneiders at woti.com Fri Sep 11 18:33:26 2009 From: bschneiders at woti.com (Bryan Schneiders) Date: Fri, 11 Sep 2009 14:33:26 -0400 Subject: Kickstart Steps (UNCLASSIFIED) In-Reply-To: References: Message-ID: <4AAA97F6.1090005@woti.com> I don't know what you mean exactly by "can be released". Here are some of the official guides and kickstart wiki. Fedora 11 Installation Guide - Kickstart Installations http://docs.fedoraproject.org/install-guide/f11/en-US/html/ch-kickstart2.html Red Hat Enterprise Linux 5 - Kickstart Installations http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/ch-kickstart2.html Anaconda Kickstart Documentation http://fedoraproject.org/wiki/Anaconda/Kickstart Bryan Schneiders bschneiders at woti.com 301-562-1900 ext 305 Johnson, Kenyetta A Mrs CIV USA NETCOM/9TH SC A wrote: > Classification: UNCLASSIFIED > Caveats: NONE > > Does anyone have a kickstart step-by-step guide that can be released? > > K.A.Johnson > Department of the Army > > > > Classification: UNCLASSIFIED > Caveats: NONE > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list From alan.mckay at gmail.com Fri Sep 11 18:36:52 2009 From: alan.mckay at gmail.com (Alan McKay) Date: Fri, 11 Sep 2009 14:36:52 -0400 Subject: Kickstart Steps (UNCLASSIFIED) In-Reply-To: <4AAA97F6.1090005@woti.com> References: <4AAA97F6.1090005@woti.com> Message-ID: <844129e80909111136i6d4e5c10v287a730f7826d84b@mail.gmail.com> On Fri, Sep 11, 2009 at 2:33 PM, Bryan Schneiders wrote: > I don't know what you mean exactly by "can be released". I assumed he meant "that your employer will allow you to release" -- ?Don't eat anything you've ever seen advertised on TV? - Michael Pollan, author of "In Defense of Food" From mdehaan at redhat.com Fri Sep 11 21:40:36 2009 From: mdehaan at redhat.com (Michael DeHaan) Date: Fri, 11 Sep 2009 17:40:36 -0400 Subject: Kickstart Steps (UNCLASSIFIED) In-Reply-To: <4AAA97F6.1090005@woti.com> References: <4AAA97F6.1090005@woti.com> Message-ID: <4AAAC3D4.7050302@redhat.com> On 09/11/2009 02:33 PM, Bryan Schneiders wrote: > I don't know what you mean exactly by "can be released". > > Here are some of the official guides and kickstart wiki. > > Fedora 11 Installation Guide - Kickstart Installations > http://docs.fedoraproject.org/install-guide/f11/en-US/html/ch-kickstart2.html > > > Red Hat Enterprise Linux 5 - Kickstart Installations > http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/ch-kickstart2.html > > > Anaconda Kickstart Documentation > http://fedoraproject.org/wiki/Anaconda/Kickstart > > Bryan Schneiders > bschneiders at woti.com > 301-562-1900 ext 305 Also useful: http://www.shabazian.com/lw2007.pdf Chip has a newer one from this year's Red Hat Summit he can share -- I lost the link. --Michael From jmaestri at soleranetworks.com Fri Sep 11 23:04:53 2009 From: jmaestri at soleranetworks.com (Jason Maestri) Date: Fri, 11 Sep 2009 16:04:53 -0700 Subject: Error from driveorder command Message-ID: <488E3EFC-7212-4134-9592-A495145E7DD9@soleranetworks.com> Hello List, I've recently been seeing a problem that I cannot figure out. We have an appliance that runs Fedora 10, and we install this appliance via Anaconda 1.4.1.63. During an install, we will occasionally see the following error: "Specified nonexistent disk sdd in driveorder command". The user is then left with no option but to reboot and try again. It usually succeeds after the reboot, but lately, I've seen it fail 5 or more times in a row. So, the error is straightforward, but I'm not sure why I'm seeing it. If I look at the generated driveorder directive in the bootloader command, I see that it is set to the following: "bootloader -- location=mbr --driveorder=sdd,sda,sdb,sdc,sde". An "fdisk -l" confirms the existence of all 5 drives, as does /proc/partitions. I'm at a loss here. Has anyone run across this? I don't see why it should fail, but is doing it fairly frequently. Thank you, Jason Maestri -- Jason C. Maestri Senior Software Engineer Solera Networks O (801) 545.4076 C (801) 867.7654 http://www.soleranetworks.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2472 bytes Desc: not available URL: From chip.shabazian at bankofamerica.com Sat Sep 12 01:18:13 2009 From: chip.shabazian at bankofamerica.com (Shabazian, Chip) Date: Fri, 11 Sep 2009 18:18:13 -0700 Subject: Kickstart Steps (UNCLASSIFIED) In-Reply-To: <4AAAC3D4.7050302@redhat.com> References: <4AAA97F6.1090005@woti.com> <4AAAC3D4.7050302@redhat.com> Message-ID: Same presentation, different background. http://Bit.ly/kickstart09 Chip Shabazian -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Michael DeHaan Sent: Friday, September 11, 2009 2:41 PM To: Discussion list about Kickstart Subject: Re: Kickstart Steps (UNCLASSIFIED) On 09/11/2009 02:33 PM, Bryan Schneiders wrote: > I don't know what you mean exactly by "can be released". > > Here are some of the official guides and kickstart wiki. > > Fedora 11 Installation Guide - Kickstart Installations > http://docs.fedoraproject.org/install-guide/f11/en-US/html/ch-kickstart2 .html > > > Red Hat Enterprise Linux 5 - Kickstart Installations > http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Insta llation_Guide/ch-kickstart2.html > > > Anaconda Kickstart Documentation > http://fedoraproject.org/wiki/Anaconda/Kickstart > > Bryan Schneiders > bschneiders at woti.com > 301-562-1900 ext 305 Also useful: http://www.shabazian.com/lw2007.pdf Chip has a newer one from this year's Red Hat Summit he can share -- I lost the link. --Michael _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list From Kenyetta.Johnson at us.army.mil Fri Sep 18 17:26:32 2009 From: Kenyetta.Johnson at us.army.mil (Johnson, Kenyetta A Mrs CIV USA NETCOM/9TH SC A) Date: Fri, 18 Sep 2009 10:26:32 -0700 Subject: Kickstart Steps Reply (UNCLASSIFIED) In-Reply-To: <20090912011836.D5FD4619E9B@hormel.redhat.com> References: <20090912011836.D5FD4619E9B@hormel.redhat.com> Message-ID: Classification: UNCLASSIFIED Caveats: NONE Thanks to all that reponded and provided KS links to documentation. Classification: UNCLASSIFIED Caveats: NONE From muellejo at aschendorff.de Tue Sep 22 08:21:04 2009 From: muellejo at aschendorff.de (Jodok Ole Muellers) Date: Tue, 22 Sep 2009 10:21:04 +0200 Subject: convert dhcp network config to static config after kickstart Message-ID: <20090922102104.0e04806f@jodok.aschendorff.de> Hello, I kickstart my systems using dhcp for the network config ( network --bootproto=dhcp ) Once the system is set up I would like to convert the network interface eth0 to use static configuration by using the current IP, GW, DNS, NETMASK assigned by dhcp and write them to /etc/sysconfig/network-scripts/ifcfg-eth0 since the DHCP server is not high available. I was wondering if there is already a solution script to do that. Thanks Jodok From arthur.lutz at logilab.fr Wed Sep 23 08:56:58 2009 From: arthur.lutz at logilab.fr (Arthur Lutz) Date: Wed, 23 Sep 2009 10:56:58 +0200 Subject: Few questions Message-ID: <20090923085658.GA5650@crater.logilab.fr> Hi, I'm using kickstart (with pungi) to create a custom CD installer. I have a few questions about the possibility of doing a few things with kickstart and if it is, how... thanks in advance : * select "resize partitionning" by default (dual boot with windows) * add a user (for some reason I get a prompt for root password but no user creation). Do I have to use firstboot for this ? * rename the generated grub entry "Other" into "Windows" * make grub default entry the windows one Thanks in advance. -- Arthur LUTZ LOGILAB, Paris (France) http://www.logilab.com http://www.logilab.fr http://www.logilab.org D?veloppement logiciel avanc? - Intelligence Artificielle - Formations CubicWeb, the semantic web framework: http://www.cubicweb.org From hbrown at divms.uiowa.edu Wed Sep 23 14:31:32 2009 From: hbrown at divms.uiowa.edu (Hugh Brown) Date: Wed, 23 Sep 2009 09:31:32 -0500 Subject: Few questions In-Reply-To: <20090923085658.GA5650@crater.logilab.fr> References: <20090923085658.GA5650@crater.logilab.fr> Message-ID: <4ABA3144.5090509@divms.uiowa.edu> Arthur Lutz wrote: > Hi, > > I'm using kickstart (with pungi) to create a custom CD installer. I > have a few questions about the possibility of doing a few things with > kickstart and if it is, how... thanks in advance : > > * select "resize partitionning" by default (dual boot with windows) > > * add a user (for some reason I get a prompt for root password but no > user creation). Do I have to use firstboot for this ? > > * rename the generated grub entry "Other" into "Windows" > > * make grub default entry the windows one > > Thanks in advance. > The kickstart options page that I use for reference is http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html I'm not familiar with a kickstart directive that will shrink a windows partition and then lay out appropriate linux partitions in the freed up space. There might be something that can be done in %pre to shrink a windows partition, but generally it would be a better idea to have the windows partition pre-shrunk before installing linux. The remaining items can be done in %post with scripts. Hugh -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3270 bytes Desc: S/MIME Cryptographic Signature URL: From alan.mckay at gmail.com Mon Sep 28 15:00:47 2009 From: alan.mckay at gmail.com (Alan McKay) Date: Mon, 28 Sep 2009 11:00:47 -0400 Subject: Few questions In-Reply-To: <20090923085658.GA5650@crater.logilab.fr> References: <20090923085658.GA5650@crater.logilab.fr> Message-ID: <844129e80909280800o36d312a5pc4bc52acc0b9a57e@mail.gmail.com> > * add a user (for some reason I get a prompt for root password but no > ?user creation). Do I have to use firstboot for this ? I do this in my kickstart %post and it works fine /usr/sbin/adduser amckay -p '$1$SGsRpvZG$4JInUk0a.zIoUhboL39v./' To get the encrypted string just take it from an existing password file. -- ?Don't eat anything you've ever seen advertised on TV? - Michael Pollan, author of "In Defense of Food" From Matt.Fahrner at coat.com Mon Sep 28 15:33:27 2009 From: Matt.Fahrner at coat.com (Matt Fahrner) Date: Mon, 28 Sep 2009 11:33:27 -0400 Subject: Few questions In-Reply-To: <844129e80909280800o36d312a5pc4bc52acc0b9a57e@mail.gmail.com> References: <20090923085658.GA5650@crater.logilab.fr> <844129e80909280800o36d312a5pc4bc52acc0b9a57e@mail.gmail.com> Message-ID: <4AC0D747.7080801@coat.com> An HTML attachment was scrubbed... URL: From arthur.lutz at logilab.fr Mon Sep 28 15:46:49 2009 From: arthur.lutz at logilab.fr (Arthur Lutz) Date: Mon, 28 Sep 2009 17:46:49 +0200 Subject: Few questions In-Reply-To: <844129e80909280800o36d312a5pc4bc52acc0b9a57e@mail.gmail.com> References: <20090923085658.GA5650@crater.logilab.fr> <844129e80909280800o36d312a5pc4bc52acc0b9a57e@mail.gmail.com> Message-ID: <20090928154649.GC9285@crater.logilab.fr> On Mon, Sep 28, 2009 at 11:00:47AM -0400, Alan McKay wrote: > > * add a user (for some reason I get a prompt for root password but no > > ?user creation). Do I have to use firstboot for this ? > > I do this in my kickstart %post and it works fine > > /usr/sbin/adduser amckay -p '$1$SGsRpvZG$4JInUk0a.zIoUhboL39v./' > > To get the encrypted string just take it from an existing password file. > Thanks for the advice, the thing is that I don't know the username before hand. I've got that point to work by using firstboot with a limitied number of scripts in the used modules (filtred in a %post) -- Arthur LUTZ LOGILAB, Paris (France) http://www.logilab.com http://www.logilab.fr http://www.logilab.org D?veloppement logiciel avanc? - Intelligence Artificielle - Formations CubicWeb, the semantic web framework: http://www.cubicweb.org