From peter.scheie at visionshareinc.com Tue Sep 1 18:54:23 2009 From: peter.scheie at visionshareinc.com (Peter Scheie) Date: Tue, 01 Sep 2009 13:54:23 -0500 Subject: [Fedora-livecd-list] livecd-creator used to work on centos 5, now giving "syslinux not installed" error Message-ID: <1251831263.6057.61.camel@pscheie-ubuntu810> A couple weeks ago I used the instructions at https://projects.centos.org/trac/livecd/ to create a live CD of CentOS 5. I did this on a Centos 5.3 virtual machine running under VirtualBox running on top of Ubuntu, at my office. I did the same thing at home on my laptop. In both cases I was able to create the minimal livecd and the full destkop livecd. Then I went on vacation for three weeks. When I got back, I tried to create another livecd image, using the same command, to just refresh my memory of what I'd been working on. Here's the command I used: LANG=C livecd-creator --config=centos-livecd-minimal.ks --fslabel=CentOS-minimal But this time, I got the following error: Error creating Live CD : syslinux not installed : no suitable *menu.c32 found I tried it at home as well and got the same error. I've got syslinux 3.36-4.2 installed, including menu.c32 and vesamenu.c32. Any ideas as to what would have changed that would cause livecd-creator to break, or how to fix it? Thanks. Peter From patrice.guay at nanotechnologies.qc.ca Tue Sep 1 19:07:45 2009 From: patrice.guay at nanotechnologies.qc.ca (Patrice Guay) Date: Tue, 01 Sep 2009 15:07:45 -0400 Subject: [Fedora-livecd-list] livecd-creator used to work on centos 5, now giving "syslinux not installed" error In-Reply-To: <1251831263.6057.61.camel@pscheie-ubuntu810> References: <1251831263.6057.61.camel@pscheie-ubuntu810> Message-ID: <4A9D7101.7090404@nanotechnologies.qc.ca> Peter Scheie wrote: > Here's the command I used: > > LANG=C livecd-creator --config=centos-livecd-minimal.ks > --fslabel=CentOS-minimal > > [...] I got the following error: > > Error creating Live CD : syslinux not installed : no suitable *menu.c32 > found > > I tried it at home as well and got the same error. I've got syslinux > 3.36-4.2 installed, including menu.c32 and vesamenu.c32. Any ideas as > to what would have changed that would cause livecd-creator to break, or > how to fix it? livecd-tools 014-4 will now look in both /usr/share/syslinux and /usr/lib/syslinux for menu.c32 and vesamenu.c32. Make sure you use this version of livecd-tools and try again. If you still have problems, you can open a ticket on https://projects.centos.org/trac/livecd/ Regards, -- Patrice Guay From peter.scheie at visionshareinc.com Tue Sep 1 19:34:09 2009 From: peter.scheie at visionshareinc.com (Peter Scheie) Date: Tue, 01 Sep 2009 14:34:09 -0500 Subject: [Fedora-livecd-list] livecd-creator used to work on centos 5, now giving "syslinux not installed" error In-Reply-To: <4A9D7101.7090404@nanotechnologies.qc.ca> References: <1251831263.6057.61.camel@pscheie-ubuntu810> <4A9D7101.7090404@nanotechnologies.qc.ca> Message-ID: <1251833649.6057.62.camel@pscheie-ubuntu810> On Tue, 2009-09-01 at 15:07 -0400, Patrice Guay wrote: > Peter Scheie wrote: > > Here's the command I used: > > > > LANG=C livecd-creator --config=centos-livecd-minimal.ks > > --fslabel=CentOS-minimal > > > > [...] I got the following error: > > > > Error creating Live CD : syslinux not installed : no suitable *menu.c32 > > found > > > > I tried it at home as well and got the same error. I've got syslinux > > 3.36-4.2 installed, including menu.c32 and vesamenu.c32. Any ideas as > > to what would have changed that would cause livecd-creator to break, or > > how to fix it? > > livecd-tools 014-4 will now look in both /usr/share/syslinux and > /usr/lib/syslinux for menu.c32 and vesamenu.c32. > > Make sure you use this version of livecd-tools and try again. If you > still have problems, you can open a ticket on > https://projects.centos.org/trac/livecd/ > > Regards, > -- > Patrice Guay That worked. Thanks. Peter From peter.scheie at visionshareinc.com Tue Sep 1 20:57:59 2009 From: peter.scheie at visionshareinc.com (Peter Scheie) Date: Tue, 01 Sep 2009 15:57:59 -0500 Subject: [Fedora-livecd-list] selinux set to permissive in kickstart, but ISO says it's in enforcing mode Message-ID: <1251838679.6057.77.camel@pscheie-ubuntu810> I'm trying to build a Centos livecd that will mostly call anaconda with a kickstart file on an http server. I modified the centos-livecd-minimal.ks file, first adding system-config-network-tui to the %packages section to get networking, and the resulting ISO worked fine. Next I added anaconda to the %packages section. But the resulting ISO kernel panics saying "Unable to load SELinux Policy. Machine is in enforcing mode." I don't really need selinux for my purposes, so I changed the selinux setting in the ks file to --permissive, but I still get the same panic. Any ideas as to why the permissive setting isn't being picked up? Or what about adding anaconda (which admittedly adds a bunch of other packages) made it stop loading the policy file? Thanks. Peter From patrice.guay at nanotechnologies.qc.ca Tue Sep 1 21:02:46 2009 From: patrice.guay at nanotechnologies.qc.ca (Patrice Guay) Date: Tue, 01 Sep 2009 17:02:46 -0400 Subject: [Fedora-livecd-list] selinux set to permissive in kickstart, but ISO says it's in enforcing mode In-Reply-To: <1251838679.6057.77.camel@pscheie-ubuntu810> References: <1251838679.6057.77.camel@pscheie-ubuntu810> Message-ID: <4A9D8BF6.2070606@nanotechnologies.qc.ca> Peter Scheie wrote: > I'm trying to build a Centos livecd that will mostly call anaconda with > a kickstart file on an http server. I modified the > centos-livecd-minimal.ks file, first adding system-config-network-tui to > the %packages section to get networking, and the resulting ISO worked > fine. Next I added anaconda to the %packages section. But the > resulting ISO kernel panics saying "Unable to load SELinux Policy. > Machine is in enforcing mode." I don't really need selinux for my > purposes, so I changed the selinux setting in the ks file to > --permissive, but I still get the same panic. Any ideas as to why the > permissive setting isn't being picked up? Or what about adding anaconda > (which admittedly adds a bunch of other packages) made it stop loading > the policy file? Thanks. > > Peter What is the current SELinux policy on the machine used to build the LiveCD? As stated in the CentOS LiveCD documentation, "the build host should have SELinux in permissive mode. Edit /etc/sysconfig/selinux and restart the computer to enforce this policy." -- Patrice Guay From peter.scheie at visionshareinc.com Tue Sep 1 21:12:56 2009 From: peter.scheie at visionshareinc.com (Peter Scheie) Date: Tue, 01 Sep 2009 16:12:56 -0500 Subject: [Fedora-livecd-list] selinux set to permissive in kickstart, but ISO says it's in enforcing mode In-Reply-To: <4A9D8BF6.2070606@nanotechnologies.qc.ca> References: <1251838679.6057.77.camel@pscheie-ubuntu810> <4A9D8BF6.2070606@nanotechnologies.qc.ca> Message-ID: <1251839576.6057.84.camel@pscheie-ubuntu810> On Tue, 2009-09-01 at 17:02 -0400, Patrice Guay wrote: > Peter Scheie wrote: > > I'm trying to build a Centos livecd that will mostly call anaconda with > > a kickstart file on an http server. I modified the > > centos-livecd-minimal.ks file, first adding system-config-network-tui to > > the %packages section to get networking, and the resulting ISO worked > > fine. Next I added anaconda to the %packages section. But the > > resulting ISO kernel panics saying "Unable to load SELinux Policy. > > Machine is in enforcing mode." I don't really need selinux for my > > purposes, so I changed the selinux setting in the ks file to > > --permissive, but I still get the same panic. Any ideas as to why the > > permissive setting isn't being picked up? Or what about adding anaconda > > (which admittedly adds a bunch of other packages) made it stop loading > > the policy file? Thanks. > > > > Peter > > What is the current SELinux policy on the machine used to build the > LiveCD? As stated in the CentOS LiveCD documentation, "the build host > should have SELinux in permissive mode. Edit /etc/sysconfig/selinux and > restart the computer to enforce this policy." > > -- SELINUX is already set to permissive, and SELINUXTYPE is set to targeted in /etc/sysconfig/selinux. That's the first thing I checked, but it was already set correctly. Peter From Peter.Scheie at visionshareinc.com Wed Sep 2 11:07:40 2009 From: Peter.Scheie at visionshareinc.com (Peter Scheie) Date: Wed, 2 Sep 2009 06:07:40 -0500 Subject: [Fedora-livecd-list] selinux set to permissive in kickstart, but ISO says it's in enforcing mode References: <1251838679.6057.77.camel@pscheie-ubuntu810><4A9D8BF6.2070606@nanotechnologies.qc.ca> <1251839576.6057.84.camel@pscheie-ubuntu810> Message-ID: -----Original Message----- From: fedora-livecd-list-bounces at redhat.com on behalf of Peter Scheie Sent: Tue 9/1/2009 4:12 PM To: fedora-livecd-list at redhat.com Subject: Re: [Fedora-livecd-list] selinux set to permissive in kickstart,but ISO says it's in enforcing mode On Tue, 2009-09-01 at 17:02 -0400, Patrice Guay wrote: > Peter Scheie wrote: > > I'm trying to build a Centos livecd that will mostly call anaconda with > > a kickstart file on an http server. I modified the > > centos-livecd-minimal.ks file, first adding system-config-network-tui to > > the %packages section to get networking, and the resulting ISO worked > > fine. Next I added anaconda to the %packages section. But the > > resulting ISO kernel panics saying "Unable to load SELinux Policy. > > Machine is in enforcing mode." I don't really need selinux for my > > purposes, so I changed the selinux setting in the ks file to > > --permissive, but I still get the same panic. Any ideas as to why the > > permissive setting isn't being picked up? Or what about adding anaconda > > (which admittedly adds a bunch of other packages) made it stop loading > > the policy file? Thanks. > > > > Peter > > What is the current SELinux policy on the machine used to build the > LiveCD? As stated in the CentOS LiveCD documentation, "the build host > should have SELinux in permissive mode. Edit /etc/sysconfig/selinux and > restart the computer to enforce this policy." > > -- SELINUX is already set to permissive, and SELINUXTYPE is set to targeted in /etc/sysconfig/selinux. That's the first thing I checked, but it was already set correctly. Peter ---- I tested this on my home machine last night and got the same result. At home, the host system where I build the livecd is also a Centos 5 VM running on VirtualBox on top of Ubuntu. In the Centos's /etc/sysconfig/selinux, SELINUX was set to disabled; it was also set to disabled in the kickstart file used with livecd-creator. For the record, I did a yum update before running livecd-creator. So, it appears something in the anaconda package somehow changes the selinux setting. Any ideas of how to fix that? Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4164 bytes Desc: not available URL: From devrim at CommandPrompt.com Wed Sep 2 17:45:34 2009 From: devrim at CommandPrompt.com (Devrim =?ISO-8859-1?Q?G=DCND=DCZ?=) Date: Wed, 02 Sep 2009 20:45:34 +0300 Subject: [Fedora-livecd-list] How to add wallpaper & Firefox start page to live CD Message-ID: <1251913534.25028.2.camel@hp-laptop2.gunduz.org> Hi, How can I add my custom wallpaper (and set it to default) in live CD? I tested gconftool-2 -t string -s /desktop/gnome/background/picture_filename myimg.png but it did not work. Another question will also come: How can add that png file to live cd? Similar question comes for Firefox: How can I set my default page there? Regards, -- Devrim G?ND?Z , RHCE Professional Services, Training, 24x7 Support Authors: PostgreSQL Replicator, ODBCng, PostgreSQL RPMs, PITRTools http://www.commandprompt.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From patrice.guay at nanotechnologies.qc.ca Thu Sep 3 22:39:23 2009 From: patrice.guay at nanotechnologies.qc.ca (Patrice Guay) Date: Thu, 03 Sep 2009 18:39:23 -0400 Subject: [Fedora-livecd-list] mkisofs options Message-ID: <4AA0459B.1030201@nanotechnologies.qc.ca> By default, mkisofs is called with some predefined arguments in /imgcreate/live.py: args = ["/usr/bin/mkisofs", "-J", "-r", "-hide-rr-moved", "-hide-joliet-trans-tbl", "-V", self.fslabel, "-o", iso] Is there a reason why the -T option is not passed to mkisofs? From the mkisofs man page: -T Generate a file TRANS.TBL in each directory on the CDROM, which can be used on non-Rock Ridge capable systems to help establish the correct file names. There is also information present in the file that indicates the major and minor numbers for block and character devices, and each symlink has the name of the link file given. I encountered some systems where the use of this option was the only way to make the LiveCD boot. Thanks, -- Patrice From slavutich at grecea.net Tue Sep 8 14:09:23 2009 From: slavutich at grecea.net (Veaceslav Grecea) Date: Tue, 8 Sep 2009 17:09:23 +0300 Subject: [Fedora-livecd-list] smallest livecd installaion Message-ID: Hello. I'd like to ask whether is it possible to create a smallest livecd installation image. We need one within 5-10 Mb. Only coreutils, bash, kernel and ssh-client, and some more due to packages dependencies. All our experiments lead to results ~100Mb image size. Thank you. -- best regards, slavutich -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith at karsites.net Tue Sep 8 20:15:34 2009 From: keith at karsites.net (Keith Roberts) Date: Tue, 8 Sep 2009 21:15:34 +0100 (BST) Subject: [Fedora-livecd-list] smallest livecd installaion In-Reply-To: References: Message-ID: On Tue, 8 Sep 2009, Veaceslav Grecea wrote: > To: fedora-livecd-list at redhat.com > From: Veaceslav Grecea > Subject: [Fedora-livecd-list] smallest livecd installaion > > Hello. > > I'd like to ask whether is it possible to create a > smallest livecd installation image. We need one within > 5-10 Mb. Only coreutils, bash, kernel and ssh-client, and > some more due to packages dependencies. All our > experiments lead to results ~100Mb image size. > > Thank you. > > -- > best regards, > slavutich Probably not with Fedora. But you can try with DSL: http://www.damnsmalllinux.org/ That's the smallest Linux distro I know about. There may be other embeded Linux distro's that you could adapt for your purpose. Kind Regards, Keith Roberts ----------------------------------------------------------------- Websites: http://www.php-debuggers.net http://www.karsites.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] ----------------------------------------------------------------- > From sgrubb at redhat.com Tue Sep 8 20:47:34 2009 From: sgrubb at redhat.com (Steve Grubb) Date: Tue, 8 Sep 2009 16:47:34 -0400 Subject: [Fedora-livecd-list] smallest livecd installaion In-Reply-To: References: Message-ID: <200909081647.34670.sgrubb@redhat.com> On Tuesday 08 September 2009 10:09:23 am Veaceslav Grecea wrote: > I'd like to ask whether is it possible to create a smallest livecd > installation image. > We need one within 5-10 Mb. > Only coreutils, bash, kernel and ssh-client, and some more due to packages > dependencies. > All our experiments lead to results ~100Mb image size. Have you looked at febootstrap? http://rwmj.wordpress.com/2009/03/20/febootstrap-minimal-now-159-mb/ This might point you in the right direction. -Steve From martin at martindengler.com Wed Sep 9 17:36:19 2009 From: martin at martindengler.com (Martin Dengler) Date: Wed, 9 Sep 2009 18:36:19 +0100 Subject: [Fedora-livecd-list] "-generic" in initrd name confusing live.py? Message-ID: <20090909173618.GL4052@ops-13.xades.com> Hi, I'm getting a puzzling problem when building a .ks file that worked two days ago: Traceback (most recent call last): File "/usr/bin/livecd-creator", line 140, in sys.exit(main()) File "/usr/bin/livecd-creator", line 124, in main creator.configure() File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 732, in configure self._create_bootconfig() File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 197, in _create_bootconfig self._configure_bootloader(self.__ensure_isodir()) File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 609, in _configure_bootloader self._configure_syslinux_bootloader(isodir) File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 513, in _configure_syslinux_bootloader cfg += self.__get_image_stanzas(isodir) File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 440, in __get_image_stanzas is_xen = self.__copy_kernel_and_initramfs(isodir, version, index) File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 367, in __copy_kernel_and_initramfs isodir + "/isolinux/initrd" + index + ".img") File "/usr/lib64/python2.6/shutil.py", line 52, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No such file or directory: '/var/tmp/imgcreate-X4oN18/install_root/boot/initrd-2.6.31-0.204.rc9.fc12.i686.img' I added some code to live.py to show what was actually in the source and dest directories, and it seems that the initrd has grown a string "-generic" in its name that live.py doesn't expect: --- src, dest = (bootdir + "/initrd-" + version + ".img", isodir + "/isolinux/initrd" + index + ".img") logging.warn("__copy_kernel_and_initramfs: copying %s to %s" % (src, dest)) logging.warn("src contents: %s" % os.listdir(os.path.dirname(src))) logging.warn("dest contents: %s" % os.listdir(os.path.dirname(dest))) shutil.copyfile(bootdir + "/initrd-" + version + ".img", isodir + "/isolinux/initrd" + index + ".img") --- yielding: --- __copy_kernel_and_initramfs: trying to copy /var/tmp/imgcreate-X4oN18/install_root/boot/initrd-2.6.31-0.204.rc9.fc12.i686.img to /var/tmp/imgcreate-X4oN18/iso-oM8RAY/isolinux/initrd0.img src contents: ['System.map-2.6.31-0.204.rc9.fc12.i686', 'config-2.6.31-0.204.rc9.fc12.i686', 'vmlinuz-2.6.31-0.204.rc9.fc12.i686', 'grub', 'initrd-generic-2.6.31-0.204.rc9.fc12.i686.img', 'efi'] dest contents: ['vmlinuz0', 'isolinux.bin', 'vesamenu.c32', 'splash.jpg'] --- Anybody have any ideas what I'm doing wrong? Thanks, Martin PS: Linux xxx 2.6.29.6-217.2.8.fc11.x86_64 #1 SMP Sat Aug 15 01:06:26 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux livecd-tools-024-1.fc11.x86_64 rpm-4.7.1-1.fc11.x86_64 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From mads at kiilerich.com Wed Sep 9 18:06:42 2009 From: mads at kiilerich.com (Mads Kiilerich) Date: Wed, 09 Sep 2009 20:06:42 +0200 Subject: [Fedora-livecd-list] "-generic" in initrd name confusing live.py? In-Reply-To: <20090909173618.GL4052@ops-13.xades.com> References: <20090909173618.GL4052@ops-13.xades.com> Message-ID: <4AA7EEB2.7040005@kiilerich.com> On 09/09/2009 07:36 PM, Martin Dengler wrote: > Hi, > > I'm getting a puzzling problem when building a .ks file that worked > two days ago: > > Traceback (most recent call last): > File "/usr/bin/livecd-creator", line 140, in > sys.exit(main()) > File "/usr/bin/livecd-creator", line 124, in main > creator.configure() > File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 732, in configure > self._create_bootconfig() > File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 197, in _create_bootconfig > self._configure_bootloader(self.__ensure_isodir()) > File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 609, in _configure_bootloader > self._configure_syslinux_bootloader(isodir) > File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 513, in _configure_syslinux_bootloader > cfg += self.__get_image_stanzas(isodir) > File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 440, in __get_image_stanzas > is_xen = self.__copy_kernel_and_initramfs(isodir, version, index) > File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 367, in __copy_kernel_and_initramfs > isodir + "/isolinux/initrd" + index + ".img") > File "/usr/lib64/python2.6/shutil.py", line 52, in copyfile > fsrc = open(src, 'rb') > IOError: [Errno 2] No such file or directory: > '/var/tmp/imgcreate-X4oN18/install_root/boot/initrd-2.6.31-0.204.rc9.fc12.i686.img' > > I added some code to live.py to show what was actually in the source > and dest directories, and it seems that the initrd has grown a string > "-generic" in its name that live.py doesn't expect: > That seems to be caused changes made in rawhide because of http://fedoraproject.org/wiki/Features/Dracut We will have to wait until the design and implementation are completed and livecd-tools in F11 has been updated accordingly - if that is going to happen. /Mads From martin at martindengler.com Wed Sep 9 19:16:45 2009 From: martin at martindengler.com (Martin Dengler) Date: Wed, 9 Sep 2009 20:16:45 +0100 Subject: [Fedora-livecd-list] "-generic" in initrd name confusing live.py? In-Reply-To: <4AA7EEB2.7040005@kiilerich.com> References: <20090909173618.GL4052@ops-13.xades.com> <4AA7EEB2.7040005@kiilerich.com> Message-ID: <20090909191645.GA11066@ops-13.xades.com> On Wed, Sep 09, 2009 at 08:06:42PM +0200, Mads Kiilerich wrote: > On 09/09/2009 07:36 PM, Martin Dengler wrote: >> Hi, >> >> I'm getting a puzzling problem when building a .ks file that worked >> two days ago: [...] >> IOError: [Errno 2] No such file or directory: >> '/var/tmp/imgcreate-X4oN18/install_root/boot/initrd-2.6.31-0.204.rc9.fc12.i686.img' [...] > That seems to be caused changes made in rawhide because of > http://fedoraproject.org/wiki/Features/Dracut > > We will have to wait until the design and implementation are completed > and livecd-tools in F11 has been updated accordingly - if that is going > to happen. Thanks for the explanation. For now I have done: # diff -uw /usr/lib/python2.6/site-packages/imgcreate/live.py{~,} --- /usr/lib/python2.6/site-packages/imgcreate/live.py~ 2009-05-06 19:09:02.000000000 +0100 +++ /usr/lib/python2.6/site-packages/imgcreate/live.py 2009-09-09 20:15:01.000000000 +0100 @@ -358,7 +358,7 @@ shutil.copyfile(bootdir + "/vmlinuz-" + version, isodir + "/isolinux/vmlinuz" + index) - shutil.copyfile(bootdir + "/initrd-" + version + ".img", + shutil.copyfile(bootdir + "/initrd-generic-" + version + ".img", isodir + "/isolinux/initrd" + index + ".img") is_xen = False > /Mads Martin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From martin at martindengler.com Wed Sep 9 20:04:49 2009 From: martin at martindengler.com (Martin Dengler) Date: Wed, 9 Sep 2009 21:04:49 +0100 Subject: [Fedora-livecd-list] livecd-creator creates ISO without /home In-Reply-To: <20090716001138.GA45537@redhat.com> References: <20090714134111.GT21771@ops-13.xades.com> <20090714150225.GA43423@redhat.com> <20090714185622.GW21771@ops-13.xades.com> <20090715013733.GA44764@redhat.com> <20090715214137.GM21771@ops-13.xades.com> <20090716001138.GA45537@redhat.com> Message-ID: <20090909200449.GC11066@ops-13.xades.com> On Wed, Jul 15, 2009 at 08:11:38PM -0400, Jeremy Katz wrote: > On Wednesday, July 15 2009, Martin Dengler said: > > On Tue, Jul 14, 2009 at 09:37:33PM -0400, Jeremy Katz wrote: > > > On Tuesday, July 14 2009, Martin Dengler said: > > > > On Tue, Jul 14, 2009 at 11:02:25AM -0400, Jeremy Katz wrote: > > > > > On Tuesday, July 14 2009, Martin Dengler said: > > > > > > I'm getting a .ISO without a /home despite the filesystem rpm being > > > > > > installed, and I'd really appreciate any tips on debugging this or > > > > > > hints as to how this might happen. > > [...] > > > The fact that groups aren't existing early in the install after the > > > setup package has been installed is the more concerning part of the > > > log to me. > > > > The machine in question has an LDAP user database, from what I > > understand. I don't know how that might influence the users/groups in > > the created filesystem. > > Ahh, that is useful and could be related. Are you also using nscd by > chance? If so, try turning it off Yes, nscd was being used. In the end I just gave up and used another machine. > Jeremy Martin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From wtogami at redhat.com Thu Sep 10 18:11:45 2009 From: wtogami at redhat.com (Warren Togami) Date: Thu, 10 Sep 2009 14:11:45 -0400 Subject: [Fedora-livecd-list] "-generic" in initrd name confusing live.py? In-Reply-To: <20090909191645.GA11066@ops-13.xades.com> References: <20090909173618.GL4052@ops-13.xades.com> <4AA7EEB2.7040005@kiilerich.com> <20090909191645.GA11066@ops-13.xades.com> Message-ID: <4AA94161.60704@redhat.com> initrd-generic is now gone. "initramfs" is now the permanent name. I'm updating livecd in git for this. Warren Togami wtogami at redhat.com From wtogami at fedoraproject.org Thu Sep 10 18:27:46 2009 From: wtogami at fedoraproject.org (=?utf-8?b?V2FycmVuIFRvZ2FtaSDnoKXkuIrli4c=?=) Date: Thu, 10 Sep 2009 18:27:46 +0000 (UTC) Subject: [Fedora-livecd-list] imgcreate/live.py Message-ID: <20090910182746.C34E41201EF@lists.fedorahosted.org> imgcreate/live.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) New commits: commit 28a1b27b3053e09c5aa99336bf52f5714f3f5610 Author: Warren Togami Date: Thu Sep 10 14:19:03 2009 -0400 dracut output image filename s/initrd-generic/initramfs/ diff --git a/imgcreate/live.py b/imgcreate/live.py index c49b358..478aab0 100644 --- a/imgcreate/live.py +++ b/imgcreate/live.py @@ -365,8 +365,8 @@ class x86LiveImageCreator(LiveImageCreatorBase): isodir + "/isolinux/vmlinuz" + index) isDracut = False - if os.path.exists(bootdir + "/initrd-generic-" + version + ".img"): - shutil.copyfile(bootdir + "/initrd-generic-" + version + ".img", + if os.path.exists(bootdir + "/initramfs-" + version + ".img"): + shutil.copyfile(bootdir + "/initramfs-" + version + ".img", isodir + "/isolinux/initrd" + index + ".img") isDracut = True else: @@ -674,7 +674,7 @@ class ppcLiveImageCreator(LiveImageCreatorBase): shutil.copyfile(bootdir + "/vmlinuz-" + version, destdir + "/vmlinuz") - if os.path.exists(bootdir + "/initrd-generic-" + version + ".img"): + if os.path.exists(bootdir + "/initramfs-" + version + ".img"): shutil.copyfile(bootdir + "/initrd-" + version + ".img", destdir + "/initrd.img") isDracut = True From wtogami at fedoraproject.org Thu Sep 10 18:55:38 2009 From: wtogami at fedoraproject.org (=?utf-8?b?V2FycmVuIFRvZ2FtaSDnoKXkuIrli4c=?=) Date: Thu, 10 Sep 2009 18:55:38 +0000 (UTC) Subject: [Fedora-livecd-list] imgcreate/live.py Message-ID: <20090910185538.414C51201EF@lists.fedorahosted.org> imgcreate/live.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit ab84919a2f2c14e9354f217f1410ca841f54b6d9 Author: Warren Togami Date: Thu Sep 10 14:55:02 2009 -0400 ppc live was trying to copy the wrong initrd filename diff --git a/imgcreate/live.py b/imgcreate/live.py index 478aab0..85de975 100644 --- a/imgcreate/live.py +++ b/imgcreate/live.py @@ -675,7 +675,7 @@ class ppcLiveImageCreator(LiveImageCreatorBase): destdir + "/vmlinuz") if os.path.exists(bootdir + "/initramfs-" + version + ".img"): - shutil.copyfile(bootdir + "/initrd-" + version + ".img", + shutil.copyfile(bootdir + "/initramfs-" + version + ".img", destdir + "/initrd.img") isDracut = True else: From wtogami at fedoraproject.org Thu Sep 10 20:02:37 2009 From: wtogami at fedoraproject.org (=?utf-8?b?V2FycmVuIFRvZ2FtaSDnoKXkuIrli4c=?=) Date: Thu, 10 Sep 2009 20:02:37 +0000 (UTC) Subject: [Fedora-livecd-list] imgcreate/creator.py Message-ID: <20090910200237.A90D21201EF@lists.fedorahosted.org> imgcreate/creator.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) New commits: commit 0b80dc71f82f0a2ed24d01209fd2eb892a2c8135 Author: Warren Togami Date: Thu Sep 10 16:01:57 2009 -0400 Properly clean up fake /selinux directory during teardown diff --git a/imgcreate/creator.py b/imgcreate/creator.py index 910c778..909f616 100644 --- a/imgcreate/creator.py +++ b/imgcreate/creator.py @@ -476,13 +476,18 @@ class ImageCreator(object): # if the system was running selinux clean up our lies if os.path.exists("/selinux/enforce"): for root, dirs, files in os.walk(self._instroot + "/selinux"): - if root == self._instroot + "/selinux": - continue - try: - os.unlink(root) - except OSError: - pass - + for name in files: + try: + os.remove(os.path.join(root, name)) + except OSError: + pass + for name in dirs: + if os.path.join(root, name) == self._instroot + "/selinux": + continue + try: + os.rmdir(os.path.join(root, name)) + except OSError: + pass def mount(self, base_on = None, cachedir = None): """Setup the target filesystem in preparation for an install. From wtogami at fedoraproject.org Thu Sep 10 20:03:57 2009 From: wtogami at fedoraproject.org (=?utf-8?b?V2FycmVuIFRvZ2FtaSDnoKXkuIrli4c=?=) Date: Thu, 10 Sep 2009 20:03:57 +0000 (UTC) Subject: [Fedora-livecd-list] Makefile Message-ID: <20090910200357.101061201EF@lists.fedorahosted.org> Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 0efc40ac0433cc1cd2a6702f4a3acf0621488940 Author: Warren Togami Date: Thu Sep 10 16:02:45 2009 -0400 version 027 diff --git a/Makefile b/Makefile index f208c41..76f1580 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -VERSION = 026 +VERSION = 027 INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} From wtogami at fedoraproject.org Thu Sep 10 20:05:59 2009 From: wtogami at fedoraproject.org (=?utf-8?b?V2FycmVuIFRvZ2FtaSDnoKXkuIrli4c=?=) Date: Thu, 10 Sep 2009 20:05:59 +0000 (UTC) Subject: [Fedora-livecd-list] Changes to 'refs/tags/livecd-tools-027' Message-ID: <20090910200559.884361201EF@lists.fedorahosted.org> Changes since livecd-tools-023: Jason Farrell (2): Make overlay space requirements clearer small fix for --multi mode Jeremy Katz (29): Revert "creator: "-d" opt and matching setdebug() method that gets rpm in debug mode" Fsck after resize to catch/fix problems (#497377) Return return code from fsck in case we want to do something with it Fix up ppc live image creation (#497193) Raise an error if the fsck finds problems More ppc syntax fixing (#497193) Bump version Bind mount /dev/shm also (#502921) Update for current options (#505742) Don't error out with SELinux disabled on the host (#508402) Use resize2fs -M instead of binary search Consolidate calls to fsck Store a copy of the filesystem image before resize Don't continue if the fs unmount fails Add a new exception type for resize errors Also, don't lose resize2fs output (per request of sandeen) Include new error definition which I apparently didn't commit Make live image a hybrid Use system-config-keyboard's bits in preference to rhpl.keyboard Bumpv ersion If resize2fs fails, raise an error also (related to #517222) Add a sleep to try to avoid tracebacks with snapshot removal (#506644) Apparently the python traceback isn't clear enough (#517841) Fix my stupid typo. *sigh* Support dracut based initrds Use resize2fs -M (minimal) more Bump version Sleep to avoid races (#517477) Fix traceback when implantisomd5 isn't available (Ron Yorston) Josh Boyer (1): Fix ppc creation Marc Herbert (1): cpio "-L" to dereference any symbolic link to the actual ISO Martin Dengler (1): don't need to checkMBR() for loop devices Martin Langhoff (1): creator: "-d" opt and matching setdebug() method that gets rpm in debug mode Matthias Clasen (1): Switch to using blkid instead of vol_id (#506360) Warren Togami (5): chattr -i extlinux.sys dracut output image filename s/initrd-generic/initramfs/ ppc live was trying to copy the wrong initrd filename Properly clean up fake /selinux directory during teardown version 027 --- Makefile | 2 config/livecd-fedora-minimal.ks | 1 docs/livecd-iso-to-disk.pod | 18 +++++++ imgcreate/creator.py | 23 ++++++---- imgcreate/errors.py | 2 imgcreate/fs.py | 77 ++++++++++++++++++++------------- imgcreate/kickstart.py | 12 ++--- imgcreate/live.py | 91 ++++++++++++++++++++++++++++------------ tools/livecd-iso-to-disk.sh | 39 ++++++++++------- tools/livecd-iso-to-pxeboot.sh | 2 10 files changed, 177 insertions(+), 90 deletions(-) --- From farrellj at gmail.com Fri Sep 11 14:10:21 2009 From: farrellj at gmail.com (Jason Farrell) Date: Fri, 11 Sep 2009 10:10:21 -0400 Subject: [Fedora-livecd-list] livecd-iso-to-disk.sh: fix free space calc Message-ID: Hi, I noticed a stupid bug with my previous patch to show better free space requirements. WRONG: echo "= To fit, free or decrease requested size total by: $(($tba - $free + $tbd))" SHOULD BE: echo "= To fit, free or decrease requested size total by: $(($tba - $(($free + $tbd))))" -- Jason 'zcat' Farrell From jgregusk at redhat.com Fri Sep 11 20:47:58 2009 From: jgregusk at redhat.com (Jay Greguske) Date: Fri, 11 Sep 2009 16:47:58 -0400 Subject: [Fedora-livecd-list] Unnecessary SELinux Failure Condition? Message-ID: <4AAAB77E.2060803@redhat.com> Hello, While using livecd-creator and poking around the code, I found a check that I don't understand the reason for. livecd-creator will bail out if the host has SELinux disabled and the kickstart file requests it be enabled. Why is that? I would think that if SELinux was disabled but you still had the policy available, that would be all you need to build a properly labeled image. Out of curiosity I made changes to the code just to see what would happen. I attached them to this mail for reference, NOT as proposed changes to be applied to the livecd-tools code. On an F10 system with SELinux disabled I was able to build a working livecd image that I could boot and play around in. SELinux was being enforced in the image too. I was able to do this with a RHEL 5 kernel as well, just to see if maybe something had changed with an earlier version of SELinux. Perhaps the failure condition is no longer necessary? Thanks in advance, - Jay -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Dirty-removal-of-selinux-failure-condition.patch Type: text/x-patch Size: 1860 bytes Desc: not available URL: From wtogami at fedoraproject.org Wed Sep 16 16:17:34 2009 From: wtogami at fedoraproject.org (=?utf-8?b?V2FycmVuIFRvZ2FtaSDnoKXkuIrli4c=?=) Date: Wed, 16 Sep 2009 16:17:34 +0000 (UTC) Subject: [Fedora-livecd-list] imgcreate/live.py Message-ID: <20090916161734.7FFDE1201BA@lists.fedorahosted.org> imgcreate/live.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit f6389a616ba162496f373e3ac21bbfec516b42cd Author: Warren Togami Date: Wed Sep 16 12:16:41 2009 -0400 This fixes dracut boot for LiveCD and LiveUSB without the requirement to have a filesystem label. diff --git a/imgcreate/live.py b/imgcreate/live.py index 85de975..ed3d563 100644 --- a/imgcreate/live.py +++ b/imgcreate/live.py @@ -416,7 +416,7 @@ menu hiddenrow 5 def __get_image_stanza(self, is_xen, isDracut, **args): if isDracut: - args["rootlabel"] = "live:LABEL=%(fslabel)s" % args + args["rootlabel"] = "live:CDLABEL=%(fslabel)s" % args else: args["rootlabel"] = "CDLABEL=%(fslabel)s" % args From wtogami at fedoraproject.org Wed Sep 16 17:44:43 2009 From: wtogami at fedoraproject.org (=?utf-8?b?V2FycmVuIFRvZ2FtaSDnoKXkuIrli4c=?=) Date: Wed, 16 Sep 2009 17:44:43 +0000 (UTC) Subject: [Fedora-livecd-list] tools/livecd-iso-to-disk.sh Message-ID: <20090916174443.6BDD41201BA@lists.fedorahosted.org> tools/livecd-iso-to-disk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 5f623257e4d80ac75ec3352e5ad6598e2df0f312 Author: Jason Farrell Date: Wed Sep 16 13:43:33 2009 -0400 Fix display of free space during livecd-iso-to-disk error message diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh index cd75153..3496214 100755 --- a/tools/livecd-iso-to-disk.sh +++ b/tools/livecd-iso-to-disk.sh @@ -491,7 +491,7 @@ if [ $tba -gt $(($free + $tbd)) ]; then echo "= Requested: $tba" echo "- Available: $(($free + $tbd))" echo "---------------------------" - echo "= To fit, free or decrease requested size total by: $(($tba - $free + $tbd))" + echo "= To fit, free or decrease requested size total by: $(($tba - $free - $tbd))" exitclean fi From wtogami at fedoraproject.org Wed Sep 16 17:52:51 2009 From: wtogami at fedoraproject.org (=?utf-8?b?V2FycmVuIFRvZ2FtaSDnoKXkuIrli4c=?=) Date: Wed, 16 Sep 2009 17:52:51 +0000 (UTC) Subject: [Fedora-livecd-list] Makefile Message-ID: <20090916175251.3B7241201BA@lists.fedorahosted.org> Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit b19d0851ec753da50b97bfce5d06440669141582 Author: Warren Togami Date: Wed Sep 16 13:51:59 2009 -0400 version 028 diff --git a/Makefile b/Makefile index 76f1580..18dcba6 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -VERSION = 027 +VERSION = 028 INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} From jgregusk at redhat.com Fri Sep 18 14:26:19 2009 From: jgregusk at redhat.com (Jay Greguske) Date: Fri, 18 Sep 2009 10:26:19 -0400 Subject: [Fedora-livecd-list] Re: Unnecessary SELinux Failure Condition? In-Reply-To: <4AAAB816.3040807@redhat.com> References: <4AAAB77E.2060803@redhat.com> <4AAAB816.3040807@redhat.com> Message-ID: <4AB3988B.20802@redhat.com> Daniel J Walsh wrote: > On 09/11/2009 04:47 PM, Jay Greguske wrote: > >> Hello, >> >> While using livecd-creator and poking around the code, I found a check >> that I don't understand the reason for. livecd-creator will bail out if >> the host has SELinux disabled and the kickstart file requests it be >> enabled. Why is that? I would think that if SELinux was disabled but you >> still had the policy available, that would be all you need to build a >> properly labeled image. >> >> Out of curiosity I made changes to the code just to see what would >> happen. I attached them to this mail for reference, NOT as proposed >> changes to be applied to the livecd-tools code. On an F10 system with >> SELinux disabled I was able to build a working livecd image that I could >> boot and play around in. SELinux was being enforced in the image too. I >> was able to do this with a RHEL 5 kernel as well, just to see if maybe >> something had changed with an earlier version of SELinux. >> >> Perhaps the failure condition is no longer necessary? >> >> Thanks in advance, >> - Jay >> > Yes I think that is no longer necessary. And it should definitely be supported. > > Attached is a cleaner patch that removes the check and some other unnecessary code (thanks Dan). With this users should be able to build livecd images that have SELinux enabled on an SELinux-disabled host. I've tested this on an F10 system with an F10 and a RHEL 5 kernel. Both kernels I was able to build images with the SELinux enabled and disabled on the host (but always enabled in the kickstart file). Let me know what you guys think! Thanks, - Jay -------------- next part -------------- A non-text attachment was scrubbed... Name: remove-unnecessary-selinux-check.patch Type: text/x-patch Size: 2972 bytes Desc: not available URL: From peter.scheie at visionshareinc.com Fri Sep 18 16:23:37 2009 From: peter.scheie at visionshareinc.com (Peter Scheie) Date: Fri, 18 Sep 2009 11:23:37 -0500 Subject: [Fedora-livecd-list] Centos LiveCD project page offline? Message-ID: <1253291017.8540.178.camel@pscheie-ubuntu810> I haven't been able to reach the CentOS LiveCD page at https://projects.centos.org/trac/livecd/ for a few days now. Anyone know if it's offline? Or is it just me? Peter From patrice.guay at nanotechnologies.qc.ca Fri Sep 18 16:28:25 2009 From: patrice.guay at nanotechnologies.qc.ca (Patrice Guay) Date: Fri, 18 Sep 2009 12:28:25 -0400 Subject: [Fedora-livecd-list] Centos LiveCD project page offline? In-Reply-To: <1253291017.8540.178.camel@pscheie-ubuntu810> References: <1253291017.8540.178.camel@pscheie-ubuntu810> Message-ID: <4AB3B529.9080809@nanotechnologies.qc.ca> Peter Scheie wrote: > I haven't been able to reach the CentOS LiveCD page at > https://projects.centos.org/trac/livecd/ for a few days now. Anyone > know if it's offline? Or is it just me? > It is offline. I don't know when it will come back online. -- Patrice From mihirkparmar2009 at gmail.com Tue Sep 22 06:23:42 2009 From: mihirkparmar2009 at gmail.com (Mihir parmar) Date: Tue, 22 Sep 2009 11:53:42 +0530 Subject: [Fedora-livecd-list] request for free fedora cd Message-ID: res. sir, i here by submit my request for free cd. Name:Mihir K.Parmar Address:Asarwa marathi school-2 Opp. Vijay Mill, Naroda road Ahmedabad-380025 City:Ahmedabad State:Gujarat Country:India -------------- next part -------------- An HTML attachment was scrubbed... URL: From sundaram at fedoraproject.org Tue Sep 22 10:19:06 2009 From: sundaram at fedoraproject.org (Rahul Sundaram) Date: Tue, 22 Sep 2009 15:49:06 +0530 Subject: [Fedora-livecd-list] request for free fedora cd In-Reply-To: References: Message-ID: <4AB8A49A.7070104@fedoraproject.org> On 09/22/2009 11:53 AM, Mihir parmar wrote: > res. sir, i here by submit my request for free cd. > Name:Mihir K.Parmar > Address:Asarwa marathi school-2 > Opp. Vijay Mill, Naroda road > Ahmedabad-380025 > City:Ahmedabad > State:Gujarat > Country:India Not the right place. http://fedoraproject.org/wiki/Distribution/FreeMedia Rahul From dhuff at redhat.com Tue Sep 22 19:31:05 2009 From: dhuff at redhat.com (David Huff) Date: Tue, 22 Sep 2009 15:31:05 -0400 Subject: [Fedora-livecd-list] edit-livecd tool Message-ID: <4AB925F9.9010600@redhat.com> We have been working on a bash script used for opening up livecd images to add and/or edit files with out having to rebuild the iso image. This script is useful for people who don't have the development and yum infrastructure/repos set up to build livecd's from scratch. This is especially useful for custom livecd images, like the ovirt-node project[1]. We agree that changes to packaging and binaries should always be done by modifying kickstart and rebuilding the image via livecd-creator. But if all you want to do is add/edit a config file, public key for SSH, or change the root password this can be done with the edit-livecd script. This is the second generation of the edit-livecd tool that replaces our original bash script with a python version and aims to reuse as much as the livecd-creator libraries as possible. The main reason for the new creator class is to avoid the need for a kisckstart file in order to edit an existing livecd image. I am Looking for comments and feedback on this approach. We would eventual like for something like this to be included in Livecd-tools, and if this approach is accepted I will work to break this out into smaller patches and submit to the list. -D [1] http://ovirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: edit-livecd.py Type: text/x-python Size: 11970 bytes Desc: not available URL: From fcrippa at byte-code.com Thu Sep 24 13:03:49 2009 From: fcrippa at byte-code.com (Francesco Crippa) Date: Thu, 24 Sep 2009 15:03:49 +0200 (CEST) Subject: [Fedora-livecd-list] livecd-iso-to-pxe problem In-Reply-To: <540997925.185301253797121029.JavaMail.root@mail.byte-code.com> Message-ID: <1726604298.185321253797429675.JavaMail.root@mail.byte-code.com> Hi guys, I've got a problem with the script "livecd-iso-to-pxe"... It creates the right files (under /tftboot directory) but I can't pxeboot a machine with this configuration. During the pxeboot, initrd is loaded and kernel starts the execution, but it looks like it can't run (or find) the init process... Have you ever got this problem before? Unfortunately I haven't got any error message to show you (just kernel logs on the console during the boot... but without error... just the kernel, no messages from init script...). I'm using fedora11 Le me know if you know a solution for this problem Thanks Francesco -- Francesco Crippa fcrippa at byte-code.com http://people.byte-code.com/fcrippa From katzj at fedoraproject.org Fri Sep 25 03:28:46 2009 From: katzj at fedoraproject.org (Jeremy Katz) Date: Thu, 24 Sep 2009 23:28:46 -0400 Subject: [Fedora-livecd-list] Re: Unnecessary SELinux Failure Condition? In-Reply-To: <4AB3988B.20802@redhat.com> References: <4AAAB77E.2060803@redhat.com> <4AAAB816.3040807@redhat.com> <4AB3988B.20802@redhat.com> Message-ID: <71b2a8b80909242028w2c5576b0w937d9eb9aa73fbd0@mail.gmail.com> On Fri, Sep 18, 2009 at 10:26 AM, Jay Greguske wrote: > Daniel J Walsh wrote: >> On 09/11/2009 04:47 PM, Jay Greguske wrote: >>> While using livecd-creator and poking around the code, I found a check >>> that I don't understand the reason for. livecd-creator will bail out if >>> the host has SELinux disabled and the kickstart file requests it be >>> enabled. Why is that? I would think that if SELinux was disabled but you >>> still had the policy available, that would be all you need to build a >>> properly labeled image. [snip] >>> Perhaps the failure condition is no longer necessary? >>> >> Yes I think that is no longer necessary. ?And it should definitely be supported. >> > Attached is a cleaner patch that removes the check and some other > unnecessary code (thanks Dan). With this users should be able to build > livecd images that have SELinux enabled on an SELinux-disabled host. > I've tested this on an F10 system with an F10 and a RHEL 5 kernel. Both > kernels I was able to build images with the SELinux enabled and disabled > on the host (but always enabled in the kickstart file). There have been some problems more recently with the booleans stuff if SELinux isn't enabled. Does that all end up working correctly still? I'm not fundamentally opposed to the patch; it's just historically been something which didn't work. - Jeremy From jgregusk at redhat.com Fri Sep 25 12:59:39 2009 From: jgregusk at redhat.com (Jay Greguske) Date: Fri, 25 Sep 2009 08:59:39 -0400 Subject: [Fedora-livecd-list] Re: Unnecessary SELinux Failure Condition? In-Reply-To: <71b2a8b80909242028w2c5576b0w937d9eb9aa73fbd0@mail.gmail.com> References: <4AAAB77E.2060803@redhat.com> <4AAAB816.3040807@redhat.com> <4AB3988B.20802@redhat.com> <71b2a8b80909242028w2c5576b0w937d9eb9aa73fbd0@mail.gmail.com> Message-ID: <4ABCBEBB.2040000@redhat.com> Jeremy Katz wrote: > On Fri, Sep 18, 2009 at 10:26 AM, Jay Greguske wrote: > >> Daniel J Walsh wrote: >> >>> On 09/11/2009 04:47 PM, Jay Greguske wrote: >>> >>>> While using livecd-creator and poking around the code, I found a check >>>> that I don't understand the reason for. livecd-creator will bail out if >>>> the host has SELinux disabled and the kickstart file requests it be >>>> enabled. Why is that? I would think that if SELinux was disabled but you >>>> still had the policy available, that would be all you need to build a >>>> properly labeled image. >>>> > [snip] > >>>> Perhaps the failure condition is no longer necessary? >>>> >>>> >>> Yes I think that is no longer necessary. And it should definitely be supported. >>> >>> >> Attached is a cleaner patch that removes the check and some other >> unnecessary code (thanks Dan). With this users should be able to build >> livecd images that have SELinux enabled on an SELinux-disabled host. >> I've tested this on an F10 system with an F10 and a RHEL 5 kernel. Both >> kernels I was able to build images with the SELinux enabled and disabled >> on the host (but always enabled in the kickstart file). >> > > There have been some problems more recently with the booleans stuff if > SELinux isn't enabled. Does that all end up working correctly still? > > I'm not fundamentally opposed to the patch; it's just historically > been something which didn't work. > > - Jeremy > I'll look into it. Are there any you have in mind specifically? - Jay From katzj at fedoraproject.org Fri Sep 25 17:58:57 2009 From: katzj at fedoraproject.org (Jeremy Katz) Date: Fri, 25 Sep 2009 13:58:57 -0400 Subject: [Fedora-livecd-list] Re: Unnecessary SELinux Failure Condition? In-Reply-To: <4ABCBEBB.2040000@redhat.com> References: <4AAAB77E.2060803@redhat.com> <4AAAB816.3040807@redhat.com> <4AB3988B.20802@redhat.com> <71b2a8b80909242028w2c5576b0w937d9eb9aa73fbd0@mail.gmail.com> <4ABCBEBB.2040000@redhat.com> Message-ID: <71b2a8b80909251058q1e9675fbn911ee050fe21e298@mail.gmail.com> On Fri, Sep 25, 2009 at 8:59 AM, Jay Greguske wrote: > Jeremy Katz wrote: >> There have been some problems more recently with the booleans stuff if >> SELinux isn't enabled. ?Does that all end up working correctly still? >> > I'll look into it. Are there any you have in mind specifically? Dan might remember better than I -- I vaguely remember that a lot of the home directory bits and also some of the xguest stuff requires working booleans - Jeremy From apevec at gmail.com Mon Sep 28 13:04:30 2009 From: apevec at gmail.com (Alan Pevec) Date: Mon, 28 Sep 2009 15:04:30 +0200 Subject: [Fedora-livecd-list] livecd-iso-to-pxe problem In-Reply-To: <1726604298.185321253797429675.JavaMail.root@mail.byte-code.com> References: <540997925.185301253797121029.JavaMail.root@mail.byte-code.com> <1726604298.185321253797429675.JavaMail.root@mail.byte-code.com> Message-ID: <2be7262f0909280604v5659c1aeh4779c9ba2fff31ad@mail.gmail.com> On Thu, Sep 24, 2009 at 3:03 PM, Francesco Crippa wrote: > Hi guys, > > I've got a problem with the script "livecd-iso-to-pxe"... It creates the right files (under /tftboot directory) but I can't pxeboot a machine with this configuration. > > During the pxeboot, initrd is loaded and kernel starts the execution, but it looks like it can't run (or find) the init process... > > Have you ever got this problem before? > > Unfortunately I haven't got any error message to show you (just kernel logs on the console during the boot... but without error... just the kernel, no messages from init script...). I'm using fedora11 > > Le me know if you know a solution for this problem Seems like the issue we had with oVirt Node PXE boot on F11 - https://www.redhat.com/archives/ovirt-devel/2009-June/msg00136.html Try livecd-iso-to-pxeboot from our patched RPM http://ovirt.org/repos/ovirt/11/x86_64/livecd-tools-024-1ovirt.fc11.x86_64.rpm Cheers, Alan From fcrippa at byte-code.com Tue Sep 29 08:21:52 2009 From: fcrippa at byte-code.com (Francesco Crippa) Date: Tue, 29 Sep 2009 10:21:52 +0200 (CEST) Subject: [Fedora-livecd-list] livecd-iso-to-pxe problem In-Reply-To: <2be7262f0909280604v5659c1aeh4779c9ba2fff31ad@mail.gmail.com> Message-ID: <484129724.195911254212512453.JavaMail.root@mail.byte-code.com> ----- "Alan Pevec" wrote: > [...] > Seems like the issue we had with oVirt Node PXE boot on F11 - > https://www.redhat.com/archives/ovirt-devel/2009-June/msg00136.html > Try livecd-iso-to-pxeboot from our patched RPM > http://ovirt.org/repos/ovirt/11/x86_64/livecd-tools-024-1ovirt.fc11.x86_64.rpm Hi Alan, yes, it is! now it works like a charm :-) Thanks Francesco -- Francesco Crippa fcrippa at byte-code.com http://people.byte-code.com/fcrippa From jgregusk at redhat.com Tue Sep 29 19:45:09 2009 From: jgregusk at redhat.com (Jay Greguske) Date: Tue, 29 Sep 2009 15:45:09 -0400 Subject: [Fedora-livecd-list] Re: Unnecessary SELinux Failure Condition? In-Reply-To: <71b2a8b80909251058q1e9675fbn911ee050fe21e298@mail.gmail.com> References: <4AAAB77E.2060803@redhat.com> <4AAAB816.3040807@redhat.com> <4AB3988B.20802@redhat.com> <71b2a8b80909242028w2c5576b0w937d9eb9aa73fbd0@mail.gmail.com> <4ABCBEBB.2040000@redhat.com> <71b2a8b80909251058q1e9675fbn911ee050fe21e298@mail.gmail.com> Message-ID: <4AC263C5.2040305@redhat.com> Jeremy Katz wrote: > On Fri, Sep 25, 2009 at 8:59 AM, Jay Greguske wrote: > >> Jeremy Katz wrote: >> >>> There have been some problems more recently with the booleans stuff if >>> SELinux isn't enabled. Does that all end up working correctly still? >>> >>> >> I'll look into it. Are there any you have in mind specifically? >> > > Dan might remember better than I -- I vaguely remember that a lot of > the home directory bits and also some of the xguest stuff requires > working booleans > > - Jeremy > I installed xguest to a running livecd (desktop ks file) and played with two booleans related to it: browser_write_xguest_data, and xguest_connect_network. With the former turned off the Guest account could not download files from random internet sites, and with the latter it couldn't connect at all, so I'd say they were functioning as expected. I'm pretty confident SELinux booleans are working correctly with these changes. If you have other tests to suggest I'd be happy to try them out. Thanks, - Jay From jgregusk at redhat.com Tue Sep 29 20:32:24 2009 From: jgregusk at redhat.com (Jay Greguske) Date: Tue, 29 Sep 2009 16:32:24 -0400 Subject: [Fedora-livecd-list] Re: Unnecessary SELinux Failure Condition? In-Reply-To: <4AC26ABA.5080206@redhat.com> References: <4AAAB77E.2060803@redhat.com> <4AAAB816.3040807@redhat.com> <4AB3988B.20802@redhat.com> <71b2a8b80909242028w2c5576b0w937d9eb9aa73fbd0@mail.gmail.com> <4ABCBEBB.2040000@redhat.com> <71b2a8b80909251058q1e9675fbn911ee050fe21e298@mail.gmail.com> <4AC263C5.2040305@redhat.com> <4AC26ABA.5080206@redhat.com> Message-ID: <4AC26ED8.8050102@redhat.com> Daniel J Walsh wrote: > On 09/29/2009 03:45 PM, Jay Greguske wrote: > >> Jeremy Katz wrote: >> >>> On Fri, Sep 25, 2009 at 8:59 AM, Jay Greguske wrote: >>> >>> >>>> Jeremy Katz wrote: >>>> >>>> >>>>> There have been some problems more recently with the booleans stuff if >>>>> SELinux isn't enabled. Does that all end up working correctly still? >>>>> >>>>> >>>>> >>>> I'll look into it. Are there any you have in mind specifically? >>>> >>>> >>> Dan might remember better than I -- I vaguely remember that a lot of >>> the home directory bits and also some of the xguest stuff requires >>> working booleans >>> >>> - Jeremy >>> >>> >> I installed xguest to a running livecd (desktop ks file) and played with >> two booleans related to it: browser_write_xguest_data, and >> xguest_connect_network. With the former turned off the Guest account >> could not download files from random internet sites, and with the latter >> it couldn't connect at all, so I'd say they were functioning as >> expected. I'm pretty confident SELinux booleans are working correctly >> with these changes. If you have other tests to suggest I'd be happy to >> try them out. >> >> Thanks, >> - Jay >> > How much work would it be to create a livecd with only an xguest login. > Random Root password and no user accounts. > > So the cd could only run xguest. I know if you can boot the cd you can beat the system, but it might be a cool demo. > Should be pretty easy: you just need the right kickstart configuration file. While things are quiet this week I'll see if I can produce that for you.