From patrice.guay at nanotechnologies.qc.ca Sat Dec 1 14:53:55 2007 From: patrice.guay at nanotechnologies.qc.ca (Patrice Guay) Date: Sat, 01 Dec 2007 09:53:55 -0500 Subject: [Fedora-livecd-list] Using livecd-tools-013 to create a CentOS 5 LiveCD Message-ID: <1196520835.1154.20.camel@sorcor.nanotechnologies.qc.ca> I recently updated livecd-tools from version 009 to 013. I plan on using version 013 to build a CentOS 5 LiveCD. I managed to create a minimal LiveCD. Here are the steps I had to take in order to get a usable livecd-creator script: 1. There is one occurence of a "try, except, finally" python structure. I had to reformulate it in order to remain compatible with python 2.4 2. The livecd-creator script assumes the existence of YumBase.close. This feature has been added in yum >= 3.1.7. This requirement should be updated in the SPEC file. 3. pykickstart >= 0.96 is required. 4. I made the "lvm info leakage" cleanup optional to avoid an error in case install_root/etc/lvm directory does not exist. Are some of these elements worth filling a bug in Bugzilla? -- Patrice From katzj at redhat.com Mon Dec 3 01:25:12 2007 From: katzj at redhat.com (Jeremy Katz) Date: Sun, 02 Dec 2007 20:25:12 -0500 Subject: [Fedora-livecd-list] Using livecd-tools-013 to create a CentOS 5 LiveCD In-Reply-To: <1196520835.1154.20.camel@sorcor.nanotechnologies.qc.ca> References: <1196520835.1154.20.camel@sorcor.nanotechnologies.qc.ca> Message-ID: <1196645112.3300.9.camel@localhost.localdomain> On Sat, 2007-12-01 at 09:53 -0500, Patrice Guay wrote: > 1. There is one occurence of a "try, except, finally" python structure. > I had to reformulate it in order to remain compatible with python 2.4 To be honest, I suspect we want more of these, not less. They make exception handling and cleanup so much simpler. > 2. The livecd-creator script assumes the existence of YumBase.close. > This feature has been added in yum >= 3.1.7. This requirement should be > updated in the SPEC file. Updated in git > 3. pykickstart >= 0.96 is required. Similarly updated > 4. I made the "lvm info leakage" cleanup optional to avoid an error in > case install_root/etc/lvm directory does not exist. In the API rework bits that I just pushed to the master on Friday, this has been improved by markmc to be a little bit more resilient for cases where LVM isn't present Jeremy From thiago.braga.santana at gmail.com Mon Dec 3 14:39:22 2007 From: thiago.braga.santana at gmail.com (Thiago Braga Santana) Date: Mon, 3 Dec 2007 12:39:22 -0200 Subject: [Fedora-livecd-list] Image /isolinux/splash.jpg In-Reply-To: <1196436805.21849.5.camel@localhost.localdomain> References: <1196436805.21849.5.camel@localhost.localdomain> Message-ID: Again, thank Jeremy. But how can I apply this to my custom image for my file. "iso"? This process is performed using the program when I mkisofs to create iso? I look forward on. 2007/11/30, Jeremy Katz : > > On Thu, 2007-11-29 at 18:30 -0200, Thiago Braga Santana wrote: > > Hello to everyone's list. > > > > I need to learn how to customize the image /isolinux/splash.jpg of > > LiveCd. > > > > Can anyone tell me? > > The file /usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg is used from > the package providing system-logos. So you'll want to modify that > package (fedora-logos or generic-logos generally) > > Jeremy > > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thiago.braga.santana at gmail.com Mon Dec 3 19:07:53 2007 From: thiago.braga.santana at gmail.com (Thiago Braga Santana) Date: Mon, 3 Dec 2007 17:07:53 -0200 Subject: [Fedora-livecd-list] Customize users of the image Live In-Reply-To: <1196084635.31435.11.camel@localhost.localdomain> References: <1196084635.31435.11.camel@localhost.localdomain> Message-ID: Very thanks Jeremy 2007/11/26, Jeremy Katz : > > On Thu, 2007-11-22 at 13:00 -0200, Thiago Braga Santana wrote: > > How can I do for the standard Windows Manager, log on the "root" > > instead of the user "fedora" in the environment "Live"? > > How should I proceed to the image LiveCd that I am creating, contains > > only the user "root"? > > If you look at the livecd-fedora-8-base-desktop.ks and > livecd-fedora-8-desktop.ks and go down into the %post section, you'll > see where the fedora user is created as well as where the user is added > to be auto-logged into gdm. If you don't want this behavior, then > you'll need to adjust the config you use to not run those commands > > Jeremy > > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From katzj at fedoraproject.org Mon Dec 3 19:09:47 2007 From: katzj at fedoraproject.org (Jeremy Katz) Date: Mon, 3 Dec 2007 14:09:47 -0500 Subject: [Fedora-livecd-list] 2 commits - config/livecd-fedora-developer.ks livecd-tools.spec Message-ID: <200712031909.lB3J9lI7004465@cvs-int.fedora.redhat.com> config/livecd-fedora-developer.ks | 1 + livecd-tools.spec | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) New commits: commit 5041be1193bfa5dca6d948a52d22700344909c01 Author: Jeremy Katz Date: Mon Dec 3 08:09:43 2007 -0500 add pida to the developer spin (lmacken) diff --git a/config/livecd-fedora-developer.ks b/config/livecd-fedora-developer.ks index 02f984d..bfa1496 100644 --- a/config/livecd-fedora-developer.ks +++ b/config/livecd-fedora-developer.ks @@ -24,6 +24,7 @@ quilt anjuta anjuta-docs codeblocks +pida # General developer tools @authoring-and-publishing commit 9f481deebe10fe2a96ffbee0a5a25ca682cc6af8 Author: Jeremy Katz Date: Sun Dec 2 20:25:51 2007 -0500 Bump some requirements (noticed by Patrice Guay ) diff --git a/livecd-tools.spec b/livecd-tools.spec index 0950d58..542283d 100644 --- a/livecd-tools.spec +++ b/livecd-tools.spec @@ -12,10 +12,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: util-linux Requires: coreutils Requires: e2fsprogs -Requires: yum >= 3.0.0 +Requires: yum >= 3.1.7 Requires: mkisofs Requires: squashfs-tools -Requires: pykickstart +Requires: pykickstart >= 0.96 Requires: dosfstools >= 2.11-8 Requires: isomd5sum %ifarch %{ix86} x86_64 From ml at deadbabylon.de Tue Dec 4 11:08:56 2007 From: ml at deadbabylon.de (Sebastian Vahl) Date: Tue, 4 Dec 2007 12:08:56 +0100 Subject: [Fedora-livecd-list] Makefile is broken in git Message-ID: <200712041209.06378.ml@deadbabylon.de> Hi. The Makefile in git is broken. First it still points to "config/livecd-creator" which is now in "tools/" (easyfix). Second it doesn't check for or install the python module imgcreate: Traceback (most recent call last): File "tools/livecd-creator", line 26, in import imgcreate ImportError: No module named imgcreate Sebastian -------------- 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 ml at deadbabylon.de Tue Dec 4 11:28:07 2007 From: ml at deadbabylon.de (Sebastian Vahl) Date: Tue, 4 Dec 2007 12:28:07 +0100 Subject: [Fedora-livecd-list] Workaround for the xulrunner/firefox file conflict? Message-ID: <200712041228.07489.ml@deadbabylon.de> Hi. I want to start work at the kde4 livecd. My problem atm is that firefox and xulrunner both want's to install /etc/gre.d/gre.conf. And I'm not able to tell livecd-creator to not to install one or both of these packages. (I've tried to remove it in livecd-fedora-base-desktop.ks and/or livecd-fedora-kde.ks manually). The error here is: Error creating Live CD : Unable to install: [('file /etc/gre.d/gre.conf conflicts between attempted installs of firefox-2.0.0.10-1.fc9.i386 and xulrunner-1.9-0.beta1.3.fc9.i386', (6, '/etc/gre.d/gre.conf', 0L))] Perhaps another package is pulling in one of them? Is there a way to get livecd-creator more verbose so that I'm seeing why it tries to install one of them? Sebastian -------------- 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 katzj at redhat.com Tue Dec 4 14:39:21 2007 From: katzj at redhat.com (Jeremy Katz) Date: Tue, 04 Dec 2007 09:39:21 -0500 Subject: [Fedora-livecd-list] Makefile is broken in git In-Reply-To: <200712041209.06378.ml@deadbabylon.de> References: <200712041209.06378.ml@deadbabylon.de> Message-ID: <1196779162.3300.50.camel@localhost.localdomain> On Tue, 2007-12-04 at 12:08 +0100, Sebastian Vahl wrote: > The Makefile in git is broken. First it still points > to "config/livecd-creator" which is now in "tools/" (easyfix). > > Second it doesn't check for or install the python module imgcreate: Yeah, there's likely to still be a little bit of flux so I haven't taken the time to do the Makefile jiggering especially as it's straight-forward enough to just run out of the checkout. Of course, if someone wanted to fix it up, I wouldn't complain. The easiest way might actually be to switch it to use distutils as opposed to just a generic makefile Jeremy From katzj at redhat.com Tue Dec 4 14:54:36 2007 From: katzj at redhat.com (Jeremy Katz) Date: Tue, 04 Dec 2007 09:54:36 -0500 Subject: [Fedora-livecd-list] Workaround for the xulrunner/firefox file conflict? In-Reply-To: <200712041228.07489.ml@deadbabylon.de> References: <200712041228.07489.ml@deadbabylon.de> Message-ID: <1196780076.3300.58.camel@localhost.localdomain> On Tue, 2007-12-04 at 12:28 +0100, Sebastian Vahl wrote: > I want to start work at the kde4 livecd. My problem atm is that firefox and > xulrunner both want's to install /etc/gre.d/gre.conf. And I'm not able to > tell livecd-creator to not to install one or both of these packages. (I've > tried to remove it in livecd-fedora-base-desktop.ks and/or > livecd-fedora-kde.ks manually). > > The error here is: > > Error creating Live CD : Unable to install: [('file /etc/gre.d/gre.conf > conflicts between attempted installs of firefox-2.0.0.10-1.fc9.i386 and > xulrunner-1.9-0.beta1.3.fc9.i386', (6, '/etc/gre.d/gre.conf', 0L))] Yeah, this is a package bug in the current versions. I've thrown something at caillon as it's been going on for a while too long. One solution would be to exclude the rawhide xulrunner and stick a previous version (xulrunner-1.9-0.beta1.1.fc9) in another repo. > Perhaps another package is pulling in one of them? Is there a way to get > livecd-creator more verbose so that I'm seeing why it tries to install one of > them? `repoquery --whatrequires --alldeps xulrunner` will show you what requires xulrunner Jeremy From katzj at redhat.com Tue Dec 4 15:21:45 2007 From: katzj at redhat.com (Jeremy Katz) Date: Tue, 04 Dec 2007 10:21:45 -0500 Subject: [Fedora-livecd-list] Workaround for the xulrunner/firefox file conflict? In-Reply-To: <1196780076.3300.58.camel@localhost.localdomain> References: <200712041228.07489.ml@deadbabylon.de> <1196780076.3300.58.camel@localhost.localdomain> Message-ID: <1196781705.3300.74.camel@localhost.localdomain> On Tue, 2007-12-04 at 09:54 -0500, Jeremy Katz wrote: > On Tue, 2007-12-04 at 12:28 +0100, Sebastian Vahl wrote: > > I want to start work at the kde4 livecd. My problem atm is that firefox and > > xulrunner both want's to install /etc/gre.d/gre.conf. And I'm not able to > > tell livecd-creator to not to install one or both of these packages. (I've > > tried to remove it in livecd-fedora-base-desktop.ks and/or > > livecd-fedora-kde.ks manually). > > > > The error here is: > > > > Error creating Live CD : Unable to install: [('file /etc/gre.d/gre.conf > > conflicts between attempted installs of firefox-2.0.0.10-1.fc9.i386 and > > xulrunner-1.9-0.beta1.3.fc9.i386', (6, '/etc/gre.d/gre.conf', 0L))] > > Yeah, this is a package bug in the current versions. I've thrown > something at caillon as it's been going on for a while too long. One > solution would be to exclude the rawhide xulrunner and stick a previous > version (xulrunner-1.9-0.beta1.1.fc9) in another repo. And apparently a fix is in the works, but the build got hosed by the LDAP/SSL rev in rawhide Jeremy From ml at deadbabylon.de Tue Dec 4 15:31:18 2007 From: ml at deadbabylon.de (Sebastian Vahl) Date: Tue, 4 Dec 2007 16:31:18 +0100 Subject: [Fedora-livecd-list] Workaround for the xulrunner/firefox file conflict? In-Reply-To: <1196780076.3300.58.camel@localhost.localdomain> References: <200712041228.07489.ml@deadbabylon.de> <1196780076.3300.58.camel@localhost.localdomain> Message-ID: <200712041631.23125.ml@deadbabylon.de> Am Di 4.Dezember 2007 schrieb Jeremy Katz: > On Tue, 2007-12-04 at 12:28 +0100, Sebastian Vahl wrote: > > I want to start work at the kde4 livecd. My problem atm is that firefox > > and xulrunner both want's to install /etc/gre.d/gre.conf. And I'm not > > able to tell livecd-creator to not to install one or both of these > > packages. (I've tried to remove it in livecd-fedora-base-desktop.ks > > and/or > > livecd-fedora-kde.ks manually). > > > > The error here is: > > > > Error creating Live CD : Unable to install: [('file /etc/gre.d/gre.conf > > conflicts between attempted installs of firefox-2.0.0.10-1.fc9.i386 and > > xulrunner-1.9-0.beta1.3.fc9.i386', (6, '/etc/gre.d/gre.conf', 0L))] > > Yeah, this is a package bug in the current versions. I've thrown > something at caillon as it's been going on for a while too long. One > solution would be to exclude the rawhide xulrunner and stick a previous > version (xulrunner-1.9-0.beta1.1.fc9) in another repo. > > > Perhaps another package is pulling in one of them? Is there a way to get > > livecd-creator more verbose so that I'm seeing why it tries to install > > one of them? > > `repoquery --whatrequires --alldeps xulrunner` will show you what > requires xulrunner Ah. Missed the alldeps switch. thx. But even if I try to remove all of the listed packages the conflict still happens. And I don't want either xulrunner nor firefox on the livecd. Or is this maybe somehow related to the way livecd-creator checks the dependencies? Maybe because the defined packages are removed _after_ the check? I will try it with a modified local repo. But IMHO the best way get it work with the mirrors. Sebastian -------------- 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 thiago.braga.santana at gmail.com Tue Dec 4 19:18:53 2007 From: thiago.braga.santana at gmail.com (Thiago Braga Santana) Date: Tue, 4 Dec 2007 17:18:53 -0200 Subject: [Fedora-livecd-list] file kickstart "ks.cfg" In-Reply-To: References: <474B5803.4070108@shaw.ca> <1196123929.15904.13.camel@localhost.localdomain> Message-ID: Jeremy, thank you for your information. I still need to file KS.CFGoriginal, which was used in the development of LIVECD fedora-7-kde - i386.iso If you no longer have this file, you can at least spend some URL me so that I can download it? Thanks. > > > > 2007/11/26, Jeremy Katz < katzj at redhat.com>: > > > > On Mon, 2007-11-26 at 21:55 -0200, Thiago Braga Santana wrote: > > > But my question is: this is precisely the file that was used to create > > > this livecd? > > > > Yes, with the exception that I had to point to a slightly different repo > > > > as the release wasn't out yet and thus /pub/fedora/linux/releases/7 > > wasn't there :-) > > > > Jeremy > > > > > > -- > > Fedora-livecd-list mailing list > > Fedora-livecd-list at redhat.com > > https://www.redhat.com/mailman/listinfo/fedora-livecd-list > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmc.fedora at filteredperception.org Tue Dec 4 19:53:13 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Tue, 04 Dec 2007 13:53:13 -0600 Subject: [Fedora-livecd-list] file kickstart "ks.cfg" In-Reply-To: References: <474B5803.4070108@shaw.ca> <1196123929.15904.13.camel@localhost.localdomain> Message-ID: <4755B029.8050909@filteredperception.org> Thiago Braga Santana wrote: > Jeremy, thank you for your information. I still need to file KS.CFG > original, which was used in the development of LIVECD fedora-7-kde - > i386.iso > > If you no longer have this file, you can at least spend some URL me so > that I can download it? I thought this question was answered? Another possible way to get the file (other than the aforementioned rpm) might be gitweb- http://git.fedoraproject.org/?p=hosted/livecd;a=summary -dmc From dmc.fedora at filteredperception.org Tue Dec 4 19:59:02 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Tue, 04 Dec 2007 13:59:02 -0600 Subject: [Fedora-livecd-list] Image /isolinux/splash.jpg In-Reply-To: References: <1196436805.21849.5.camel@localhost.localdomain> Message-ID: <4755B186.3090007@filteredperception.org> Thiago Braga Santana wrote: > Again, thank Jeremy. > > But how can I apply this to my custom image for my file. "iso"? This > process is performed using the program when I mkisofs to create iso? livecd-creator invokes mkisofs for you. Prior to that I think livecd-creator copies the file /usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg as Jeremy mentioned. Thus if prior to that your kickstart's %post, or choice of rpm packages, changes that file, that should make the desired change visible in the output iso. Maybe now or in the future there will be a configuration in livecd-tools/kickstart to specify that. -dmc > > I look forward on. > > > 2007/11/30, Jeremy Katz >: > > On Thu, 2007-11-29 at 18:30 -0200, Thiago Braga Santana wrote: > > Hello to everyone's list. > > > > I need to learn how to customize the image /isolinux/splash.jpg of > > LiveCd. > > > > Can anyone tell me? > > The file /usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg is used from > the package providing system-logos. So you'll want to modify that > package (fedora-logos or generic-logos generally) > > Jeremy > > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list > > > > > ------------------------------------------------------------------------ > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list From bkearney at redhat.com Tue Dec 4 20:52:13 2007 From: bkearney at redhat.com (Bryan Kearney) Date: Tue, 04 Dec 2007 15:52:13 -0500 Subject: [Fedora-livecd-list] Post section in the kickstart file Message-ID: <4755BDFD.7070405@redhat.com> I am attempting to build a live cd where some of conifguration is done via a tarball. I added the following code to the %post of the kickstart %post cd /tmp wget http://www.foo.com/someTarball.tar tar -xvf someTarball.tar /tmp/setup.sh I get the following error: http://www.foo.com/someTarball.tar Resolving www.foo.com... failed: Temporary failure in name resolution. Is there a way to enable this type of network access? -- bk From katzj at redhat.com Wed Dec 5 03:31:48 2007 From: katzj at redhat.com (Jeremy Katz) Date: Tue, 04 Dec 2007 22:31:48 -0500 Subject: [Fedora-livecd-list] Post section in the kickstart file In-Reply-To: <4755BDFD.7070405@redhat.com> References: <4755BDFD.7070405@redhat.com> Message-ID: <1196825508.7206.12.camel@localhost.localdomain> On Tue, 2007-12-04 at 15:52 -0500, Bryan Kearney wrote: > I am attempting to build a live cd where some of conifguration is done > via a tarball. I added the following code to the %post of the kickstart The big problem is that you don't generally have a working reoslv.conf in the chroot if you're doing dhcp as the network. If you're running nscd on the host, then iirc, things will work. Also, you can write out an appropriate resolv.conf for your environment prior to the network operation Jeremy From CTuska at startek.com Wed Dec 5 21:40:49 2007 From: CTuska at startek.com (CTuska at startek.com) Date: Wed, 5 Dec 2007 14:40:49 -0700 Subject: [Fedora-livecd-list] issue with mkisofs Message-ID: <0B4B0F107E845241BF6F107440FC67360BCCDD@SRTEXCHVS01.corpit.startek.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello all, I got my LiveCD to build them I mounted the ISO and did the unsquashfs. Everything was ok but now I am trying to rebuild the CD and I am getting a error with mkisofs. I used this site as my guide http://www.kevinslonka.com/index.php?section=1&blog=137&page=1 Here is my error and command I used. [root at localhost live]# mkisofs -o /var/live/newcd.iso -b /var/live/isofiles/isolinux/isolinux.bin \ -c /var/live/isofiles/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table \ -J -r -hide-rr-moved -V Training /var/live/isofiles I: -input-charset not specified, using utf-8 (detected in locale settings) genisoimage: No such file or directory. Invalid node - ' -c'. [root at localhost live]# Any Help would be great.. Chris -----BEGIN PGP SIGNATURE----- Version: PGP Universal 2.6.3 Charset: iso-8859-1 wsBVAwUBR1ca4ndSn114QiNOAQhQAQgAv4HvkUlR3EZE6OeGLqn0ZbkJToZMggp4 TGNm52Zzo/hL89a3JpfwF37nhehdnIPulpIb56Vz+iMBkIdnyG9ReuYtY9eK7E5h HuhrHGh+fhFuBgsGd7ZdW37pA7URLHYADdQgrV8lucwb77YCYl1XjSrbBL0q1eEX 6yDvKm4egfG9dsdBn7mkxXf7FsUTHKUgLuoJlbwdgO7s8nKQZUMDk8dYHZTvte91 ud9BA7PBx720lEVNGkjXyr+pCAjyV8ZVXOGKJpP7yxaIkOuBItSkSCc6fSEObdA+ LYgMPUc35DZeQy//s7pUeID35/8XJ9KBskEj6QKIhxASWEyhgk7xSw== =nbBe -----END PGP SIGNATURE----- From CTuska at startek.com Wed Dec 5 23:52:09 2007 From: CTuska at startek.com (CTuska at startek.com) Date: Wed, 5 Dec 2007 16:52:09 -0700 Subject: [Fedora-livecd-list] issue with mkisofs In-Reply-To: <0B4B0F107E845241BF6F107440FC67360BCCDD@SRTEXCHVS01.corpit.startek.com> References: <0B4B0F107E845241BF6F107440FC67360BCCDD@SRTEXCHVS01.corpit.startek.com> Message-ID: <0B4B0F107E845241BF6F107440FC673604567F2B@SRTEXCHVS01.corpit.startek.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello all, Ok I used isomaster and made the CD, Worked great. But new issue, Every time I load the Live CD X11 errors with no screen. How can I setup X11 to be correct for each time it loads? Should I just change the Xconf file in the X11 dir? - -----Original Message----- From: fedora-livecd-list-bounces at redhat.com [mailto:fedora-livecd-list-bounces at redhat.com] On Behalf Of CTuska at startek.com Sent: Wednesday, December 05, 2007 2:41 PM To: fedora-livecd-list at redhat.com Subject: [Fedora-livecd-list] issue with mkisofs - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello all, I got my LiveCD to build them I mounted the ISO and did the unsquashfs. Everything was ok but now I am trying to rebuild the CD and I am getting a error with mkisofs. I used this site as my guide http://www.kevinslonka.com/index.php?section=1&blog=137&page=1 Here is my error and command I used. [root at localhost live]# mkisofs -o /var/live/newcd.iso -b /var/live/isofiles/isolinux/isolinux.bin \ -c /var/live/isofiles/isolinux/boot.cat -no-emul-boot -boot-load-size 4 - -boot-info-table \ -J -r -hide-rr-moved -V Training /var/live/isofiles I: -input-charset not specified, using utf-8 (detected in locale settings) genisoimage: No such file or directory. Invalid node - ' -c'. [root at localhost live]# Any Help would be great.. Chris - -----BEGIN PGP SIGNATURE----- Version: PGP Universal 2.6.3 Charset: iso-8859-1 wsBVAwUBR1ca4ndSn114QiNOAQhQAQgAv4HvkUlR3EZE6OeGLqn0ZbkJToZMggp4 TGNm52Zzo/hL89a3JpfwF37nhehdnIPulpIb56Vz+iMBkIdnyG9ReuYtY9eK7E5h HuhrHGh+fhFuBgsGd7ZdW37pA7URLHYADdQgrV8lucwb77YCYl1XjSrbBL0q1eEX 6yDvKm4egfG9dsdBn7mkxXf7FsUTHKUgLuoJlbwdgO7s8nKQZUMDk8dYHZTvte91 ud9BA7PBx720lEVNGkjXyr+pCAjyV8ZVXOGKJpP7yxaIkOuBItSkSCc6fSEObdA+ LYgMPUc35DZeQy//s7pUeID35/8XJ9KBskEj6QKIhxASWEyhgk7xSw== =nbBe - -----END PGP SIGNATURE----- - -- Fedora-livecd-list mailing list Fedora-livecd-list at redhat.com https://www.redhat.com/mailman/listinfo/fedora-livecd-list -----BEGIN PGP SIGNATURE----- Version: PGP Universal 2.6.3 Charset: us-ascii wsBVAwUBR1c5qndSn114QiNOAQjeJgf/cg5YSPN7VUsINAFe3Xg9qYmlF5nsOnQ6 QI9mUO3H0GEas5vtVRXM0SqORHWsZm1PvE697xhwMMuuf4d1K5z9pMLL4lF/72tB GqJ6jSLBUS7IpTios9UVFWL4tF9Iq73QePV1MXMvR1cOfECl1Sh0RO06nbzswz65 nmc0mfg4XdJMRY/FwgqptUVG5IHmMS7YJvgKh+q/AHNmoapIbusD5mAHIYxPFS/X a8wCUe/6CyAbcLU2+MtkjDXPzyYqsac3XN780Esh3Ji2dwx8xk3MkUIa4ZfCR+Ky Uq4vnCAWaYaJKmNVblBWz5J+9LJWIpgwDNLmVRLOa/EEA9YmwQuQsg== =Czqx -----END PGP SIGNATURE----- From Fedora.Nabble at PLATFORMedia.com Fri Dec 7 13:17:25 2007 From: Fedora.Nabble at PLATFORMedia.com (mdda) Date: Fri, 7 Dec 2007 05:17:25 -0800 (PST) Subject: [Fedora-livecd-list] liveinst fails after resize of image Message-ID: <14207396.post@talk.nabble.com> I have created a new Fedora spin 'EeeDora' specifically for the EeePC. The Live Image boots fine (very fine). Live install works in manual mode, but with a kickstart file (I'd like to make this completely automatic) Anaconda goes through the installation (writing packages=100%), but gives an exception in the last stages. This leaves the machine in an unusable state. What appears to be happening is that the root fs is not being mounted on /mnt/sysimage/ after the resize. Looking at /dev/sda1, I can see everything got installed up to that stage. anaconda None exception report Traceback (most recent call first): File "/usr/lib/anaconda/fsset.py", line 1202, in write f = open (prefix + "/etc/fstab", "w") File "/usr/lib/anaconda/livecd.py", line 313, in doPostInstall anaconda.id.fsset.write(anaconda.rootPath) File "/usr/lib/anaconda/backend.py", line 195, in doPostInstall anaconda.backend.doPostInstall(anaconda) File "/usr/lib/anaconda/dispatch.py", line 203, in moveStep rc = stepFunc(self.anaconda) File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext self.moveStep() File "/usr/lib/anaconda/gui.py", line 1048, in nextClicked self.anaconda.dispatch.gotoNext() File "/usr/lib/anaconda/iw/progress_gui.py", line 67, in renderCallback self.intf.icw.nextClicked() File "/usr/lib/anaconda/gui.py", line 1075, in handleRenderCallback self.currentWindow.renderCallback() IOError: [Errno 2] No such file or directory: '/mnt/sysimage/etc/fstab' http://www.nabble.com/file/p14207396/error1 error1 Just me hacking around... : If I force ext2 partitions to be mounted (by jamming isMountable() ) then anaconda gets to complete - but the machine is still unbootable because /dev/root doesn't get created/found properly. Can someone shed some light on this? My knowledge of Python approaches zero, so it's tricky to sort this out (particularly since I'm doing this on the small keyboard of the Eee, booted on the live image...) Thanks Martin :-) -- View this message in context: http://www.nabble.com/liveinst-fails-after-resize-of-image-tf4960453.html#a14207396 Sent from the Fedora Livecd List mailing list archive at Nabble.com. From dmc.fedora at filteredperception.org Fri Dec 7 19:37:32 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Fri, 07 Dec 2007 13:37:32 -0600 Subject: [Fedora-livecd-list] liveinst fails after resize of image In-Reply-To: <14207396.post@talk.nabble.com> References: <14207396.post@talk.nabble.com> Message-ID: <4759A0FC.3050306@filteredperception.org> mdda wrote: > I have created a new Fedora spin 'EeeDora' specifically for the EeePC. The > Live Image boots fine (very fine). Live install works in manual mode, but > with a kickstart file (I'd like to make this completely automatic) Anaconda > goes through the installation (writing packages=100%), but gives an > exception in the last stages. This leaves the machine in an unusable state. Running anaconda with a kickstart from a livecd, is something that I haven't tried to use at all, but have been meaning to. If this doesn't get fixed by someone else soon, at some point I'll attempt to recreate it, and debug it. -dmc > What appears to be happening is that the root fs is not being mounted on > /mnt/sysimage/ after the resize. Looking at /dev/sda1, I can see everything > got installed up to that stage. > > anaconda None exception report > Traceback (most recent call first): > File "/usr/lib/anaconda/fsset.py", line 1202, in write > f = open (prefix + "/etc/fstab", "w") > File "/usr/lib/anaconda/livecd.py", line 313, in doPostInstall > anaconda.id.fsset.write(anaconda.rootPath) > File "/usr/lib/anaconda/backend.py", line 195, in doPostInstall > anaconda.backend.doPostInstall(anaconda) > File "/usr/lib/anaconda/dispatch.py", line 203, in moveStep > rc = stepFunc(self.anaconda) > File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext > self.moveStep() > File "/usr/lib/anaconda/gui.py", line 1048, in nextClicked > self.anaconda.dispatch.gotoNext() > File "/usr/lib/anaconda/iw/progress_gui.py", line 67, in renderCallback > self.intf.icw.nextClicked() > File "/usr/lib/anaconda/gui.py", line 1075, in handleRenderCallback > self.currentWindow.renderCallback() > IOError: [Errno 2] No such file or directory: '/mnt/sysimage/etc/fstab' > > http://www.nabble.com/file/p14207396/error1 error1 > > > Just me hacking around... : If I force ext2 partitions to be mounted (by > jamming isMountable() ) then anaconda gets to complete - but the machine is > still unbootable because /dev/root doesn't get created/found properly. > > Can someone shed some light on this? My knowledge of Python approaches > zero, so it's tricky to sort this out (particularly since I'm doing this on > the small keyboard of the Eee, booted on the live image...) > > Thanks > Martin > :-) From ml at deadbabylon.de Fri Dec 7 23:45:03 2007 From: ml at deadbabylon.de (Sebastian Vahl) Date: Sat, 8 Dec 2007 00:45:03 +0100 Subject: [Fedora-livecd-list] two errors in liveinst Message-ID: <200712080045.08908.ml@deadbabylon.de> Just to say this first: Due to the current openssl rebuild marathon this problems maybe already fixed. My used anaconda version was anaconda-11.4.0.4-2. The second thing is that I'm trying this from one of my first version of my kde4-livecd tries. So maybe the error lies elsewhere. But to go ahead: I get this error message when starting "liveinst" directly from command line: FATAL: Module md not found. /usr/sbin/liveinst: line 40: /usr/sbin/swapoff: No such file or directory No volume groups found Probing for video card: nVidia Corporation NV17 [GeForce4 MX 440] 19:12:12 Starting graphical installation... Traceback (most recent call last): File "/usr/sbin/anaconda", line 861, in anaconda.id = instClass.installDataClass(anaconda, extraModules, anaconda.methodstr, opts.display_mode, anaconda.backend) File "/usr/lib/anaconda/instdata.py", line 314, in __init__ self.reset() File "/usr/lib/anaconda/instdata.py", line 90, in reset stat.S_ISBLK(os.stat("/dev/live")[stat.ST_MODE]): NameError: global name 'stat' is not defined If I should open a bug for that, please let me know. Sebastian -------------- 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 svahl at fedoraproject.org Sat Dec 8 01:43:56 2007 From: svahl at fedoraproject.org (Sebastian Vahl) Date: Fri, 7 Dec 2007 20:43:56 -0500 Subject: [Fedora-livecd-list] config/livecd-fedora-kde.ks Message-ID: <200712080143.lB81hu97007283@cvs-int.fedora.redhat.com> config/livecd-fedora-kde.ks | 68 ++++++++++++++++++++++---------------------- 1 files changed, 35 insertions(+), 33 deletions(-) New commits: commit 40ca06a845e8c81d3d29ee30f85a5a7f2d3c7af9 Author: Sebastian Vahl Date: Sat Dec 8 02:42:01 2007 +0100 Initial kde4 version: Don't expect this kickstart to be working. It's an initial version and also some packages are right building atm. Hopefully this will work when kde-3.97.0 is hitting rawhide (and the openssl rebuild marathon is finished then) diff --git a/config/livecd-fedora-kde.ks b/config/livecd-fedora-kde.ks index b004648..e514efd 100644 --- a/config/livecd-fedora-kde.ks +++ b/config/livecd-fedora-kde.ks @@ -1,45 +1,45 @@ %include livecd-fedora-base-desktop.ks +# WARNING: Don't expect this kickstart to be working. It's an initial version +# and also some packages are right building atm. KDE4 is also actual in a state +# where it needs some polishing. +# I you've ignored this warnings please fill bug report at: +# https://bugzilla.redhat.com +# http://bugs.kde.org/ + %packages - at kde-desktop +# don't use @kde-desktop for the moment (until it's complete kde4) +# KDE 4 +kdelibs +kdebase +kdebase-workspace +kdebase-runtime kdegames -k3b +kdeutils +kdeaccessibility +kdeadmin +kdenetwork +kdegraphics +kde-settings +kde-settings-kdm +kde-settings-pulseaudio + +# KDE 3 +amarok koffice-kword koffice-kspread koffice-kpresenter koffice-filters twinkle -filelight -krusader - - -# if it is enough space include koffice-krita (~40 megs) -koffice-krita - -# some other extra packages -gnupg -synaptics -hal-cups-utils -nss-mdns - -# ignore comps.xml and make sure these packages are included -kpowersave -rhgb -man-pages -smolt-firstboot +k3b knetworkmanager +konversation +digikam +filelight +kaffeine +ktorrent -#some changes that we don't want... --specspo --scribus --kdeaddons --kdemultimedia-extras --kdeartwork-extras --kmymoney2 --basket --speedcrunch --autofs - +# FIXME/TODO: recheck the removals here # try to remove some packages from livecd-fedora-base-desktop.ks -scim* -gdm @@ -52,18 +52,16 @@ knetworkmanager -pygtkglext -python-devel -libchewing - -# workaround for the moment (requirements of hplip) -python-imaging -python-reportlab +-firefox %end %post + # create /etc/sysconfig/desktop (needed for installation) cat > /etc/sysconfig/desktop < References: <14207396.post@talk.nabble.com> Message-ID: <1197078752.3555.16.camel@localhost.localdomain> On Fri, 2007-12-07 at 05:17 -0800, mdda wrote: > I have created a new Fedora spin 'EeeDora' specifically for the EeePC. The > Live Image boots fine (very fine). Live install works in manual mode, but > with a kickstart file (I'd like to make this completely automatic) Anaconda > goes through the installation (writing packages=100%), but gives an > exception in the last stages. This leaves the machine in an unusable state. What does the kickstart config you're using for the install look like? Jeremy From katzj at redhat.com Sat Dec 8 01:53:05 2007 From: katzj at redhat.com (Jeremy Katz) Date: Sat, 08 Dec 2007 01:53:05 +0000 Subject: [Fedora-livecd-list] two errors in liveinst In-Reply-To: <200712080045.08908.ml@deadbabylon.de> References: <200712080045.08908.ml@deadbabylon.de> Message-ID: <1197078785.3555.18.camel@localhost.localdomain> On Sat, 2007-12-08 at 00:45 +0100, Sebastian Vahl wrote: > But to go ahead: I get this error message when starting "liveinst" directly > from command line: [snip] > If I should open a bug for that, please let me know. I fixed this up earlier today... it's actually a side effect of a lot of changes going on in anaconda right now Jeremy From Fedora.Nabble at PLATFORMedia.com Sat Dec 8 07:28:07 2007 From: Fedora.Nabble at PLATFORMedia.com (mdda) Date: Fri, 7 Dec 2007 23:28:07 -0800 (PST) Subject: [Fedora-livecd-list] liveinst fails after resize of image In-Reply-To: <1197078752.3555.16.camel@localhost.localdomain> References: <14207396.post@talk.nabble.com> <1197078752.3555.16.camel@localhost.localdomain> Message-ID: <14226119.post@talk.nabble.com> > What does the kickstart config you're using for the install look like? My idea is to fix up everything, but let the user make changes - and I've found a way to make it work. First : The (unchanged) Kickstart file : http://www.nabble.com/file/p14226119/eee-live-install.ks eee-live-install.ks Some pertinent points : * I'm forcing the install partition to be ext2 (the rumour is that this will wear down the Eee's internal flash least) * I found that the sizing of the (faked) partition within the ISO (at 4096Mb) was too large for the Eee's 3.8Gb flash drive - and that the minsizing thing wasn't behaving somehow (my ISO-building machine is fully yum updated). So I fixed this hurdle by forcing the the size to (like) 2048Mb in livecd-creator. * To be on the safe side, I commented out the call to self._resizeRootfs(anaconda, wait) in _doFilesystemMangling (this may have been overkill, but it occurred to me that 'resize2fs' wouldn't be happy resizing a mounted ext2 partition, so that might be causing problems) * Most significantly (?), since the writing of $SYSIMAGE/etc/fstab seemed to be failing because $SYSIMAGE/etc wasn't there, I brute-forced the following inside doPostInstall in /usr/lib/anaconda/livecd.py : def doPostInstall(self, anaconda): self._doFilesystemMangling(anaconda) # maybe heavy handed, but it'll do anaconda.id.bootloader.args.append("rhgb quiet") anaconda.id.desktop.setDefaultRunLevel(5) ### added vvv r = anaconda.id.fsset.getEntryByMountPoint("/") r.mount(anaconda.rootPath) ### added ^^^ # now write out the "real" fstab and mtab anaconda.id.fsset.write(anaconda.rootPath) This finally did the trick, and now everything writes and boots without complaining. Hopefully, somewhere in this hackery is a clue to what's actually messing up. I'm pretty sure there's a more subtle way of doing it - but anaconda is a big machine, and I feel like I'm looking at it through a key-hole. - Martin -- View this message in context: http://www.nabble.com/liveinst-fails-after-resize-of-image-tf4960453.html#a14226119 Sent from the Fedora Livecd List mailing list archive at Nabble.com. From keith at karsites.net Sat Dec 8 14:24:05 2007 From: keith at karsites.net (Keith Roberts) Date: Sat, 8 Dec 2007 14:24:05 +0000 (GMT) Subject: [Fedora-livecd-list] Laptop options for Live-CD Message-ID: I'm not a builder myself atm, but would it be possible for the Live-CD not use power management on laptops? Or at least give the user an option of disabling that when booting from a laptop machine? Reason being is that my mouse jumps all over the place when some sort of Power Saving happens. Regards Keith Roberts ----------------------------------------------------------------- In theory, theory and practice are the same; in practice they are not. Websites: http://www.karsites.net http://www.raised-from-the-dead.org.uk This email address (and all domain email addesses) are challenge-response protected with TMDA [http://tmda.net] ----------------------------------------------------------------- From katzj at redhat.com Mon Dec 10 15:17:49 2007 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 10 Dec 2007 10:17:49 -0500 Subject: [Fedora-livecd-list] Laptop options for Live-CD In-Reply-To: References: Message-ID: <1197299869.3604.3.camel@localhost.localdomain> On Sat, 2007-12-08 at 14:24 +0000, Keith Roberts wrote: > I'm not a builder myself atm, but would it be possible for > the Live-CD not use power management on laptops? Or at least > give the user an option of disabling that when booting from > a laptop machine? Reason being is that my mouse jumps all > over the place when some sort of Power Saving happens. If there's a kernel option for disabling it, you can pass it to the kernel when booting from isolinux. But in general, it's not something that we want to be disabling -- it's far better to get to the root of the problem and fix that instead Jeremy From katzj at redhat.com Mon Dec 10 15:38:05 2007 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 10 Dec 2007 10:38:05 -0500 Subject: [Fedora-livecd-list] liveinst fails after resize of image In-Reply-To: <14226119.post@talk.nabble.com> References: <14207396.post@talk.nabble.com> <1197078752.3555.16.camel@localhost.localdomain> <14226119.post@talk.nabble.com> Message-ID: <1197301085.3604.9.camel@localhost.localdomain> On Fri, 2007-12-07 at 23:28 -0800, mdda wrote: > > What does the kickstart config you're using for the install look like? > My idea is to fix up everything, but let the user make changes - and I've > found a way to make it work. > > First : The (unchanged) Kickstart file : > http://www.nabble.com/file/p14226119/eee-live-install.ks eee-live-install.ks > > Some pertinent points : > * I'm forcing the install partition to be ext2 (the rumour is that this will > wear down the Eee's internal flash least) Is the partition on your live image ext2 also? If not, then I can definitely see that leading to some of the weirdness you're describing. > * I found that the sizing of the (faked) partition within the ISO (at > 4096Mb) was too large for the Eee's 3.8Gb flash drive - and that the > minsizing thing wasn't behaving somehow (my ISO-building machine is fully > yum updated). So I fixed this hurdle by forcing the the size to (like) > 2048Mb in livecd-creator. davidz said something along these lines, but I did an install on Thursday or so into a virtual disk that was < 4 gigs without problems. And even with swap. So there's something weird going on with the Eee in particular, but I'm not sure what. :-/ > * To be on the safe side, I commented out the call to > self._resizeRootfs(anaconda, wait) in _doFilesystemMangling (this may have > been overkill, but it occurred to me that 'resize2fs' wouldn't be happy > resizing a mounted ext2 partition, so that might be causing problems) The resize is done without the filesystem mounted, so this shouldn't be needed > * Most significantly (?), since the writing of $SYSIMAGE/etc/fstab seemed to > be failing because $SYSIMAGE/etc wasn't there, I brute-forced the following > inside doPostInstall in /usr/lib/anaconda/livecd.py : > > def doPostInstall(self, anaconda): > self._doFilesystemMangling(anaconda) _doFilesystemMangling ends up remounting the filesystems, so they should be mounted at that point Jeremy From markmc at redhat.com Mon Dec 10 18:16:49 2007 From: markmc at redhat.com (Mark McLoughlin) Date: Mon, 10 Dec 2007 18:16:49 +0000 Subject: [Fedora-livecd-list] [PATCH] Add image-creator, a simple ext3 system image builder Message-ID: <1197310573.12788.1.camel@blaa> Add a simple imgcreate frontend which would be useful both to people who just want a simple way of building system images, but also as the simplest possible example of using the imgcreate API. Signed-off-by: Mark McLoughlin --- API | 7 ++-- Makefile | 1 + tools/image-creator | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 3 deletions(-) create mode 100755 tools/image-creator diff --git a/API b/API index 8b7ca8b..9783c74 100644 --- a/API +++ b/API @@ -5,9 +5,10 @@ functionality. == Image Creation Frontends == -livecd-creator is one frontend for creating images. But really, it's -straight-forward to build your own which deals with your own specific -needs. To do so, you'll want to do the following: +livecd-creator and image-creator are both frontends for creating +images. But really, it's straight-forward to build your own which +deals with your own specific needs. To do so, you'll want to do +the following: * Create a pykickstart handler object. All of the image creators are driven by data stored in pykickstart handlers. diff --git a/Makefile b/Makefile index c3fc032..3d86b29 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ all: install: $(INSTALL_PROGRAM) -D creator/livecd-creator $(DESTDIR)/usr/bin/livecd-creator + $(INSTALL_PROGRAM) -D creator/image-creator $(DESTDIR)/usr/bin/image-creator $(INSTALL_PROGRAM) -D tools/livecd-iso-to-disk.sh $(DESTDIR)/usr/bin/livecd-iso-to-disk $(INSTALL_PROGRAM) -D tools/mayflower $(DESTDIR)/usr/lib/livecd-creator/mayflower $(INSTALL_DATA) -D AUTHORS $(DESTDIR)/usr/share/doc/livecd-tools-$(VERSION)/AUTHORS diff --git a/tools/image-creator b/tools/image-creator new file mode 100755 index 0000000..2603f9d --- /dev/null +++ b/tools/image-creator @@ -0,0 +1,83 @@ +#!/usr/bin/python -tt +# +# image-creator: Create an ext3 system image +# +# Copyright 2007, Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Library General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +import os +import sys +import shutil +import optparse + +import imgcreate + +class ImageCreator(imgcreate.LoopImageCreator): + def _stage_final_image(self): + self._resparse() + shutil.move(self._image, self._outdir + "/" + self.name + ".img") + +def parse_options(args): + parser = optparse.OptionParser(usage = "%prog --config= [options]") + + def parse_kickstart(option, opt, kscfg, parser): + try: + ks = imgcreate.read_kickstart(kscfg) + except imgcreate.CreatorError, e: + raise optparse.OptionValueError(str(e)) + setattr(parser.values, option.dest, (kscfg, ks)) + + parser.add_option("-c", "--config", type = "string", dest = "ks", + action = "callback", callback = parse_kickstart, + help = "Path to kickstart config file") + parser.add_option("-n", "--name", type="string", dest="name", + help="Image name and filesystem label") + + (options, args) = parser.parse_args() + + if options.ks is None or len(args) != 0: + parser.print_usage() + sys.exit(1) + + return options + +def main(): + options = parse_options(sys.argv[1:]) + + if os.geteuid () != 0: + print >> sys.stderr, "You must run image-creator as root" + return 1 + + (kscfg, ks) = (options.ks[0], options.ks[1]) + + if options.name: + name = options.name + else: + name = imgcreate.build_name(kscfg) + + creator = ImageCreator(ks, name) + + try: + creator.create() + except imgcreate.CreatorError, e: + print >> sys.stderr, "Error creating image : %s" % e + return 1 + finally: + creator.cleanup() + + return 0 + +if __name__ == "__main__": + sys.exit(main()) -- 1.5.3.3 From katzj at redhat.com Mon Dec 10 18:39:56 2007 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 10 Dec 2007 13:39:56 -0500 Subject: [Fedora-livecd-list] [PATCH] Add image-creator, a simple ext3 system image builder In-Reply-To: <1197310573.12788.1.camel@blaa> References: <1197310573.12788.1.camel@blaa> Message-ID: <1197311996.3604.26.camel@localhost.localdomain> On Mon, 2007-12-10 at 18:16 +0000, Mark McLoughlin wrote: > Add a simple imgcreate frontend which would be useful > both to people who just want a simple way of building > system images, but also as the simplest possible example > of using the imgcreate API. Looks good; feel free to go ahead and push Jeremy From bkearney at redhat.com Mon Dec 10 20:02:59 2007 From: bkearney at redhat.com (Bryan Kearney) Date: Mon, 10 Dec 2007 15:02:59 -0500 Subject: [Fedora-livecd-list] Does live-cd creator use the repo lines in the kickstart file? Message-ID: <475D9B73.1040902@redhat.com> I am invoking (on an updated fc8) the following: livecd-creator -c foo.cfg foo.cfg contains server repos, and the tool does not seem to run them. Even using the provided fc7 kickstarts (livecd-creator -c ./livecd-fedora-7-desktop.ks) seems to result in the same error: Error creating Live CD : Failed to find package 'syslinux' : No package(s) available to install Does the tool use the embedded repos? -- bk From katzj at redhat.com Mon Dec 10 20:34:20 2007 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 10 Dec 2007 15:34:20 -0500 Subject: [Fedora-livecd-list] Does live-cd creator use the repo lines in the kickstart file? In-Reply-To: <475D9B73.1040902@redhat.com> References: <475D9B73.1040902@redhat.com> Message-ID: <1197318860.3604.30.camel@localhost.localdomain> On Mon, 2007-12-10 at 15:02 -0500, Bryan Kearney wrote: > I am invoking (on an updated fc8) the following: > > livecd-creator -c foo.cfg > > foo.cfg contains server repos, and the tool does not seem to run them. > Even using the provided fc7 kickstarts (livecd-creator -c > ./livecd-fedora-7-desktop.ks) seems to result in the same error: > > Error creating Live CD : Failed to find package 'syslinux' : No > package(s) available to install > > Does the tool use the embedded repos? No, it uses the repo from the config. But if you have yum-3.2.8-1 (as opposed to -2), then you're hitting a yum bug. The fixed yum should have gotten pushed on Thursday or Friday, though Jeremy From bkearney at redhat.com Mon Dec 10 20:59:26 2007 From: bkearney at redhat.com (Bryan Kearney) Date: Mon, 10 Dec 2007 15:59:26 -0500 Subject: [Fedora-livecd-list] Does live-cd creator use the repo lines in the kickstart file? In-Reply-To: <1197318860.3604.30.camel@localhost.localdomain> References: <475D9B73.1040902@redhat.com> <1197318860.3604.30.camel@localhost.localdomain> Message-ID: <475DA8AE.1020408@redhat.com> ok.. lemme grab the latest and try again. Where should I have seen this error (teach a man to fish question)? -- bk Jeremy Katz wrote: > On Mon, 2007-12-10 at 15:02 -0500, Bryan Kearney wrote: >> I am invoking (on an updated fc8) the following: >> >> livecd-creator -c foo.cfg >> >> foo.cfg contains server repos, and the tool does not seem to run them. >> Even using the provided fc7 kickstarts (livecd-creator -c >> ./livecd-fedora-7-desktop.ks) seems to result in the same error: >> >> Error creating Live CD : Failed to find package 'syslinux' : No >> package(s) available to install >> >> Does the tool use the embedded repos? > > No, it uses the repo from the config. But if you have yum-3.2.8-1 (as > opposed to -2), then you're hitting a yum bug. The fixed yum should > have gotten pushed on Thursday or Friday, though > > Jeremy > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list From markmc at redhat.com Mon Dec 10 21:24:05 2007 From: markmc at redhat.com (Mark McLoughlin) Date: Mon, 10 Dec 2007 21:24:05 +0000 Subject: [Fedora-livecd-list] [PATCH] Add image-creator, a simple ext3 system image builder In-Reply-To: <1197311996.3604.26.camel@localhost.localdomain> References: <1197310573.12788.1.camel@blaa> <1197311996.3604.26.camel@localhost.localdomain> Message-ID: <1197321845.16548.0.camel@blaa> On Mon, 2007-12-10 at 13:39 -0500, Jeremy Katz wrote: > On Mon, 2007-12-10 at 18:16 +0000, Mark McLoughlin wrote: > > Add a simple imgcreate frontend which would be useful > > both to people who just want a simple way of building > > system images, but also as the simplest possible example > > of using the imgcreate API. > > Looks good; feel free to go ahead and push Actually pushed something a tad simpler - no need to subclass LoopImageCreator at all, and might as well make the kickstart a required argument rather than a --config option. Cheers, Mark. From keith at karsites.net Mon Dec 10 22:23:21 2007 From: keith at karsites.net (Keith Roberts) Date: Mon, 10 Dec 2007 22:23:21 +0000 (GMT) Subject: [Fedora-livecd-list] Laptop options for Live-CD In-Reply-To: <1197299869.3604.3.camel@localhost.localdomain> References: <1197299869.3604.3.camel@localhost.localdomain> Message-ID: On Mon, 10 Dec 2007, Jeremy Katz wrote: > To: Keith Roberts , fedora-livecd-list at redhat.com > From: Jeremy Katz > Subject: Re: [Fedora-livecd-list] Laptop options for Live-CD > > On Sat, 2007-12-08 at 14:24 +0000, Keith Roberts wrote: >> I'm not a builder myself atm, but would it be possible for >> the Live-CD not use power management on laptops? Or at least >> give the user an option of disabling that when booting from >> a laptop machine? Reason being is that my mouse jumps all >> over the place when some sort of Power Saving happens. > > If there's a kernel option for disabling it, you can pass it to the > kernel when booting from isolinux. > > But in general, it's not something that we want to be disabling -- it's > far better to get to the root of the problem and fix that instead > > Jeremy I did not know it was possible to pass kernel options to the Live-CD? AFAIR the CD just boots into Linux without offering me the option to set parameters. Regards Keith From dmc.fedora at filteredperception.org Mon Dec 10 22:38:19 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Mon, 10 Dec 2007 16:38:19 -0600 Subject: [Fedora-livecd-list] Laptop options for Live-CD In-Reply-To: References: <1197299869.3604.3.camel@localhost.localdomain> Message-ID: <475DBFDB.4050406@filteredperception.org> Keith Roberts wrote: > On Mon, 10 Dec 2007, Jeremy Katz wrote: > >> To: Keith Roberts , fedora-livecd-list at redhat.com >> From: Jeremy Katz >> Subject: Re: [Fedora-livecd-list] Laptop options for Live-CD >> >> On Sat, 2007-12-08 at 14:24 +0000, Keith Roberts wrote: >>> I'm not a builder myself atm, but would it be possible for >>> the Live-CD not use power management on laptops? Or at least >>> give the user an option of disabling that when booting from >>> a laptop machine? Reason being is that my mouse jumps all >>> over the place when some sort of Power Saving happens. >> >> If there's a kernel option for disabling it, you can pass it to the >> kernel when booting from isolinux. >> >> But in general, it's not something that we want to be disabling -- it's >> far better to get to the root of the problem and fix that instead >> >> Jeremy > > I did not know it was possible to pass kernel options to the Live-CD? > AFAIR the CD just boots into Linux without offering me the option to set > parameters. Perhaps the README in the root of the f8 livecd should include a section ala the 'knoppix cheatcodes'. Maybe expand it or ammend it to html, that is displayed in an autolaunched firefox upon fedora user autologging in... -dmc From ml at deadbabylon.de Wed Dec 12 14:57:03 2007 From: ml at deadbabylon.de (Sebastian Vahl) Date: Wed, 12 Dec 2007 15:57:03 +0100 Subject: [Fedora-livecd-list] Unable to exclude firefox Message-ID: <200712121557.13870.ml@deadbabylon.de> Hi. I'm still unable to don't include firefox on a livecd (although the xulrunner/firefox conflict is resolved). I'm not even having an idea why it is included in my local spins. I've explicitely removed it from livecd-fedora-base-desktop.ks and livecd-fedora-kde.ks (with "-firefox") and it shouldn't be needed by any package (since xulrunner is there). I can easily remove it on a running livecd (or even with "--shell") and rpm is not complaining about dependencies then. firefox is installed right aside xulrunner, so I'm assuming it's maybe related to the provides from firefox (esp. gecko-libs). Installing: kaffeine ##################### [652/770] Installing: gstreamer-plugins-good ##################### [653/770] Installing: gucharmap ##################### [654/770] Installing: libgnomekbd ##################### [655/770] Installing: evolution-data-server ##################### [656/770] Installing: gtkhtml2 ##################### [657/770] Installing: gnome-vfs2-obexftp ##################### [658/770] Installing: bluez-gnome ##################### [659/770] Installing: gnome-mount ##################### [660/770] Installing: kaffeine-libs ##################### [661/770] Installing: firefox ##################### [662/770] Installing: xulrunner ##################### [663/770] Installing: kde-settings-kdm ##################### [664/770] Installing: yelp ##################### [665/770] Installing: bluez-utils ##################### [666/770] Installing: koffice-filters ##################### [667/770] Any help, hints, advises here? Sebastian -------------- 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 katzj at redhat.com Wed Dec 12 15:14:20 2007 From: katzj at redhat.com (Jeremy Katz) Date: Wed, 12 Dec 2007 10:14:20 -0500 Subject: [Fedora-livecd-list] Unable to exclude firefox In-Reply-To: <200712121557.13870.ml@deadbabylon.de> References: <200712121557.13870.ml@deadbabylon.de> Message-ID: <1197472460.30672.31.camel@localhost.localdomain> On Wed, 2007-12-12 at 15:57 +0100, Sebastian Vahl wrote: > I'm still unable to don't include firefox on a livecd (although the > xulrunner/firefox conflict is resolved). I'm not even having an idea why it > is included in my local spins. I've explicitely removed it from > livecd-fedora-base-desktop.ks and livecd-fedora-kde.ks (with "-firefox") and > it shouldn't be needed by any package (since xulrunner is there). I can > easily remove it on a running livecd (or even with "--shell") and rpm is not > complaining about dependencies then. > > firefox is installed right aside xulrunner, so I'm assuming it's maybe related > to the provides from firefox (esp. gecko-libs). Are you explicitly listing xulrunner in your %packages section? If not and if there's something depending on an unversioned gecko-libs, then firefox could well be getting chosen as the shortest provider of gecko-libs Jeremy From patrice.guay at nanotechnologies.qc.ca Wed Dec 12 15:15:39 2007 From: patrice.guay at nanotechnologies.qc.ca (Patrice Guay) Date: Wed, 12 Dec 2007 10:15:39 -0500 Subject: [Fedora-livecd-list] Unable to exclude firefox In-Reply-To: <200712121557.13870.ml@deadbabylon.de> References: <200712121557.13870.ml@deadbabylon.de> Message-ID: <475FFB1B.8040702@nanotechnologies.qc.ca> Sebastian Vahl wrote: > Hi. > > I'm still unable to don't include firefox on a livecd (although the > xulrunner/firefox conflict is resolved). I'm not even having an idea > why it is included in my local spins. I've explicitely removed it > from livecd-fedora-base-desktop.ks and livecd-fedora-kde.ks (with > "-firefox") and it shouldn't be needed by any package (since > xulrunner is there). I can easily remove it on a running livecd (or > even with "--shell") and rpm is not complaining about dependencies > then. > > firefox is installed right aside xulrunner, so I'm assuming it's > maybe related to the provides from firefox (esp. gecko-libs). > I would recommend you to boot your Live CD and then ask to remove firefox from the command prompt: # yum remove firefox There should be some cross-dependencies involved with the removal of firefox. Make sure these packages are excluded from your next Live CD iteration. -- Patrice From ml at deadbabylon.de Wed Dec 12 15:19:24 2007 From: ml at deadbabylon.de (Sebastian Vahl) Date: Wed, 12 Dec 2007 16:19:24 +0100 Subject: [Fedora-livecd-list] Unable to exclude firefox In-Reply-To: <1197472460.30672.31.camel@localhost.localdomain> References: <200712121557.13870.ml@deadbabylon.de> <1197472460.30672.31.camel@localhost.localdomain> Message-ID: <200712121619.25061.ml@deadbabylon.de> Am Mi 12.Dezember 2007 schrieb Jeremy Katz: > On Wed, 2007-12-12 at 15:57 +0100, Sebastian Vahl wrote: > > I'm still unable to don't include firefox on a livecd (although the > > xulrunner/firefox conflict is resolved). I'm not even having an idea why > > it is included in my local spins. I've explicitely removed it from > > livecd-fedora-base-desktop.ks and livecd-fedora-kde.ks (with "-firefox") > > and it shouldn't be needed by any package (since xulrunner is there). I > > can easily remove it on a running livecd (or even with "--shell") and rpm > > is not complaining about dependencies then. > > > > firefox is installed right aside xulrunner, so I'm assuming it's maybe > > related to the provides from firefox (esp. gecko-libs). > > Are you explicitly listing xulrunner in your %packages section? If not > and if there's something depending on an unversioned gecko-libs, then > firefox could well be getting chosen as the shortest provider of > gecko-libs No I haven't listed xulrunner (only as "-xulrunner") and don't even want this one (but that's another problem: #420101). So the next step is maybe: Figure out what is requirering the unversioned gecko-libs and file a bug against that package? Sebastian -------------- 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 ml at deadbabylon.de Wed Dec 12 15:30:35 2007 From: ml at deadbabylon.de (Sebastian Vahl) Date: Wed, 12 Dec 2007 16:30:35 +0100 Subject: [Fedora-livecd-list] Unable to exclude firefox In-Reply-To: <475FFB1B.8040702@nanotechnologies.qc.ca> References: <200712121557.13870.ml@deadbabylon.de> <475FFB1B.8040702@nanotechnologies.qc.ca> Message-ID: <200712121630.35612.ml@deadbabylon.de> Am Mi 12.Dezember 2007 schrieb Patrice Guay: > Sebastian Vahl wrote: > > Hi. > > > > I'm still unable to don't include firefox on a livecd (although the > > xulrunner/firefox conflict is resolved). I'm not even having an idea > > why it is included in my local spins. I've explicitely removed it > > from livecd-fedora-base-desktop.ks and livecd-fedora-kde.ks (with > > "-firefox") and it shouldn't be needed by any package (since > > xulrunner is there). I can easily remove it on a running livecd (or > > even with "--shell") and rpm is not complaining about dependencies > > then. > > > > firefox is installed right aside xulrunner, so I'm assuming it's > > maybe related to the provides from firefox (esp. gecko-libs). > > I would recommend you to boot your Live CD and then ask to remove > firefox from the command prompt: > > # yum remove firefox > > There should be some cross-dependencies involved with the removal > of firefox. Make sure these packages are excluded from your next > Live CD iteration. Please re-read my mail . I've already done that and there are no deps which are explicitely requireing firefox. ;) Sebastian -------------- 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 ml at deadbabylon.de Wed Dec 12 15:39:13 2007 From: ml at deadbabylon.de (Sebastian Vahl) Date: Wed, 12 Dec 2007 16:39:13 +0100 Subject: [Fedora-livecd-list] Unable to exclude firefox In-Reply-To: <200712121619.25061.ml@deadbabylon.de> References: <200712121557.13870.ml@deadbabylon.de> <1197472460.30672.31.camel@localhost.localdomain> <200712121619.25061.ml@deadbabylon.de> Message-ID: <200712121639.13589.ml@deadbabylon.de> Am Mi 12.Dezember 2007 schrieb Sebastian Vahl: > Am Mi 12.Dezember 2007 schrieb Jeremy Katz: > > On Wed, 2007-12-12 at 15:57 +0100, Sebastian Vahl wrote: > > > I'm still unable to don't include firefox on a livecd (although the > > > xulrunner/firefox conflict is resolved). I'm not even having an idea > > > why it is included in my local spins. I've explicitely removed it from > > > livecd-fedora-base-desktop.ks and livecd-fedora-kde.ks (with > > > "-firefox") and it shouldn't be needed by any package (since xulrunner > > > is there). I can easily remove it on a running livecd (or even with > > > "--shell") and rpm is not complaining about dependencies then. > > > > > > firefox is installed right aside xulrunner, so I'm assuming it's maybe > > > related to the provides from firefox (esp. gecko-libs). > > > > Are you explicitly listing xulrunner in your %packages section? If not > > and if there's something depending on an unversioned gecko-libs, then > > firefox could well be getting chosen as the shortest provider of > > gecko-libs > > No I haven't listed xulrunner (only as "-xulrunner") and don't even want > this one (but that's another problem: #420101). > > So the next step is maybe: Figure out what is requirering the unversioned > gecko-libs and file a bug against that package? Mhh. The only package requireing gecko-libs is yelp. But that one has a versioned require (gecko-libs = 1.9). So this problem may also be fixed as a side-effect when #420101 is resolved. But I'm still wondering why firefox is pulled in? Sebastian -------------- 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 ml at deadbabylon.de Wed Dec 12 15:40:42 2007 From: ml at deadbabylon.de (Sebastian Vahl) Date: Wed, 12 Dec 2007 16:40:42 +0100 Subject: [Fedora-livecd-list] Unable to exclude firefox In-Reply-To: <200712121639.13589.ml@deadbabylon.de> References: <200712121557.13870.ml@deadbabylon.de> <200712121619.25061.ml@deadbabylon.de> <200712121639.13589.ml@deadbabylon.de> Message-ID: <200712121640.43011.ml@deadbabylon.de> Am Mi 12.Dezember 2007 schrieb Sebastian Vahl: > Am Mi 12.Dezember 2007 schrieb Sebastian Vahl: > > Am Mi 12.Dezember 2007 schrieb Jeremy Katz: > > > On Wed, 2007-12-12 at 15:57 +0100, Sebastian Vahl wrote: > > > > I'm still unable to don't include firefox on a livecd (although the > > > > xulrunner/firefox conflict is resolved). I'm not even having an idea > > > > why it is included in my local spins. I've explicitely removed it > > > > from livecd-fedora-base-desktop.ks and livecd-fedora-kde.ks (with > > > > "-firefox") and it shouldn't be needed by any package (since > > > > xulrunner is there). I can easily remove it on a running livecd (or > > > > even with "--shell") and rpm is not complaining about dependencies > > > > then. > > > > > > > > firefox is installed right aside xulrunner, so I'm assuming it's > > > > maybe related to the provides from firefox (esp. gecko-libs). > > > > > > Are you explicitly listing xulrunner in your %packages section? If not > > > and if there's something depending on an unversioned gecko-libs, then > > > firefox could well be getting chosen as the shortest provider of > > > gecko-libs > > > > No I haven't listed xulrunner (only as "-xulrunner") and don't even want > > this one (but that's another problem: #420101). > > > > So the next step is maybe: Figure out what is requirering the unversioned > > gecko-libs and file a bug against that package? > > Mhh. The only package requireing gecko-libs is yelp. But that one has a > versioned require (gecko-libs = 1.9). ... and firefox is only providing gecko-libs = 1.8.1.10. -------------- 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 markmc at redhat.com Wed Dec 12 15:43:17 2007 From: markmc at redhat.com (Mark McLoughlin) Date: Wed, 12 Dec 2007 15:43:17 +0000 Subject: [Fedora-livecd-list] livecd-creator on RHEL5/FC6 Message-ID: <1197474197.18096.1.camel@blaa> Hey, I have some patches to make livecd-creator work with python 2.4 and older pykickstart; posting them here in case anyone needs them or is interested in e.g. getting livecd-tools into EPEL: http://markmc.fedorapeople.org/rhel5-livecd-creator/ Cheers, Mark. From fedora at leemhuis.info Wed Dec 12 17:46:38 2007 From: fedora at leemhuis.info (Thorsten Leemhuis) Date: Wed, 12 Dec 2007 18:46:38 +0100 Subject: [Fedora-livecd-list] livecd-creator on RHEL5/FC6 In-Reply-To: <1197474197.18096.1.camel@blaa> References: <1197474197.18096.1.camel@blaa> Message-ID: <47601E7E.7000101@leemhuis.info> On 12.12.2007 16:43, Mark McLoughlin wrote: > I have some patches to make livecd-creator work with python 2.4 and > older pykickstart; posting them here in case anyone needs them or is > interested in e.g. getting livecd-tools into EPEL: Note that getting livecd-tools into EPEL would be nice, as somebody built revisor for epel, which is of no use there right now as is has a dependency on livecd-tools (thus revisor has a broken dep: https://www.redhat.com/archives/epel-devel-list/2007-December/msg00009.html ). Cu knurd From thesweeheng at gmail.com Wed Dec 12 18:17:24 2007 From: thesweeheng at gmail.com (Tan Swee Heng) Date: Thu, 13 Dec 2007 02:17:24 +0800 Subject: [Fedora-livecd-list] [PATCH] Modified Makefile and livecd-tools.spec to use tools/ and imgcreate. Message-ID: Hi, I am new to this list so pardon me if this is the wrong place for patches or if I am not doing this the "right way". :-) I have problems doing "make install" and "rpmbuild" using the current git tree. Turns out that Makefile was using creator/ directory when livecd-creator and image-creator are both now in tools/. Also both Makefile and livecd-tools.spec seemed to have omitted the imgcreate Python module. So below is my patch to address these issues. It works for me. Hopefully it is of use to others too. Regards, Swee Heng --- Changed Makefile to use tools/ directory instead of creator/. Changed both Makefile and livecd-tools.spec to handle imgcreate. Signed-off-by: Tan Swee Heng --- Makefile | 14 ++++++++++++-- livecd-tools.spec | 8 ++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3d86b29..393d6db 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,18 @@ INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} +INSTALL_PYTHON = ${INSTALL} -m 644 +define COMPILE_PYTHON + python -c "import compileall as c; c.compile_dir('$(1)', force=1)" + python -O -c "import compileall as c; c.compile_dir('$(1)', force=1)" +endef +PYTHONDIR := $(shell python -c "import distutils.sysconfig as d; print d.get_python_lib()") + all: install: - $(INSTALL_PROGRAM) -D creator/livecd-creator $(DESTDIR)/usr/bin/livecd-creator - $(INSTALL_PROGRAM) -D creator/image-creator $(DESTDIR)/usr/bin/image-creator + $(INSTALL_PROGRAM) -D tools/livecd-creator $(DESTDIR)/usr/bin/livecd-creator + $(INSTALL_PROGRAM) -D tools/image-creator $(DESTDIR)/usr/bin/image-creator $(INSTALL_PROGRAM) -D tools/livecd-iso-to-disk.sh $(DESTDIR)/usr/bin/livecd-iso-to-disk $(INSTALL_PROGRAM) -D tools/mayflower $(DESTDIR)/usr/lib/livecd-creator/mayflower $(INSTALL_DATA) -D AUTHORS $(DESTDIR)/usr/share/doc/livecd-tools-$(VERSION)/AUTHORS @@ -19,6 +26,9 @@ install: $(INSTALL_DATA) -D HACKING $(DESTDIR)/usr/share/doc/livecd-tools-$(VERSION)/HACKING mkdir -p $(DESTDIR)/usr/share/livecd-tools/ $(INSTALL_DATA) -D config/*.ks $(DESTDIR)/usr/share/livecd-tools/ + mkdir -p $(DESTDIR)/$(PYTHONDIR)/imgcreate + $(INSTALL_PYTHON) -D imgcreate/*.py $(DESTDIR)/$(PYTHONDIR)/imgcreate/ + $(call COMPILE_PYTHON,$(DESTDIR)/$(PYTHONDIR)/imgcreate) uninstall: rm -f $(DESTDIR)/usr/bin/livecd-creator diff --git a/livecd-tools.spec b/livecd-tools.spec index 542283d..9b9d4f5 100644 --- a/livecd-tools.spec +++ b/livecd-tools.spec @@ -1,3 +1,5 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "import distutils.sysconfig as d; print d.get_python_lib()")} + %define debug_package %{nil} Summary: Tools for building live CD's @@ -24,6 +26,7 @@ Requires: syslinux %ifarch ppc ppc64 Requires: yaboot %endif +BuildRequires: python %description @@ -53,6 +56,11 @@ rm -rf $RPM_BUILD_ROOT /usr/lib/livecd-creator/mayflower %dir %{_datadir}/livecd-tools %{_datadir}/livecd-tools/* +%{_bindir}/image-creator +%dir %{python_sitelib}/imgcreate +%{python_sitelib}/imgcreate/*.py +%{python_sitelib}/imgcreate/*.pyo +%{python_sitelib}/imgcreate/*.pyc %changelog * Mon Oct 29 2007 Jeremy Katz - 013-1 -- 1.5.3.3 From bkearney at redhat.com Wed Dec 12 21:02:21 2007 From: bkearney at redhat.com (Bryan Kearney) Date: Wed, 12 Dec 2007 16:02:21 -0500 Subject: [Fedora-livecd-list] Why does my LiveCD look ugly? Message-ID: <47604C5D.9040209@redhat.com> I am building a RHEL5 live DVD on an F8 box. I have noticed that my DVD looks ugly when the boot while the F8 live cds look good with their splash screen. Digging through the archives, I had an rpm drop a image which I want to use at boot time, and the %post section copies this to /usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg. However, I still get a TUI (curses) menu where I have to select what to boot. The timer does not appear to run, so they have to select it. I have based my DVD on the fedora-7 kickstart files.. only removing syslinux and kernel from the package list. Is there any voodoo to get the bootup looking better? -- bk From katzj at redhat.com Wed Dec 12 21:08:51 2007 From: katzj at redhat.com (Jeremy Katz) Date: Wed, 12 Dec 2007 16:08:51 -0500 Subject: [Fedora-livecd-list] Why does my LiveCD look ugly? In-Reply-To: <47604C5D.9040209@redhat.com> References: <47604C5D.9040209@redhat.com> Message-ID: <1197493731.3242.0.camel@localhost.localdomain> On Wed, 2007-12-12 at 16:02 -0500, Bryan Kearney wrote: > I am building a RHEL5 live DVD on an F8 box. I have noticed that my DVD > looks ugly when the boot while the F8 live cds look good with their > splash screen. Digging through the archives, I had an rpm drop a image > which I want to use at boot time, and the %post section copies this to > /usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg. However, I still get > a TUI (curses) menu where I have to select what to boot. The timer does > not appear to run, so they have to select it. I have based my DVD on the > fedora-7 kickstart files.. only removing syslinux and kernel from the > package list. > > Is there any voodoo to get the bootup looking better? The version of syslinux in RHEL5 doesn't have the vesa graphics support Jeremy From Fedora.Nabble at PLATFORMedia.com Wed Dec 12 21:49:23 2007 From: Fedora.Nabble at PLATFORMedia.com (mdda) Date: Wed, 12 Dec 2007 13:49:23 -0800 (PST) Subject: [Fedora-livecd-list] liveinst fails after resize of image In-Reply-To: <1197301085.3604.9.camel@localhost.localdomain> References: <14207396.post@talk.nabble.com> <1197078752.3555.16.camel@localhost.localdomain> <14226119.post@talk.nabble.com> <1197301085.3604.9.camel@localhost.localdomain> Message-ID: <14304671.post@talk.nabble.com> Sorry it took so long for me to get to the bottom of this... >> * I'm forcing the install partition to be ext2 (the rumour is that this >> will >> wear down the Eee's internal flash least) > Is the partition on your live image ext2 also? If not, then I can > definitely see that leading to some of the weirdness you're describing. Right - this is the main problem (and I'm amazed that just remounting an ext3 raw image as ext2 seemed to work at all). I had to rework livecd-creator to be able to create both ext3 and ext2 partitions. Ideally, it should be a command-line option (since ext2 is pretty important for flash drive installs). Mayflower was also hard-wired to expect an ext3 partition - so I've got an autodetector version. It would be even cleaner if .../LiveOS/ext3fs.img were renamed /LiveOS/ext3.img (otherwise the squashfs img should become .../LiveOS/squashfsfs.img) - and I'm sure there was already a patch proposed for this. As it stands, I have to have special versions of livecd-creator and mayflower embedded with my project, which is a pity. But at least the anaconda installer works unchanged, although I have to update /usr/sbin/liveinst to accept command line parameters to pass to anaconda so that I can pass a kickstart file. Result : Now I've got a clean live image with one-click install onto an ext2 rootfs on the Eee's internal flash drive. (But it has been a bit of a struggle). I'll check out the 4096Mb resizing thing separately. Martin :-) PS: One alternative (to changing livecd-creator and mayflower) would be to detect within liveinst whether the partition fstype of the source and the target was the same - if it is, then do the current 8Mb-at-a-time copy, otherwise do a more traditional file copy thing. -- View this message in context: http://www.nabble.com/liveinst-fails-after-resize-of-image-tp14207396p14304671.html Sent from the Fedora Livecd List mailing list archive at Nabble.com. From Fedora.Nabble at PLATFORMedia.com Wed Dec 12 21:55:42 2007 From: Fedora.Nabble at PLATFORMedia.com (mdda) Date: Wed, 12 Dec 2007 13:55:42 -0800 (PST) Subject: [Fedora-livecd-list] Does live-cd creator use the repo lines in the kickstart file? In-Reply-To: <1197318860.3604.30.camel@localhost.localdomain> References: <475D9B73.1040902@redhat.com> <1197318860.3604.30.camel@localhost.localdomain> Message-ID: <14304677.post@talk.nabble.com> I was stung by this too. Downgrading to yum-3.2.7-1 enables two things : 1) yum actually finds the packages you ask for 2) for some reason, yum obeys the repo selections in the kickstart file It was convenient to have yum listen to the kickstart options (rather than solely its own config), since it allows one to opt for caching of the ISO creation packages separately from the main system, and also allows for mirrorlists (which don't seem to be available on the command-line : please tell me if I'm wrong). Here's how I downgraded : # curl -O ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/releases/8/Fedora/ i386/os/Packages/yum-3.2.7-1.fc8.noarch.rpm # rpm -Uvh --oldpackage yum-3.2.7-1.fc8.noarch.rpm Martin :-) -- View this message in context: http://www.nabble.com/Does-live-cd-creator-use-the-repo-lines-in-the-kickstart-file--tp14260580p14304677.html Sent from the Fedora Livecd List mailing list archive at Nabble.com. From bkearney at redhat.com Wed Dec 12 22:09:10 2007 From: bkearney at redhat.com (Bryan Kearney) Date: Wed, 12 Dec 2007 17:09:10 -0500 Subject: [Fedora-livecd-list] Does live-cd creator use the repo lines in the kickstart file? In-Reply-To: <14304677.post@talk.nabble.com> References: <475D9B73.1040902@redhat.com> <1197318860.3604.30.camel@localhost.localdomain> <14304677.post@talk.nabble.com> Message-ID: <47605C06.5010001@redhat.com> I would like to figure out how to cache to speed up re-generations. Have you figured out how to do this? -- bk mdda wrote: > I was stung by this too. > > Downgrading to yum-3.2.7-1 enables two things : > 1) yum actually finds the packages you ask for > 2) for some reason, yum obeys the repo selections in the kickstart file > > It was convenient to have yum listen to the kickstart options (rather than > solely its own config), since it allows one to opt for caching of the ISO > creation packages separately from the main system, and also allows for > mirrorlists (which don't seem to be available on the command-line : please > tell me if I'm wrong). > > Here's how I downgraded : > # curl -O > ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/releases/8/Fedora/ > i386/os/Packages/yum-3.2.7-1.fc8.noarch.rpm > # rpm -Uvh --oldpackage yum-3.2.7-1.fc8.noarch.rpm > > Martin > :-) > From thesweeheng at gmail.com Thu Dec 13 13:44:58 2007 From: thesweeheng at gmail.com (Tan Swee Heng) Date: Thu, 13 Dec 2007 21:44:58 +0800 Subject: [Fedora-livecd-list] Re: [PATCH] Modified Makefile and livecd-tools.spec to use tools/ and imgcreate. In-Reply-To: References: Message-ID: The webmail editor mangled the patch. Here it is again as a MIME attachment. :-) Swee Heng -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Modified-Makefile-and-livecd-tools.spec.patch Type: text/x-patch Size: 2733 bytes Desc: not available URL: From katzj at redhat.com Thu Dec 13 16:00:03 2007 From: katzj at redhat.com (Jeremy Katz) Date: Thu, 13 Dec 2007 11:00:03 -0500 Subject: [Fedora-livecd-list] liveinst fails after resize of image In-Reply-To: <14304671.post@talk.nabble.com> References: <14207396.post@talk.nabble.com> <1197078752.3555.16.camel@localhost.localdomain> <14226119.post@talk.nabble.com> <1197301085.3604.9.camel@localhost.localdomain> <14304671.post@talk.nabble.com> Message-ID: <1197561603.3058.5.camel@localhost.localdomain> On Wed, 2007-12-12 at 13:49 -0800, mdda wrote: > Sorry it took so long for me to get to the bottom of this... > > >> * I'm forcing the install partition to be ext2 (the rumour is that this > >> will > >> wear down the Eee's internal flash least) > > Is the partition on your live image ext2 also? If not, then I can > > definitely see that leading to some of the weirdness you're describing. > > Right - this is the main problem (and I'm amazed that just remounting an > ext3 raw image as ext2 seemed to work at all). This has always worked and has always been supposed to. > I had to rework livecd-creator to be able to create both ext3 and ext2 > partitions. Ideally, it should be a command-line option (since ext2 is > pretty important for flash drive installs). Mayflower was also hard-wired > to expect an ext3 partition - so I've got an autodetector version. Patches accepted :) > PS: One alternative (to changing livecd-creator and mayflower) would be to > detect within liveinst whether the partition fstype of the source and the > target was the same - if it is, then do the current 8Mb-at-a-time copy, > otherwise do a more traditional file copy thing. A traditional file copy was ... painfully slow when I tried it last. So it's probably something we should avoid if we want. And it should be practical to allow an ext2 filesystem to be detected and work just as well. Plus, that will help when we eventually want to use ext4 :) Jeremy From katzj at redhat.com Thu Dec 13 16:00:54 2007 From: katzj at redhat.com (Jeremy Katz) Date: Thu, 13 Dec 2007 11:00:54 -0500 Subject: [Fedora-livecd-list] [PATCH] Modified Makefile and livecd-tools.spec to use tools/ and imgcreate. In-Reply-To: References: Message-ID: <1197561654.3058.8.camel@localhost.localdomain> On Thu, 2007-12-13 at 02:17 +0800, Tan Swee Heng wrote: > Hi, I am new to this list so pardon me if this is the wrong place for > patches or if I am not doing this the "right way". :-) > > I have problems doing "make install" and "rpmbuild" using the current > git tree. Turns out that Makefile was using creator/ directory when > livecd-creator and image-creator are both now in tools/. Also both > Makefile and livecd-tools.spec seemed to have omitted the imgcreate > Python module. So below is my patch to address these issues. It works > for me. Hopefully it is of use to others too. Looks reasonable. Will apply hopefully later today (trying to sort out some hardware problems atm). Thanks for the patch! Jeremy From bkearney at redhat.com Thu Dec 13 21:45:23 2007 From: bkearney at redhat.com (Bryan Kearney) Date: Thu, 13 Dec 2007 16:45:23 -0500 Subject: [Fedora-livecd-list] Why would a live dvd boot in kvm, but no in xen or VMWare Message-ID: <4761A7F3.1090206@redhat.com> We have a liveDVD which is booting fine using qemu-vm, but hangs in xen and attempts to do a network boot in VMWare. Any idea what could be causing this? -- bk From bkearney at redhat.com Thu Dec 13 21:56:24 2007 From: bkearney at redhat.com (Bryan Kearney) Date: Thu, 13 Dec 2007 16:56:24 -0500 Subject: [Fedora-livecd-list] Why does my LiveCD look ugly? In-Reply-To: <47604C5D.9040209@redhat.com> References: <47604C5D.9040209@redhat.com> Message-ID: <4761AA88.1090007@redhat.com> OK.. it looks like the method configureBootLoader() is called before runPost(). So... moving the file in the post is not an option. I will change my rpm to drop a file into usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg -- bk Bryan Kearney wrote: > I am building a RHEL5 live DVD on an F8 box. I have noticed that my DVD > looks ugly when the boot while the F8 live cds look good with their > splash screen. Digging through the archives, I had an rpm drop a image > which I want to use at boot time, and the %post section copies this to > /usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg. However, I still get > a TUI (curses) menu where I have to select what to boot. The timer does > not appear to run, so they have to select it. I have based my DVD on the > fedora-7 kickstart files.. only removing syslinux and kernel from the > package list. > > Is there any voodoo to get the bootup looking better? > > -- bk > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list From bkearney at redhat.com Fri Dec 14 14:55:22 2007 From: bkearney at redhat.com (Bryan Kearney) Date: Fri, 14 Dec 2007 09:55:22 -0500 Subject: [Fedora-livecd-list] Why does my LiveCD look ugly? In-Reply-To: <4761AA88.1090007@redhat.com> References: <47604C5D.9040209@redhat.com> <4761AA88.1090007@redhat.com> Message-ID: <4762995A.4090204@redhat.com> I moved the file in the rpm, and when I mount the iso locally.. i see that the correct image has been moved to isolinux/splash.jpg and that the isolinux.cfg file has the text "menu background splash.jpg". However, I still do not see the background. Is there another tweak which I need to do? -- bk Bryan Kearney wrote: > OK.. it looks like the method configureBootLoader() is called before > runPost(). So... moving the file in the post is not an option. I will > change my rpm to drop a file into > usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg > > -- bk > > > > Bryan Kearney wrote: >> I am building a RHEL5 live DVD on an F8 box. I have noticed that my >> DVD looks ugly when the boot while the F8 live cds look good with >> their splash screen. Digging through the archives, I had an rpm drop a >> image which I want to use at boot time, and the %post section copies >> this to /usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg. However, I >> still get a TUI (curses) menu where I have to select what to boot. The >> timer does not appear to run, so they have to select it. I have based >> my DVD on the fedora-7 kickstart files.. only removing syslinux and >> kernel from the package list. >> >> Is there any voodoo to get the bootup looking better? >> >> -- bk >> >> -- >> Fedora-livecd-list mailing list >> Fedora-livecd-list at redhat.com >> https://www.redhat.com/mailman/listinfo/fedora-livecd-list > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list From mdickson at redhat.com Fri Dec 14 16:19:55 2007 From: mdickson at redhat.com (Mike Dickson) Date: Fri, 14 Dec 2007 16:19:55 +0000 Subject: [Fedora-livecd-list] RHEL Live CD + Persistance? Message-ID: <1197649195.27120.11.camel@teachjava.redhat.com> Is there any chance of getting a current version of RHEL into the Live CD + Persistence game? MikeD -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmc.fedora at filteredperception.org Fri Dec 14 19:22:42 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Fri, 14 Dec 2007 13:22:42 -0600 Subject: [Fedora-livecd-list] RHEL Live CD + Persistance? In-Reply-To: <1197649195.27120.11.camel@teachjava.redhat.com> References: <1197649195.27120.11.camel@teachjava.redhat.com> Message-ID: <4762D802.2010600@filteredperception.org> Mike Dickson wrote: > Is there any chance of getting a current version of RHEL into the Live > CD + Persistence game? Were you ever able to test those patches I sent you a couple months back (on fedora)? (and for the most part, posted to this list) For me, they do basically work in trivial testing scenarios. The main problem I have mustering any enjoyment developing them is the utter grossness of what it takes to patch the standard /etc/rc.d/init.d halt and functions file. (which is needed to defer unmounting of persistence device until after readonly remounting of rootfs). I do have an alternate distribution method of the feature, which makes it more of a proof of concept "live iso patch" to the official f8 livecd, but it's still the same code and mechanism. The same fragility may still apply to my method that I mentioned months ago, i.e. that it may become unrecoverably corrupted if not shutdown cleanly. But I suspect that if I can make the distribution of it as easy as a 'patch' to apply to the f8 livecd, and get some testers, that that problem can be solved (pure speculation). My time estimates are usually overly ambitious, but I'll try to get that iso-patch posted in a couple hours. And as I responded long ago to the original criticism of the ugliness of the halt&functions patching- I totally agree, and am open to suggestions. Attached is the last patch I sent Mike, which is pretty close to what I last posted to this list. It's still useful if anyone is interested in trying to understand the method I'm using. The main thing to simplify reading it, is a) ignore the 'overlay=auto' code path. It's a nice feature, but complexity that should wait for the future when the base case is well understood, tested and stable. The base case being b) assume the only use of the patch is with the modified livecd-iso-to-disk. I.e. the new usage would be livecd-iso-to-disk --overlay-size-mb 128 /path/to/f8.iso /dev/sdb1 which would initialize a 128M persistence file and cause the bootloader on the liveusb to use it. I.e. the syslinux append line goes from root=UUID=abcd-1234 to root=UUID=abcd-1234 overlay=UUID=abcd-1234 Then, try to ignore the horrendously ugly selinux magic act required to patch halt&functions, and just look at the contents of the halt.patch and functions.patch. -dmc -------------- next part -------------- A non-text attachment was scrubbed... Name: livecd.overlay.20071016.patch Type: text/x-patch Size: 25081 bytes Desc: not available URL: From mdickson at redhat.com Fri Dec 14 20:29:12 2007 From: mdickson at redhat.com (Mike Dickson) Date: Fri, 14 Dec 2007 20:29:12 +0000 Subject: [Fedora-livecd-list] RHEL Live CD + Persistence? In-Reply-To: <4762D7CA.6090804@filteredperception.org> References: <1197649195.27120.11.camel@teachjava.redhat.com> <4762D7CA.6090804@filteredperception.org> Message-ID: <1197664152.27120.43.camel@teachjava.redhat.com> No. I was spammed w/ the end-of-the quarter work and am picking this back up now. So, the options to get where we need to go are: * RHEL 5.x w/ JBoss Developer Studio (JBDS) (This would best, but I don't think RHEL 5 can do LiveCD + Persistence. JBDS includes license for RHEL 5.x) * F8 w/ JBoss Tools (Free solution for the community at large, but much more work for us.) * F8 w/ JBDS (Easiest path, but the OS is not the same one they are going to deploy on, but close enough?) Which one of the combinations or all of them can we pull off? Can we get RHEL 5.x to do Live CD/DVD + Persistence? What do you think? Another question is, how do we update/patch JBDS if we have a read-only Live CD image? Can we apply the updates to the "persistence" part of the thumb drive or are are we going to have to spin another LIve CD image? Q: Why do we need to do this? A: Too many Java developers are using Windoz to develop on and then deploying on Linux/Solaris/HPUX.... Given that we have an Open Source OS, JVM, Application Server, DB, and Development Environment, we can give them a really exciting "cool" way to get their whole development environment on a thumb drive for very little to no cost. That way their development environment is the same/similar too their deployment environment and they can use it at home or on the road and have EVERYTHING they need wherever they are. Who else could do this? Nobody. It's a big deal if we can get it done. I will have to look up your script you sent me and start to get smart on this. Can I use a F8 Live CD/DVD to do this to a thumb drive, or am I going to have to upgrade my laptop from FC6 to F8? MikeD On Fri, 2007-12-14 at 13:21 -0600, Douglas McClendon wrote: > Mike Dickson wrote: > > Is there any chance of getting a current version of RHEL into the Live > > CD + Persistence game? > > Were you ever able to test those patches I sent you a couple months back > (on fedora)? (and for the most part, posted to this list) > > For me, they do basically work in trivial testing scenarios. > > The main problem I have mustering any enjoyment developing them is the > utter grossness of what it takes to patch the standard /etc/rc.d/init.d > halt and functions file. (which is needed to defer unmounting of > persistence device until after readonly remounting of rootfs). > > I do have an alternate distribution method of the feature, which makes > it more of a proof of concept "live iso patch" to the official f8 > livecd, but it's still the same code and mechanism. > > The same fragility may still apply to my method that I mentioned months > ago, i.e. that it may become unrecoverably corrupted if not shutdown > cleanly. But I suspect that if I can make the distribution of it as > easy as a 'patch' to apply to the f8 livecd, and get some testers, that > that problem can be solved (pure speculation). > > My time estimates are usually overly ambitious, but I'll try to get that > iso-patch posted in a couple hours. > > And as I responded long ago to the original criticism of the ugliness of > the halt&functions patching- I totally agree, and am open to suggestions. > > Attached is the last patch I sent Mike, which is pretty close to what I > last posted to this list. It's still useful if anyone is interested in > trying to understand the method I'm using. The main thing to simplify > reading it, is > > a) ignore the 'overlay=auto' code path. It's a nice feature, but > complexity that should wait for the future when the base case is well > understood, tested and stable. The base case being > > b) assume the only use of the patch is with the modified > livecd-iso-to-disk. I.e. the new usage would be > > livecd-iso-to-disk --overlay-size-mb 128 /path/to/f8.iso /dev/sdb1 > > which would initialize a 128M persistence file and cause the bootloader > on the liveusb to use it. I.e. the syslinux append line goes from > > root=UUID=abcd-1234 > > to > > root=UUID=abcd-1234 overlay=UUID=abcd-1234 > > Then, try to ignore the horrendously ugly selinux magic act required to > patch halt&functions, and just look at the contents of the halt.patch > and functions.patch. > > -dmc -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdickson at redhat.com Fri Dec 14 20:31:20 2007 From: mdickson at redhat.com (Mike Dickson) Date: Fri, 14 Dec 2007 20:31:20 +0000 Subject: [Fedora-livecd-list] RHEL Live CD + Persistance? In-Reply-To: <4762D802.2010600@filteredperception.org> References: <1197649195.27120.11.camel@teachjava.redhat.com> <4762D802.2010600@filteredperception.org> Message-ID: <1197664280.27120.45.camel@teachjava.redhat.com> Thanks, I will use this one. MikeD On Fri, 2007-12-14 at 13:22 -0600, Douglas McClendon wrote: > Mike Dickson wrote: > > Is there any chance of getting a current version of RHEL into the Live > > CD + Persistence game? > > Were you ever able to test those patches I sent you a couple months back > (on fedora)? (and for the most part, posted to this list) > > For me, they do basically work in trivial testing scenarios. > > The main problem I have mustering any enjoyment developing them is the > utter grossness of what it takes to patch the standard /etc/rc.d/init.d > halt and functions file. (which is needed to defer unmounting of > persistence device until after readonly remounting of rootfs). > > I do have an alternate distribution method of the feature, which makes > it more of a proof of concept "live iso patch" to the official f8 > livecd, but it's still the same code and mechanism. > > The same fragility may still apply to my method that I mentioned months > ago, i.e. that it may become unrecoverably corrupted if not shutdown > cleanly. But I suspect that if I can make the distribution of it as > easy as a 'patch' to apply to the f8 livecd, and get some testers, that > that problem can be solved (pure speculation). > > My time estimates are usually overly ambitious, but I'll try to get that > iso-patch posted in a couple hours. > > And as I responded long ago to the original criticism of the ugliness of > the halt&functions patching- I totally agree, and am open to suggestions. > > Attached is the last patch I sent Mike, which is pretty close to what I > last posted to this list. It's still useful if anyone is interested in > trying to understand the method I'm using. The main thing to simplify > reading it, is > > a) ignore the 'overlay=auto' code path. It's a nice feature, but > complexity that should wait for the future when the base case is well > understood, tested and stable. The base case being > > b) assume the only use of the patch is with the modified > livecd-iso-to-disk. I.e. the new usage would be > > livecd-iso-to-disk --overlay-size-mb 128 /path/to/f8.iso /dev/sdb1 > > which would initialize a 128M persistence file and cause the bootloader > on the liveusb to use it. I.e. the syslinux append line goes from > > root=UUID=abcd-1234 > > to > > root=UUID=abcd-1234 overlay=UUID=abcd-1234 > > Then, try to ignore the horrendously ugly selinux magic act required to > patch halt&functions, and just look at the contents of the halt.patch > and functions.patch. > > -dmc > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmc.fedora at filteredperception.org Sun Dec 16 08:51:23 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Sun, 16 Dec 2007 02:51:23 -0600 Subject: [Fedora-livecd-list] persistence testing howto Message-ID: <4764E70B.1010103@filteredperception.org> WARNING: THE FOLLOWING IS A VERY ALPHA EXPERIMENTAL DEVELOPMENT FEATURE If you have to ask what this is all about, it isn't ready for your testing yet. Please wait a bit longer. More variations of this on the way for testing purposes, but for the moment, this might work- (actually it seems to work better than I thought it would, see notes below) # get the 5MB binary delta blob wget \ http://filteredperception.org/downloads/overlay/20071216/Fedora-8-Live-i686.persistence.xdelta # get the f8 livecd iso, or use existing and modify commands accordingly wget \ ftp://mirrors.kernel.org/fedora/releases/8/Live/i686/Fedora-8-Live-i686.iso # this generates the patched iso xdelta patch \ Fedora-8-Live-i686.persistence.xdelta \ Fedora-8-Live-i686.iso \ Fedora-8-Live-i686.persistence.iso # this extracts the modified livecd-iso-to-disk isodump -R -i Fedora-8-Live-i686.persistence.iso \ -x /LiveOS/zyx-livecd-iso-to-disk \ > zyx-livecd-iso-to-disk chmod +x ./zyx-livecd-iso-to-disk # assuming /dev/sdb is a usb flash drive that you have previously tested # with livecd-iso-to-disk and been able to boot, and has a single # /dev/sdb1 partition with a uuid and no fslabel ./zyx-livecd-iso-to-disk \ --reset-mbr \ --overlay-size-mb 128 \ ./Fedora-8-Live-i686.persistence.iso \ /dev/sdb1 # and give it a whirl... note: the following sha1sum will merely tell you that the file you receive is likely the same one that I created on my internet connected development system. While I give my word that I have not knowingly introduced any trojans or security holes, I urge you to assume that other hackers who have infected my system have. Though on the plus side, experimental livecds are some of the easiest pieces of untrusted software to safely test. (i.e. you can test them on systems with no hard drive that you would need to worry about possibly corrupting) sha1sum Fedora-8-Live-i686.persistence.xdelta 924146b62546fa2342023a1f614da5eb155e318b note that the bit about the uuid and no fslabel is due to the fact that I didn't realize that livecd-iso-to-disk worked with fslabels instead of uuids until tonight. I'll fix that limitation soon. I ran into a fresh 2G flash with a single vfat fs, and no uuid, and was able to create one by just running 'mkfs.vfat /dev/sdb1'. Unfortunately for some bizarre reason this 2G one won't boot my laptop, but a 1G model from the same product line does...??? hence the bit about making sure you have tested with stock f8 and stock livecd-iso-to-disk. note, that despite everything I've said about it being fragile WRT unclean shutdown... I've noticed a couple things while putting this download together. A) since I last worked with it a couple months ago, something is screwing up the clean shutdown, so don't be alarmed when you see a message on shutdown that it failed to remount readonly the overlayfs. and B) in rudimentary testing, I persisted across 3 reboots, the 2nd of which was a unclean poweroff instead of a clean shutdown. Not that a sample size of 1 proves anything, but before my sample size of 1 was an unrecoverable corruption... go figure. More to come... If you bother to test, please report success or failure. Thanks, -dmc/jdog From sundaram at fedoraproject.org Sun Dec 16 14:19:38 2007 From: sundaram at fedoraproject.org (Rahul Sundaram) Date: Sun, 16 Dec 2007 19:49:38 +0530 Subject: [Fedora-livecd-list] livecd-creator on RHEL5/FC6 In-Reply-To: <1197474197.18096.1.camel@blaa> References: <1197474197.18096.1.camel@blaa> Message-ID: <476533FA.6090106@fedoraproject.org> Mark McLoughlin wrote: > Hey, > I have some patches to make livecd-creator work with python 2.4 and > older pykickstart; posting them here in case anyone needs them or is > interested in e.g. getting livecd-tools into EPEL: > > http://markmc.fedorapeople.org/rhel5-livecd-creator/ I am interested. Which version of livecd-tools do these patches apply against? Do you have any SRPM currently available that you have tested against RHEL? Rahul From thesweeheng at gmail.com Sun Dec 16 15:58:14 2007 From: thesweeheng at gmail.com (Tan Swee Heng) Date: Sun, 16 Dec 2007 23:58:14 +0800 Subject: [Fedora-livecd-list] [PATCH] Use string methods instead of the string module Message-ID: According to "pydoc string", the string module isn't normally used nowadays. PEP 290 (http://www.python.org/dev/peps/pep-0290/#string-methods) also recommends using string methods over the string module because i. the string module may be deprecated in future; ii. string methods are faster. This patch converts the imgcreate code to use string methods instead of the string module. Note: This patch does not fix any bugs per se. I just thought it would be good to follow the PEP guidelines... unless there is a need to support Python 1.6 or earlier. Signed-off-by: Tan Swee Heng -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0001-Use-string-methods-instead-of-the-string-module.txt URL: From dmc.fedora at filteredperception.org Sun Dec 16 21:04:41 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Sun, 16 Dec 2007 15:04:41 -0600 Subject: [Fedora-livecd-list] persistence testing howto In-Reply-To: <4764E70B.1010103@filteredperception.org> References: <4764E70B.1010103@filteredperception.org> Message-ID: <476592E9.6050409@filteredperception.org> Douglas McClendon wrote: > # this extracts the modified livecd-iso-to-disk > isodump -R -i Fedora-8-Live-i686.persistence.iso \ > -x /LiveOS/zyx-livecd-iso-to-disk \ >> zyx-livecd-iso-to-disk Actually that should be isoinfo, not isodump. And in case your email client likes to reinterpret leading '>', note that there is one on the final line there. Alternately you could just loopback mount the iso image, but I'm still enjoying my discovery of the isoinfo -x functionality. -dmc From markmc at redhat.com Mon Dec 17 15:30:46 2007 From: markmc at redhat.com (Mark McLoughlin) Date: Mon, 17 Dec 2007 15:30:46 +0000 Subject: [Fedora-livecd-list] livecd-creator on RHEL5/FC6 In-Reply-To: <476533FA.6090106@fedoraproject.org> References: <1197474197.18096.1.camel@blaa> <476533FA.6090106@fedoraproject.org> Message-ID: <1197905446.7072.8.camel@blaa> On Sun, 2007-12-16 at 19:49 +0530, Rahul Sundaram wrote: > Mark McLoughlin wrote: > > Hey, > > I have some patches to make livecd-creator work with python > 2.4 and > > older pykickstart; posting them here in case anyone needs them or is > > interested in e.g. getting livecd-tools into EPEL: > > > > http://markmc.fedorapeople.org/rhel5-livecd-creator/ > > I am interested. Which version of livecd-tools do these patches apply > against? Cool. As the series file says: # Known to apply to: # # commit 1c101d0bfbe4abdaa7486f3c1ed7dba9b58c37cf # Author: Mark McLoughlin # Date: Mon Dec 10 18:07:53 2007 +0000 # # Add image-creator, a simple ext3 system image builder > Do you have any SRPM currently available that you have tested > against RHEL? Nope: 1) This version of livecd-tools hasn't even been packaged for rawhide yet 2) The patches I posted are just enough to make the imgcreate python module usable on RHEL5, so there may well be further work required Cheers, Mark. From katzj at redhat.com Mon Dec 17 16:53:39 2007 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 17 Dec 2007 11:53:39 -0500 Subject: [Fedora-livecd-list] Why would a live dvd boot in kvm, but no in xen or VMWare In-Reply-To: <4761A7F3.1090206@redhat.com> References: <4761A7F3.1090206@redhat.com> Message-ID: <1197910419.2908.35.camel@localhost.localdomain> On Thu, 2007-12-13 at 16:45 -0500, Bryan Kearney wrote: > We have a liveDVD which is booting fine using qemu-vm, but hangs in xen > and attempts to do a network boot in VMWare. Any idea what could be > causing this? Attempting to do a network boot sounds like a misconfigured VM. Hanging in Xen could be a kernel bug, could be a Xen bug. I usually place my bets on the latter :) Jeremy From katzj at redhat.com Mon Dec 17 16:55:11 2007 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 17 Dec 2007 11:55:11 -0500 Subject: [Fedora-livecd-list] [PATCH] Use string methods instead of the string module In-Reply-To: References: Message-ID: <1197910511.2908.37.camel@localhost.localdomain> On Sun, 2007-12-16 at 23:58 +0800, Tan Swee Heng wrote: > According to "pydoc string", the string module isn't normally used nowadays. > PEP 290 (http://www.python.org/dev/peps/pep-0290/#string-methods) also > recommends using string methods over the string module because > i. the string module may be deprecated in future; Not until python 3k at least, and for that, a whole lot more is going to break. > ii. string methods are faster. Speed isn't really a concern here. > This patch converts the imgcreate code to use string methods instead of the > string module. I'm not really against this, but at the same time, I've always thought that " ".join() is pretty ugly and non-obvious, so I'd rather leave string.join for there. The split case is clear enough, though Jeremy From mdickson at redhat.com Mon Dec 17 17:02:02 2007 From: mdickson at redhat.com (Mike Dickson) Date: Mon, 17 Dec 2007 09:02:02 -0800 Subject: [Fedora-livecd-list] RHEL Live CD/DVD + Persistence Message-ID: <1197910922.7188.9.camel@teachjava.redhat.com> Is it reasonably possible to spin a RHEL 5.x Live CD/DVD + Persistence? MikeD -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdickson at redhat.com Mon Dec 17 17:05:21 2007 From: mdickson at redhat.com (Mike Dickson) Date: Mon, 17 Dec 2007 17:05:21 +0000 Subject: [Fedora-livecd-list] RHEL Live CD/DVD + Persistence In-Reply-To: <1197910922.7188.9.camel@teachjava.redhat.com> References: <1197910922.7188.9.camel@teachjava.redhat.com> Message-ID: <1197911121.7188.12.camel@teachjava.redhat.com> Sorry if this is the wrong place to ask this... How about a plain RHEL 5.x Live CD and thumb drive for rw access? MikeD On Mon, 2007-12-17 at 09:02 -0800, Mike Dickson wrote: > Is it reasonably possible to spin a RHEL 5.x Live CD/DVD + > Persistence? > > MikeD > > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From markmc at redhat.com Mon Dec 17 17:44:49 2007 From: markmc at redhat.com (Mark McLoughlin) Date: Mon, 17 Dec 2007 17:44:49 +0000 Subject: [Fedora-livecd-list] [PATCH] Use string methods instead of the string module In-Reply-To: References: Message-ID: <1197913489.12114.6.camel@blaa> On Sun, 2007-12-16 at 23:58 +0800, Tan Swee Heng wrote: > - (string.join(args, " "), ret)) > + (" ".join(args), ret)) Agree with Jeremy - I'm not a fan of this construct; it's just a wee bit too clever and obtuse for my liking. > - l = string.split(hostname, ".") > + l = hostname.split(".") I do prefer this construct, though. Cheers, Mark. From thesweeheng at gmail.com Mon Dec 17 18:09:24 2007 From: thesweeheng at gmail.com (Tan Swee Heng) Date: Tue, 18 Dec 2007 02:09:24 +0800 Subject: [Fedora-livecd-list] [PATCH] Use string methods instead of the string module In-Reply-To: <1197913489.12114.6.camel@blaa> References: <1197913489.12114.6.camel@blaa> Message-ID: Hi Jeremy and Mark, On Dec 18, 2007 1:44 AM, Mark McLoughlin wrote: > On Sun, 2007-12-16 at 23:58 +0800, Tan Swee Heng wrote: > > > - (string.join(args, " "), ret)) > > + (" ".join(args), ret)) > > Agree with Jeremy - I'm not a fan of this construct; it's just a wee > bit too clever and obtuse for my liking. Actually I did find it awkward in the past too... but I must have gotten used to it. :-P > > > - l = string.split(hostname, ".") > > + l = hostname.split(".") > > I do prefer this construct, though. Ok since there are two votes in favor of this, here's the updated patch that just modify imgcreate/kickstart.py. I've left fs.py untouched. Feel free to apply / not apply this. It is not a show-stopper bug after all. :-) Swee Heng -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0001-Use-string-methods-in-imgcreate-kickstart.py.txt URL: From dwoody1 at charter.net Mon Dec 17 19:30:37 2007 From: dwoody1 at charter.net (dcw) Date: Mon, 17 Dec 2007 13:30:37 -0600 Subject: [Fedora-livecd-list] syntax error in livecd-creator Message-ID: <200712171330.37258.dwoody1@charter.net> When I run livecd-creator I get a syntax error on line 127 (at the finally: keyword) I have never used python before but in looking at the source code and the makefile for installing livecd-tools it appears that at least part of the problem may be that the imgcreate directory is not installed. My thought is that python does not know where the imgcreate is located and can not import it. It does not, however, display an error when it imports imgcreate. Where does the imgcreate directory need to be located or how can I tell python where it is located. Thanks for you help, David From katzj at redhat.com Mon Dec 17 20:06:42 2007 From: katzj at redhat.com (Jeremy Katz) Date: Mon, 17 Dec 2007 15:06:42 -0500 Subject: [Fedora-livecd-list] [PATCH] Use string methods instead of the string module In-Reply-To: References: <1197913489.12114.6.camel@blaa> Message-ID: <1197922002.2908.49.camel@localhost.localdomain> On Tue, 2007-12-18 at 02:09 +0800, Tan Swee Heng wrote: > Ok since there are two votes in favor of this, here's the updated > patch that just modify imgcreate/kickstart.py. I've left fs.py > untouched. Feel free to apply / not apply this. It is not a > show-stopper bug after all. :-) Thanks, committed and pushed Jeremy From dwoody1 at charter.net Tue Dec 18 06:24:32 2007 From: dwoody1 at charter.net (dcw) Date: Tue, 18 Dec 2007 00:24:32 -0600 Subject: [Fedora-livecd-list] I installed the latest master. syntax error on install... Message-ID: <200712180024.32882.dwoody1@charter.net> I am installing this on a Centos 5.1 system. The out output from the install follows: /usr/bin/install -c -D tools/livecd-creator /usr/bin/livecd-creator /usr/bin/install -c -D tools/image-creator /usr/bin/image-creator /usr/bin/install -c -D tools/livecd-iso-to-disk.sh /usr/bin/livecd-iso-to-disk /usr/bin/install -c -D tools/mayflower /usr/lib/livecd-creator/mayflower /usr/bin/install -c -m 644 -D AUTHORS /usr/share/doc/livecd-tools-013/AUTHORS /usr/bin/install -c -m 644 -D COPYING /usr/share/doc/livecd-tools-013/COPYING /usr/bin/install -c -m 644 -D README /usr/share/doc/livecd-tools-013/README /usr/bin/install -c -m 644 -D HACKING /usr/share/doc/livecd-tools-013/HACKING mkdir -p /usr/share/livecd-tools/ /usr/bin/install -c -m 644 -D config/*.ks /usr/share/livecd-tools/ mkdir -p //usr/lib/python2.4/site-packages/imgcreate /usr/bin/install -c -m 644 -D imgcreate/*.py //usr/lib/python2.4/site-packages/imgcreate/ python -c "import compileall as c; c.compile_dir('//usr/lib/python2.4/site-packages/imgcreate', force=1)" Listing //usr/lib/python2.4/site-packages/imgcreate ... Compiling //usr/lib/python2.4/site-packages/imgcreate/__init__.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/creator.py ... File "//usr/lib/python2.4/site-packages/imgcreate/creator.py", line 565 finally: ^ SyntaxError: invalid syntax Compiling //usr/lib/python2.4/site-packages/imgcreate/errors.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/fs.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/kickstart.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/live.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/yuminst.py ... python -O -c "import compileall as c; c.compile_dir('//usr/lib/python2.4/site-packages/imgcreate', force=1)" Listing //usr/lib/python2.4/site-packages/imgcreate ... Compiling //usr/lib/python2.4/site-packages/imgcreate/__init__.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/creator.py ... File "//usr/lib/python2.4/site-packages/imgcreate/creator.py", line 565 finally: ^ SyntaxError: invalid syntax Compiling //usr/lib/python2.4/site-packages/imgcreate/errors.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/fs.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/kickstart.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/live.py ... Compiling //usr/lib/python2.4/site-packages/imgcreate/yuminst.py ... Am I missing something? David From gary at mlbassoc.com Tue Dec 18 09:05:56 2007 From: gary at mlbassoc.com (Gary Thomas) Date: Tue, 18 Dec 2007 02:05:56 -0700 Subject: [Fedora-livecd-list] I installed the latest master. syntax error on install... In-Reply-To: <200712180024.32882.dwoody1@charter.net> References: <200712180024.32882.dwoody1@charter.net> Message-ID: <47678D74.9050609@mlbassoc.com> dcw wrote: > I am installing this on a Centos 5.1 system. > The out output from the install follows: > > /usr/bin/install -c -D tools/livecd-creator /usr/bin/livecd-creator > /usr/bin/install -c -D tools/image-creator /usr/bin/image-creator > /usr/bin/install -c -D tools/livecd-iso-to-disk.sh /usr/bin/livecd-iso-to-disk > /usr/bin/install -c -D tools/mayflower /usr/lib/livecd-creator/mayflower > /usr/bin/install -c -m 644 -D AUTHORS /usr/share/doc/livecd-tools-013/AUTHORS > /usr/bin/install -c -m 644 -D COPYING /usr/share/doc/livecd-tools-013/COPYING > /usr/bin/install -c -m 644 -D README /usr/share/doc/livecd-tools-013/README > /usr/bin/install -c -m 644 -D HACKING /usr/share/doc/livecd-tools-013/HACKING > mkdir -p /usr/share/livecd-tools/ > /usr/bin/install -c -m 644 -D config/*.ks /usr/share/livecd-tools/ > mkdir -p //usr/lib/python2.4/site-packages/imgcreate > /usr/bin/install -c -m 644 -D > imgcreate/*.py //usr/lib/python2.4/site-packages/imgcreate/ > python -c "import compileall as c; > c.compile_dir('//usr/lib/python2.4/site-packages/imgcreate', force=1)" > Listing //usr/lib/python2.4/site-packages/imgcreate ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/__init__.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/creator.py ... > File "//usr/lib/python2.4/site-packages/imgcreate/creator.py", line 565 > finally: > ^ > SyntaxError: invalid syntax > > Compiling //usr/lib/python2.4/site-packages/imgcreate/errors.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/fs.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/kickstart.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/live.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/yuminst.py ... > python -O -c "import compileall as c; > c.compile_dir('//usr/lib/python2.4/site-packages/imgcreate', force=1)" > Listing //usr/lib/python2.4/site-packages/imgcreate ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/__init__.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/creator.py ... > File "//usr/lib/python2.4/site-packages/imgcreate/creator.py", line 565 > finally: > ^ > SyntaxError: invalid syntax > > Compiling //usr/lib/python2.4/site-packages/imgcreate/errors.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/fs.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/kickstart.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/live.py ... > Compiling //usr/lib/python2.4/site-packages/imgcreate/yuminst.py ... > > Am I missing something? Yes; python 2.5 -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ From thesweeheng at gmail.com Tue Dec 18 14:33:00 2007 From: thesweeheng at gmail.com (Tan Swee Heng) Date: Tue, 18 Dec 2007 22:33:00 +0800 Subject: [Fedora-livecd-list] I installed the latest master. syntax error on install... In-Reply-To: <200712180024.32882.dwoody1@charter.net> References: <200712180024.32882.dwoody1@charter.net> Message-ID: On Dec 18, 2007 2:24 PM, dcw wrote: > I am installing this on a Centos 5.1 system. > The out output from the install follows: > > Compiling //usr/lib/python2.4/site-packages/imgcreate/creator.py ... > File "//usr/lib/python2.4/site-packages/imgcreate/creator.py", line 565 > finally: > ^ > SyntaxError: invalid syntax See http://docs.python.org/ref/try.html: "Changed in version 2.5: In previous versions of Python, try...except...finally did not work. try...except had to be nested in try...finally." Like Gary said, you need to use Python 2.5 since the code uses the new syntax. There are more details at http://www.python.org/dev/peps/pep-0341/. Swee Heng From thesweeheng at gmail.com Wed Dec 19 19:44:34 2007 From: thesweeheng at gmail.com (Tan Swee Heng) Date: Thu, 20 Dec 2007 03:44:34 +0800 Subject: [Fedora-livecd-list] Added a progress bar to livecd-iso-to-disk.sh Message-ID: The last few steps of livecd-iso-to-disk.sh usually take a long time While waiting, one sees the message "Copying live image to USB stick" without any indication of progress. It would be great if a progress bar is displayed. The attached patch implements a progress bar with ETA information. (I was inspired by http://www.theiling.de/projects/bar.html for this patch.) Hope everyone finds this useful. Regards, Swee Heng -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0001-Added-a-progress-bar-to-livecd-iso-to-disk.sh.txt URL: From markmc at redhat.com Thu Dec 20 10:48:11 2007 From: markmc at redhat.com (Mark McLoughlin) Date: Thu, 20 Dec 2007 10:48:11 +0000 Subject: [Fedora-livecd-list] [PATCH] Run e2fsck before resize2fs Message-ID: <1198147691-6937-1-git-send-email-markmc@redhat.com> resize2fs barfs if you haven't run e2fsck on the filesystem beforehand, so do this in the case of resizing an existing image. We already do this when minimising an image. Signed-off-by: Mark McLoughlin --- imgcreate/fs.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/imgcreate/fs.py b/imgcreate/fs.py index 3efddcb..fa83c2c 100644 --- a/imgcreate/fs.py +++ b/imgcreate/fs.py @@ -225,6 +225,8 @@ class SparseExtLoopbackMount(SparseLoopbackMount): if size > current_size: self.expand(size) + self.__fsck() + resize2fs(self.lofile, size) if size < current_size: -- 1.5.3.3 From sriram_ka at hotmail.com Mon Dec 24 19:09:09 2007 From: sriram_ka at hotmail.com (Sriram Kailasam) Date: Tue, 25 Dec 2007 00:39:09 +0530 Subject: [Fedora-livecd-list] Creating a Fedora livecd with modified kernel source Message-ID: Objective: To create a custom Fedora Live CD with modified kernel source. Problem: System: - Fedora Core 7 Tools: - livecd-creator - createrepo Steps performed: 1. I am creating a repository containing the modified kernel rpm + other required rpms using the createrepo command. * createrepo /opt/repository * /opt/repository contains modified kernel rpm and other required rpms. 2. Then we are creating an iso using livecd-creator with the minimal kickstart file provided. * livecd-creator -c /usr/share/livecd-tools/livecd-fedora-minimal.ks * The error we are getting is umount: /var/tmp/livecd-creator-0I9s69/install_root: device is busy umount: /var/tmp/livecd-creator-0I9s69/install_root: device is busy ioctl: LOOP_CLR_FD: Device or resource busy Traceback (most recent call last): File "/usr/bin/livecd-creator", line 1603, in sys.exit(main()) File "/usr/bin/livecd-creator", line 1575, in main target.install() File "/usr/bin/livecd-creator", line 948, in install self.installPackages() File "/usr/bin/livecd-creator", line 602, in installPackages %(self.build_dir, subdir)): OSError: [Errno 2] No such file or directory: '/var/tmp/livecd-creator-0I9s69/install_root/etc/lvm/cache' Please let me know the correct procedure of "how to create a Livecd with modified kernel source" Thanks in advance Sriram _________________________________________________________________ Post free property ads on Yello Classifieds now! www.yello.in http://ss1.richmedia.in/recurl.asp?pid=221 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sriram_ka at hotmail.com Tue Dec 25 19:18:00 2007 From: sriram_ka at hotmail.com (Sriram Kailasam) Date: Wed, 26 Dec 2007 00:48:00 +0530 Subject: [Fedora-livecd-list] Kernel panic while booting from live cd Message-ID: Hello all, I have created a live cd with modified linux kernel using livecd-create tool. Just installing the kernel rpm on the system using rpm -ivh works fine. But when I try booting from the livecd, it gives the following error. Loading vlinuz0...................................................................... Loading initrd0.img................................................................. Ready Uncompressing Linux... OK, booting the kernel ASPI: no DMI BIOS yesr, acpi=force is required to enable ACPI PCI: PIX3: Enabling Passive Release on 0000:00:01.0 Red Hat nash version 6.0.9 starting dm_mod: exports duplicate symbol dm_get_mapinfo (owned by kernel) insmod: error inserting '/lib/dm-mod.ko': -1 Invalid module format dm_mirror: exports duplicate symbol dm_register_dirty_log_type (owned by kernel) insmod: error inserting '/lib/dm-mirror.ko': -1 Invalid module format device-mapper: zero: register failed -17 insmod: error inserting '/lib/dm-zero.ko': -1 File exists device-mapper: snapshots: snapshot target register failed -17 insmod: error inserting '/lib/dm-snapshot.ko': -1 File exists Reading all physical volumes. This may take a while... No volume groups found Volume group "VolGroup00: not found mount: could not find filesystem '/dev/root ' setuproot: moving /dev failed: No such file or directory setuproot: error mounting /proc failed: No such file or directory setuproot: error mounting /sys failed: No such file or directory switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! I have checked all the RAID and LVM optiions presemt at the make menuconfig stage of kernel compilation. Thanks in advance, sriram _________________________________________________________________ Post free property ads on Yello Classifieds now! www.yello.in http://ss1.richmedia.in/recurl.asp?pid=219 From dmc.fedora at filteredperception.org Tue Dec 25 22:17:35 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Tue, 25 Dec 2007 16:17:35 -0600 Subject: [Fedora-livecd-list] Kernel panic while booting from live cd In-Reply-To: References: Message-ID: <4771817F.30400@filteredperception.org> Sriram Kailasam wrote: > Hello all, > I have created a live cd with modified linux kernel using livecd-create tool. Just installing the kernel rpm on the system using rpm -ivh works fine. > > But when I try booting from the livecd, it gives the following error. Just starting from the top, looks like possible problems with device-mapper mirror support in the kernel/modules. Try booting with cmdline changed from 'quiet' to 'verbose', and then also try adding 'shell' or 'eshell'. If you make it to a shell, try creating a devicemapper snapshot target manually and see if it works, or try to figure out why it fails. Otherwise post the boot messages from a verbose run. cheers... -dmc > Loading vlinuz0...................................................................... > Loading initrd0.img................................................................. > Ready > Uncompressing Linux... OK, booting the kernel > ASPI: no DMI BIOS yesr, acpi=force is required to enable ACPI > PCI: PIX3: Enabling Passive Release on 0000:00:01.0 > Red Hat nash version 6.0.9 starting > dm_mod: exports duplicate symbol dm_get_mapinfo (owned by kernel) > insmod: error inserting '/lib/dm-mod.ko': -1 Invalid module format > dm_mirror: exports duplicate symbol dm_register_dirty_log_type (owned by kernel) > insmod: error inserting '/lib/dm-mirror.ko': -1 Invalid module format > device-mapper: zero: register failed -17 > insmod: error inserting '/lib/dm-zero.ko': -1 File exists > device-mapper: snapshots: snapshot target register failed -17 > insmod: error inserting '/lib/dm-snapshot.ko': -1 File exists > Reading all physical volumes. This may take a while... > No volume groups found > Volume group "VolGroup00: not found > mount: could not find filesystem '/dev/root ' > setuproot: moving /dev failed: No such file or directory > setuproot: error mounting /proc failed: No such file or directory > setuproot: error mounting /sys failed: No such file or directory > switchroot: mount failed: No such file or directory > Kernel panic - not syncing: Attempted to kill init! > > > I have checked all the RAID and LVM optiions presemt at the make menuconfig stage of kernel compilation. > > > Thanks in advance, > sriram > > _________________________________________________________________ > Post free property ads on Yello Classifieds now! www.yello.in > http://ss1.richmedia.in/recurl.asp?pid=219 > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list From gmvects at gmail.com Thu Dec 27 08:09:03 2007 From: gmvects at gmail.com (Vects) Date: Thu, 27 Dec 2007 10:09:03 +0200 Subject: [Fedora-livecd-list] minimal with sshd Message-ID: <5c34bd9e0712270009t57326cccw158e1a866331951c@mail.gmail.com> Hello there, I want to create minimal fedora livecd with some local addons, I don't need any desktop. I used minimal.ks but it has missed login things, somebody could advise me what to add to livecd-fedora-minimal.ks in order it will allow me to log in with root on any other account, plus I want to run sshd on it. Thanks, Gmvects -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmc.fedora at filteredperception.org Fri Dec 28 02:55:36 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Thu, 27 Dec 2007 20:55:36 -0600 Subject: [Fedora-livecd-list] minimal with sshd In-Reply-To: <5c34bd9e0712270009t57326cccw158e1a866331951c@mail.gmail.com> References: <5c34bd9e0712270009t57326cccw158e1a866331951c@mail.gmail.com> Message-ID: <477465A8.3020202@filteredperception.org> Vects wrote: > Hello there, > I want to create minimal fedora livecd with some local addons, I don't > need any desktop. I used minimal.ks but it has missed login things, > somebody could advise me what to add to livecd-fedora-minimal.ks in > order it will allow > me to log in with root on any other account, plus I want to run sshd on it. Can you be more specific? Perhaps describe or file a bug claiming that the livecd-fedora-minimal.ks is broken because it doesn't do X, Y, or Z... Other than that kind of thing, I think general questions about how to make a kickstart config that makes a system behave a certain way are off-topic for this list. Now, if you can make a kickstart that you have tested and know can install a system with the properties you want, but livecd-creator fails to make a usable equivalent LiveCD, then that would be on-topic. Cheers, -dmc From thiago.braga.santana at gmail.com Fri Dec 28 12:33:50 2007 From: thiago.braga.santana at gmail.com (Thiago Braga Santana) Date: Fri, 28 Dec 2007 10:33:50 -0200 Subject: [Fedora-livecd-list] Creating livecd without lvm2? Message-ID: Hello to everyone on the list. I am having a big problem with the lvm2 livecd, on computers that use the Hard Disk SATA2. I need the help of someone of the list to make a livecd without lvm2. Someone help me? How should the configuration file kickstart? I await response. Thiago Santana -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmc.fedora at filteredperception.org Fri Dec 28 13:36:13 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Fri, 28 Dec 2007 07:36:13 -0600 Subject: [Fedora-livecd-list] Creating livecd without lvm2? In-Reply-To: References: Message-ID: <4774FBCD.7020605@filteredperception.org> Thiago Braga Santana wrote: > Hello to everyone on the list. > > I am having a big problem with the lvm2 livecd, on computers that use > the Hard Disk SATA2. I'm curious, what is the problem? I need the help of someone of the list to make a > livecd without lvm2. device-mapper is needed for livecd-creator. lvm2 is a layer on top of device-mapper. Have you tried just disabling the lvm initialization in /etc/rc.d/rc.sysinit? -dmc From keith at karsites.net Fri Dec 28 12:59:24 2007 From: keith at karsites.net (Keith Roberts) Date: Fri, 28 Dec 2007 12:59:24 +0000 (GMT) Subject: [Fedora-livecd-list] Problem with Fedora yum servers? Message-ID: This may be off-topic, but I'm hoping someone from RH will read it. I'm getting the following errors when using yum: [root at karsites ~]# yum update livna 100% |=========================| 2.1 kB 00:00 http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os/repodata/repomd.xml: [Errno 4] IOError: Trying other mirror. fedora 100% |=========================| 2.1 kB 00:00 adobe-linux-i386 100% |=========================| 951 B 00:00 http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/updates/8/i386/repodata/repomd.xml: [Errno 4] IOError: Trying other mirror. updates 100% |=========================| 2.3 kB 00:00 Setting up Update Process No Packages marked for Update [root at karsites ~]# Is it me, or is there a problem with the servers? Kind Regards Keith Roberts ----------------------------------------------------------------- Websites: 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 thiago.braga.santana at gmail.com Fri Dec 28 15:11:36 2007 From: thiago.braga.santana at gmail.com (Thiago Braga Santana) Date: Fri, 28 Dec 2007 13:11:36 -0200 Subject: [Fedora-livecd-list] Creating livecd without lvm2? In-Reply-To: <4774FBCD.7020605@filteredperception.org> References: <4774FBCD.7020605@filteredperception.org> Message-ID: Thank you for rapid response. During the boot process, the following error occurs: " / Sbin / lvm.static Parse error at byte 996 (line 43) the expected value. Failed to load config file /etc/lvm/lvm.conf " Do I need to mention that this problem only occurs when running on a computer with livecd Hard Disk-type Sata2. No, I have not tried to disable the file /etc/rc.d/rc.sysinit. How should I precede? Thank you. Thiago Santana -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmvects at gmail.com Sat Dec 29 17:23:56 2007 From: gmvects at gmail.com (gmvects) Date: Sat, 29 Dec 2007 19:23:56 +0200 Subject: [Fedora-livecd-list] minimal with sshd In-Reply-To: <477465A8.3020202@filteredperception.org> References: <5c34bd9e0712270009t57326cccw158e1a866331951c@mail.gmail.com> <477465A8.3020202@filteredperception.org> Message-ID: <1198949036.16901.18.camel@vects1> On Thu, 2007-12-27 at 20:55 -0600, Douglas McClendon wrote: > Vects wrote: > > Hello there, > > I want to create minimal fedora livecd with some local addons, I don't > > need any desktop. I used minimal.ks but it has missed login things, > > somebody could advise me what to add to livecd-fedora-minimal.ks in > > order it will allow > > me to log in with root on any other account, plus I want to run sshd on it. > > Can you be more specific? Perhaps describe or file a bug claiming that > the livecd-fedora-minimal.ks is broken because it doesn't do X, Y, or Z... I created minimal and it did work, I mean I've booted livecd, got a prompt, livecd-creator was working well, no bugs I've found with it. > > Other than that kind of thing, I think general questions about how to > make a kickstart config that makes a system behave a certain way are > off-topic for this list. Now, if you can make a kickstart that you have > tested and know can install a system with the properties you want, but > livecd-creator fails to make a usable equivalent LiveCD, then that would > be on-topic. I see, sorry my bad. Could somebody point out some good info about kickstart config things? Thanks, Gmvects. > > Cheers, > > -dmc > > -- > Fedora-livecd-list mailing list > Fedora-livecd-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-livecd-list From dmc.fedora at filteredperception.org Sat Dec 29 15:47:33 2007 From: dmc.fedora at filteredperception.org (Douglas McClendon) Date: Sat, 29 Dec 2007 09:47:33 -0600 Subject: [Fedora-livecd-list] minimal with sshd In-Reply-To: <1198949036.16901.18.camel@vects1> References: <5c34bd9e0712270009t57326cccw158e1a866331951c@mail.gmail.com> <477465A8.3020202@filteredperception.org> <1198949036.16901.18.camel@vects1> Message-ID: <47766C15.8040703@filteredperception.org> gmvects wrote: > On Thu, 2007-12-27 at 20:55 -0600, Douglas McClendon wrote: >> Vects wrote: >>> Hello there, >>> I want to create minimal fedora livecd with some local addons, I don't >>> need any desktop. I used minimal.ks but it has missed login things, >>> somebody could advise me what to add to livecd-fedora-minimal.ks in >>> order it will allow >>> me to log in with root on any other account, plus I want to run sshd on it. >> Can you be more specific? Perhaps describe or file a bug claiming that >> the livecd-fedora-minimal.ks is broken because it doesn't do X, Y, or Z... > I created minimal and it did work, I mean I've booted livecd, got a > prompt, livecd-creator was working well, no bugs I've found with it. > >> Other than that kind of thing, I think general questions about how to >> make a kickstart config that makes a system behave a certain way are >> off-topic for this list. Now, if you can make a kickstart that you have >> tested and know can install a system with the properties you want, but >> livecd-creator fails to make a usable equivalent LiveCD, then that would >> be on-topic. > I see, sorry my bad. > Could somebody point out some good info about kickstart config things? > This seems sparse http://docs.fedoraproject.org/install-guide/f8/en_US/sn-automating-installation.html This is where I've traditionally gone http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-kickstart2.html In general it's mainly about the %post which is a shell script, which is an open door to anything a sysadmin can do from a commandline. -dmc From kanarip at kanarip.com Sat Dec 29 22:02:44 2007 From: kanarip at kanarip.com (Jeroen van Meeuwen) Date: Sat, 29 Dec 2007 23:02:44 +0100 Subject: [Fedora-livecd-list] Trying to build from GIT Message-ID: <4776C404.4040208@kanarip.com> Hi, I'm building livecd-tools from the latest code in GIT, but rpmlint complaints like there's no tomorrow: [jmeeuwen at elwood devel]$ rpmlint /var/lib/mock/fedora-8-x86_64/result/livecd-tools-013-1.fc8.x86_64.rpm livecd-tools.x86_64: E: non-executable-script /usr/lib/python2.5/site-packages/imgcreate/kickstart.py 0644 livecd-tools.x86_64: E: non-executable-script /usr/lib/python2.5/site-packages/imgcreate/errors.py 0644 livecd-tools.x86_64: E: non-executable-script /usr/lib/python2.5/site-packages/imgcreate/creator.py 0644 livecd-tools.x86_64: E: non-executable-script /usr/lib/python2.5/site-packages/imgcreate/fs.py 0644 livecd-tools.x86_64: E: non-executable-script /usr/lib/python2.5/site-packages/imgcreate/yuminst.py 0644 livecd-tools.x86_64: E: non-executable-script /usr/lib/python2.5/site-packages/imgcreate/live.py 0644 livecd-tools.x86_64: E: non-executable-script /usr/lib/python2.5/site-packages/imgcreate/__init__.py 0644 livecd-tools.x86_64: W: invalid-license GPL livecd-tools.x86_64: E: no-binary livecd-tools.x86_64: E: only-non-binary-in-usr-lib Could these be fixed at some point in time please? Thanks, in advance. Kind regards, Jeroen van Meeuwen -kanarip