Problems rebuilding binary image
Hi, I'm new to the mailing list, sorry if I'm not using the correct format. System: Ubuntu 8.04 live-helper: 2.0~a8-1from sid repo Arch: x86 I (somewhat)successfully built my first live image but needed to go back and change some settings (i.e. runlevel, etc). I first did a 'sudo lh clean --binary' then changed the settings in the chroot directory and ran 'sudo lh binary'. Judging from the terminal output, I thought everything went ok but after completion, I discovered 'lh binary' only created binary/live/filesystem.squashfs and no iso image. I have repeated the process again and got the same result. From my understanding, this is not correct so if anyone could tell me what I am doing wrong it would be greatly appreciated. Here is the output: u...@user-laptop:~/debian-live$ sudo lh clean --binary [sudo] password for user: u...@user-laptop:~/debian-live$ sudo lh binary P: Setting up cleanup function P: Begin copying chroot... P: This may take a while. P: Begin mounting /dev/pts... W: skipping chroot_devpts P: Begin mounting /proc... W: skipping chroot_proc P: Begin mounting /sys... W: skipping chroot_sysfs P: Configuring file /etc/hosts W: skipping chroot_hosts P: Configuring file /etc/resolv.conf W: skipping chroot_resolv P: Configuring file /etc/hostname W: skipping chroot_hostname P: Configuring file /usr/sbin/policy-rc.d W: skipping chroot_sysv-rc P: Configuring file /etc/apt/apt.conf W: skipping chroot_apt P: Configuring file /etc/apt/sources.list Get:1 http://security.debian.org lenny/updates Release.gpg [835B] Get:2 http://security.debian.org lenny/updates Release [40.8kB] Get:3 http://ftp.de.debian.org lenny Release.gpg [1033B] Hit http://ftp.de.debian.org lenny Release Ign http://ftp.de.debian.org lenny/main Packages/DiffIndex Get:4 http://security.debian.org lenny/updates/main Packages [359kB] Ign http://ftp.de.debian.org lenny/non-free Packages/DiffIndex Hit http://ftp.de.debian.org lenny/main Packages Hit http://ftp.de.debian.org lenny/non-free Packages Get:5 http://security.debian.org lenny/updates/non-free Packages [20B] Fetched 402kB in 7s (54.0kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree... Done The following packages will be upgraded: libc6 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 4555kB of archives. After this operation, 0B of additional disk space will be used. Get:1 http://security.debian.org lenny/updates/main libc6 2.7-18lenny2 [4555kB] Fetched 4555kB in 1min3s (71.3kB/s) Preconfiguring packages ... Can not write log, openpty() failed (/dev/pts not mounted?) (Reading database ... 7944 files and directories currently installed.) Preparing to replace libc6 2.7-18lenny1 (using .../libc6_2.7-18lenny2_i386.deb) ... Unpacking replacement libc6 ... Processing triggers for man-db ... Can not write log, openpty() failed (/dev/pts not mounted?) Setting up libc6 (2.7-18lenny2) ... Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done debian-archive-keyring is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Hit http://security.debian.org lenny/updates Release.gpg Hit http://ftp.de.debian.org lenny Release.gpg Hit http://security.debian.org lenny/updates Release Ign http://security.debian.org lenny/updates/main Packages/DiffIndex Hit http://ftp.de.debian.org lenny Release Ign http://security.debian.org lenny/updates/non-free Packages/DiffIndex Ign http://ftp.de.debian.org lenny/main Packages/DiffIndex Hit http://security.debian.org lenny/updates/main Packages Hit http://security.debian.org lenny/updates/non-free Packages Ign http://ftp.de.debian.org lenny/non-free Packages/DiffIndex Hit http://ftp.de.debian.org lenny/main Packages Hit http://ftp.de.debian.org lenny/non-free Packages Reading package lists... Done P: Begin building root filesystem image... Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: squashfs-source The following NEW packages will be installed: squashfs-tools 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 92.9kB of archives. After this operation, 238kB of additional disk space will be used. Get:1 http://ftp.de.debia
Re: Problems rebuilding binary image
Daniel Baumann wrote: On 02/26/2010 07:07 PM, Frank Zambrini wrote: W: GPG error: http://security.debian.org lenny/updates Release: Couldn't access keyring: 'No such file or directory' W: GPG error: http://ftp.de.debian.org lenny Release: Couldn't access keyring: 'No such file or directory' W: You may want to run apt-get update to correct these problems did you remove the apt keyring (/etc/apt/*.gpg)? if you really don't want to use apt secure, which is not recommended, you should use lh config --apt-secure false rather than manually deleting things in the chroot. I never deleted anything from chroot, I only changed the runlevel in /etc/inittab. From what I read in the man page, the default keyring is debian-archive-keyring and I assumed that would work for all of the repos. I'm not exactly sure how the keyring system works so I will read up and see which ones I need to add. The first image I built worked fine, so I don't understand why my second attempt was unsuccessful when all I changed was the runlevel. I'm going to try building a new image in the next few days, I will try using lh clean --binary and lh binary and see if I can repeat the problem. -- To UNSUBSCRIBE, email to debian-live-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4b95d506.9060...@gmail.com
Passing argument to apt-get
Hi Everyone, I'm trying to build a gnome-less Lenny image (xfce), however some gnome stuff has crept in (gksu, gnome-mime-data, gnome-mount, etc). From what I can tell, (since none of packages require gnome) is that apt is installing the "recommended" packages as if they were dependencies, i.e. synaptic only recommends gksu but somehow it gets installed in my live image. I did a little reading and found the option for apt '--no-install-recommends' but I am not sure how I could pass this to live helper. Does anyone know how this could be done, or any other way to remove the gnome stuff? Thanks in advance. <>
Re: Passing argument to apt-get
On 08/23/2010 05:13 AM, Daniel Baumann wrote: On 08/23/2010 06:01 AM, to...@tuxteam.de wrote: You are looking for lh config's --apt-options option: no, he wants --apt-recommends false I gave both methods a try and both succeeded in preventing the recommended packages from being installed. However, when I used 'lh config --apt-options --no-install-recommends', lh build prompted me for a yes or no for every package during the build. Using --apt-recommends false, I did not see this behavior (although I had to delete config directory and run lh config). Thanks all for the help. <>
Using a newer kernel with lenny
Hi all, I'm trying to use a newer kernel with my lenny build but I am running into a few problems. I added the repo listed in section 5.5 of the manual (only added the .chroot source) along with the gpg key and added "linux-image-2.6 aufs-modules-2.6" to my custom package list. When I ran lh build, it stopped with an error: Package linux-image-2.6 is a virtual package provided by: linux-image-2.6.32-bpo.5-xen-686 2.6.32-15~bpo50+1 linux-image-2.6.32-bpo.5-vserver-686-bigmem 2.6.32-15~bpo50+1 linux-image-2.6.32-bpo.5-vserver-686 2.6.32-15~bpo50+1 linux-image-2.6.32-bpo.5-openvz-686 2.6.32-15~bpo50+1 linux-image-2.6.32-bpo.5-amd64 2.6.32-15~bpo50+1 linux-image-2.6.32-bpo.5-686-bigmem 2.6.32-15~bpo50+1 linux-image-2.6.32-bpo.5-686 2.6.32-15~bpo50+1 linux-image-2.6.32-bpo.5-486 2.6.32-15~bpo50+1 linux-image-2.6.32-bpo.4-xen-686 2.6.32-11~bpo50+1 linux-image-2.6.32-bpo.4-vserver-686-bigmem 2.6.32-11~bpo50+1 linux-image-2.6.32-bpo.4-vserver-686 2.6.32-11~bpo50+1 linux-image-2.6.32-bpo.4-openvz-686 2.6.32-11~bpo50+1 linux-image-2.6.32-bpo.4-amd64 2.6.32-11~bpo50+1 linux-image-2.6.32-bpo.4-686-bigmem 2.6.32-11~bpo50+1 linux-image-2.6.32-bpo.4-686 2.6.32-11~bpo50+1 linux-image-2.6.32-bpo.4-486 2.6.32-11~bpo50+1 linux-image-2.6.26-2-xen-686 2.6.26-24lenny1 linux-image-2.6.26-2-vserver-686-bigmem 2.6.26-24lenny1 linux-image-2.6.26-2-vserver-686 2.6.26-24lenny1 linux-image-2.6.26-2-openvz-686 2.6.26-24lenny1 linux-image-2.6.26-2-amd64 2.6.26-24lenny1 linux-image-2.6.26-2-686-bigmem 2.6.26-24lenny1 linux-image-2.6.26-2-686 2.6.26-24lenny1 linux-image-2.6.26-2-486 2.6.26-24lenny1 linux-image-2.6.26-1-xen-686 2.6.26-13lenny2 linux-image-2.6.26-1-vserver-686-bigmem 2.6.26-13lenny2 linux-image-2.6.26-1-vserver-686 2.6.26-13lenny2 linux-image-2.6.26-1-openvz-686 2.6.26-13lenny2 linux-image-2.6.26-1-amd64 2.6.26-13lenny2 linux-image-2.6.26-1-686-bigmem 2.6.26-13lenny2 linux-image-2.6.26-1-686 2.6.26-13lenny2 linux-image-2.6.26-1-486 2.6.26-13lenny2 You should explicitly select one to install. E: Package linux-image-2.6 has no installation candidate So I changed my package list to include "linux-image-2.6.30-backports.1-486=2.6.30-3~backports50+1 aufs-modules-2.6.30-backports.1-486=2.6.30+0+20090302-1" followed by lh clean and lh build. This time the build stopped with the error: The following packages have unmet dependencies: squashfs-modules-2.6-486: Depends: linux-latest-modules-2.6.26-2-486 squashfs-modules-2.6-686: Depends: linux-latest-modules-2.6.26-2-686 E: Broken packages Does anyone know what the problem is? I don't see a squashfs-modules package in the unsupported.debian-maintainers.org repo. Any help would be appreciated. <>
Re: Using a newer kernel with lenny
On 08/28/2010 10:09 AM, Daniel Baumann wrote: On 08/28/2010 04:01 AM, Frank Zambrini wrote: I don't see a squashfs-modules package in the unsupported.debian-maintainers.org repo. since 2.6.27, squashfs is included mainline. Thanks, I did not know that. However I am not sure why lh would be trying to install the squashfs-modules packages. My package list includes standard-x11 along with some other desktop specific stuff. Could there be a dependency issue with the package? Thanks for the help. <>
Fwd: Re: Using a newer kernel with lenny
I sent this reply to the wrong address first time around. Sorry about the confusion. I also added my switches for lh config Thanks for the help, unfortunately it did not make a difference. Here is what I did: (as root) rm config/* lh clean lh config --archive-areas 'main non-free' -d lenny -b iso --apt-recommends false lh build And still got the same error. For some reason lh is still trying to install the 2.6.26 kernel. I even tried backing up my stuff and "rm -r config" but still had the same results. I also tried the method suggested by intrigeri. I cloned the git repo, then copied the config/chroot_local-packages/aufs-modules-2.6-686_1.0_all.deb and squashfs-modules-2.6-686_1.0_all.deb packages to my config/chroot_local-packages and then set up the debian backports repo. It looks like this method will work, however I still have a small problem. Live helper installs two kernel versions; one for i486 and another for i686. The fake packages provided by T(A)ILS only covers i686 so I still run into dependency problems. I'm not sure how to configure lh for i686 only (-a i686 did not work) so I may have to make i486 versions of the squashfs and aufs packages. Once again, thanks for the help. ... Setting up squashfs-modules-2.6.26-2-486 (2.6.26+3.3-6+lenny3) ... dpkg: dependency problems prevent configuration of squashfs-modules-2.6-486: squashfs-modules-2.6-486 depends on linux-latest-modules-2.6.26-2-486; however: Package linux-latest-modules-2.6.26-2-486 is not installed. dpkg: error processing squashfs-modules-2.6-486 (--configure): dependency problems - leaving unconfigured Setting up squashfs-modules-2.6-686 (1.0) ... Setting up synaptic (0.62.1+nmu1) ... <>
Re: Fwd: Re: Using a newer kernel with lenny
Thanks for the tips. I discovered the problem that was causing the squashfs-modules-2.6-486 issue. It turns out that I had the wrong kernel flavor in my package list. I changed linux-image-2.6-486=2.6.32+27~bpo50+1 to linux-image-2.6-686=2.6.32+27~bpo50+1 and made a few modifications to the fake aufs and squashfs packages along with adding the kernel flavor to my config. -k 686=2.6.32+27~bpo50+ Now the image builds but won't boot. The entry in isolinux.cfg points to /live/vmlinuz and /live/initrd.img but my kernel and initrd are: /live/vmlinuz-2.6.32-bpo.5-686 /live/initrd.img-2.6.32-bpo.5-686 Is there any way to modify the isolinux.cfg file before building? If not I may have to extract the iso, chang the entry, then rebuild, but this is my last resort. Thanks for all of the help. <>
Re: Fwd: Re: Using a newer kernel with lenny
On 09/02/2010 12:59 PM, Daniel Baumann wrote: get proper made backports that include the required modules and meta packages, and set LH_LINUX_PACKAGES to the correct value. I'm assuming that the proper backport for the kernel must be the 2.6.30 from the unsupported.debian-maintainers.org repo. I removed linux-image from my package list, added the unsupported repo to config/chroot_sources, and then modified my config/chroot like so: LH_LINUX_FLAVOURS="backports.1-686" LH_LINUX_PACKAGES="linux-image-2.6.30 aufs-modules-2.6.30" The build process completed and the image boots the 2.6.30 kernel without issue (so far) everything else is just stupid (no offence intendet). None taken, thanks for all of the help everyone. <>
Problems booting live system from usb
Hi everyone, I'm unable to boot my lenny system from a usb drive. Testing with "qemu -cdrom binary-hybrid.iso" works so I know the image is not the problem. I have a usb stick that I boot multiple os's from, so rather than copy the entire image to the drive, I just copied the contents of /live from the hybrid iso into the directory /debian_live on my usb drive. ls /media/liveboot/debian_live/ filesystem.packages filesystem.squashfs initrd.img memtest parameters.txt vmlinuz Then I added the following entry to my grub.cfg (grub2 on the drive) menuentry "Debian Live" { linux /debian_live/vmlinuz initrd /debian_live/initrd.img boot=live live-config xdebconf debug live-media-path=/debian_live/ live-media=removable-usb } I read through the man page for live-initramfs and added the "live-media-path=" and "live-media=" parameters, but the system defaults to busybox after a few seconds with the error messages: Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. mount: cannot read /etc/fstab: No such file or directory Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory done. mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn't have /sbin/init. No init found. Try passing init= bootarg Looking through the man page, I do not see a init= parameter so I am assuming that it is part of the grub entry. Anyone know what the problem could be? Any help is appreciated. <>
Re: Problems booting live system from usb
On 09/07/2010 02:11 PM, Daniel Baumann wrote: it should work with that. what version of live-boot+live-config or live-initramfs are you using? Apparently I'm not using either of them. I just grabbed live-helper and live-build from the sid repos and started working. I never realized that I needed anything else. I am building on Ubuntu 10.04, so maybe that has something to do with the problem. I see there is a package for live-initramfs in the Ubuntu repos, version 1.173.1. I am guessing that it is old so I will grab the latest from sid. Unless there is a better option. Thanks for the quick reply. <>
Re: Problems booting live system from usb
On 09/07/2010 02:45 PM, Ben Armstrong wrote: You have misunderstood. live-boot/live-config are *in the image itself*, not on your build system. likewise, live-initramfs (older incarnation of live-boot+live-config). Thanks for clearing that up. I have live-initramfs version: 1.156.1+1.157.2-1 just to be sure: you're building*on* ubuntu, but you're building a debian image, not an ubuntu one. if so, then you should be fine. Yes, this is correct. My operating system is Ubuntu 10.04 and I am building a Debian Lenny image I have tried this with 2 different images that I have built. Both are lenny and both have the same results. My initial thought is that maybe there needs to be a delay in the init somewhere to give the filesystem time to decompress, but its just a thought. I will try downloading a pre-made image and see if the problem persists. <>
Re: how to make iso-hybrid?
On 09/08/2010 08:17 AM, Daniel Baumann wrote: you need syslinux 4 for that. since lenny doesn't have one, you'll need a backport. I used syslinux from squeeze for my lenny build. I downloaded the packages syslinux and syslinux-common and placed them in config/chroot_local-packages. I was able to build an iso-hybrid so it seems to be working ok. I realize its not the best fix, but I couldn't find a backport. <>
Re: Problems booting live system from usb
On 09/07/2010 03:54 PM, Daniel Baumann wrote: i remember that we fixed something related to the path some time ago, can you please try with the current version of live-boot+live-config? if you use live-helper from sid, you only need to do: lh config -r live.debian.net and then rebuild. I gave this a try and the following were installed: live-boot2.0.4+20100906.132215~50lenny+1 live-boot-initramfs-tools2.0.4+20100906.132215~50lenny+1 live-config2.0.5+20100906.130516~50lenny+1 live-config-sysvinit2.0.5+20100906.130516~50lenny+1 live-initramfs2.0.4+20100906.132215~50lenny+1 I tried booting it from qemu first and all was good (except xdm did not start). I then tried booting with the usb stick, but it still drops back to busybox with the same error messages. <>
Re: Problems booting live system from usb
On 09/08/2010 09:17 PM, Richard Nelson wrote: Ok my guess is that if it works under qemu and not after you install to usb stick, then perhaps something wrong with the usb steps. Can you list them in detail? Thanks. Here are the steps I used to install debian live to my usb stick (which has ext3 fs): mkdir /media/liveboot/debian_live mount -o loop binary-hybrid.iso /mnt cp /mnt/live/* /media/liveboot/debian_live (I checked the md5sums to verify the files are not corrupt) The drive already has grub2 so I just added the entry: menuentry "Debian Live" { linux /debian_live/vmlinuz initrd /debian_live/initrd.img boot=live live-config xdebconf debug live-media-path=/debian_live/ live-media=removable-usb } Since my last message I have tried a few different images and all have the same problem. The first image was and old lenny+kde iso that I downloaded from the archives about 6 months ago (debian-live-503-amd64-kde-desktop.iso). The other image is the latest squeeze build from the archives (debian-live-60alpha1-i386-standard.iso) and it suffers the same problem. I also played around with adding various kernel parameters (root=, rootdelay=, init=) but none made a difference. I'm not entirely sure how the boot process works so I can't determine where the problem is. I will probably try making a usb-hdd image and writing it to a drive, unless someone has a better idea. <>
Re: Problems booting live system from usb
On 09/14/2010 02:08 AM, Daniel Baumann wrote: live-boot, unless told otherwise with live-media-path, only looks in /live. either adjust the location, or use live-media-path. see man live-boot for more information. I did use live-media-path in my grub entry. menuentry "Debian Live" { linux /debian_live/vmlinuz initrd /debian_live/initrd.img boot=live live-config xdebconf debug live-media-path=/debian_live/ live-media=removable-usb } I was unsuccessful trying to boot this way so I ended up making a usb-hdd image that boots without problem. I used, dd if=binary.img of=/dev/sdc I also created an iso-hybrid image, but when I tried to boot it from my usb drive isolinux could not find the configuration file. I used, dd if=binary-hybrid.iso of=/dev/sdc Not sure what the problem is since the image boots fine from a cdrom. <>
Re: Problems booting live system from usb
On 09/16/2010 02:42 PM, Daniel Baumann wrote: this happens not just with your own image, but also with squeeze alpha2? Sorry about the delay. The squeeze alpha2 hybrid iso does not boot with the method I tried first (i.e. copy the contents of live into a directory on usb drive) However, if I write the image to the usb disk using dd, it works fine. I must have screwed something up with the image I made. <>
Can't login to kde squeeze beta2
Hi everyone, Sorry to ask such a dumb question, but I can't login to the pre-made kde squeeze beta2 iso-hybrid. I'm using "debian-squeeze-live-beta2-i386-kde-desktop.iso" downloaded from "cdimage.debian.org/cdimage/squeeze_live_beta2/i386/iso-hybrid/" So far I've used the un/pw combinations: user/live, live/user, live/live, user/user (as well as a bunch of random stuff) at both the kdm login screen and the console login. Not sure if it matters but the prompt displays "localhost.localdomain login" Thanks in advance. <>
Re: Can't login to kde squeeze beta2
Turns out I was using the wrong boot options. I added "live-config" and "quiet" to the kernel entry and auto-login now works. On 01/05/2011 10:56 PM, Frank Zambrini wrote: Hi everyone, Sorry to ask such a dumb question, but I can't login to the pre-made kde squeeze beta2 iso-hybrid. I'm using "debian-squeeze-live-beta2-i386-kde-desktop.iso" downloaded from "cdimage.debian.org/cdimage/squeeze_live_beta2/i386/iso-hybrid/" So far I've used the un/pw combinations: user/live, live/user, live/live, user/user (as well as a bunch of random stuff) at both the kdm login screen and the console login. Not sure if it matters but the prompt displays "localhost.localdomain login" Thanks in advance. <>
Bug#627150: Still live.cfg missing?
I am seeing the same behavior using live-build 3.0~a16-1 to make a sid image with syslinux. I am building on squeeze. Not sure if that matters. -- To UNSUBSCRIBE, email to debian-live-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110524221859.6046e...@frank-laptop.gateway.2wire.net
Bug#619945: (no subject)
I ran into this bug today using live-build 3.0~a17-1 while building a wheezy system. lb config --distribution testing \ --apt-recommends false \ --volatile false \ --memtest none I added the '--volatile false' option as a work around. Unless that is per design. -- To UNSUBSCRIBE, email to debian-live-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110531232743.79eda...@frank-laptop.gateway.2wire.net
Bug#619945: (no subject)
On Fri, 03 Jun 2011 08:31:18 +0200 Daniel Baumann wrote: > wheezy already has volatile default disbaled > > ---snip--- > daniel@debian:~$ rm -rf config > daniel@debian:~$ lb config -d wheezy > P: Considering defaults defined in /etc/live/build.conf > P: Creating config tree > daniel@buildd-i386:~$ grep LB_VOLATILE config/* > config/chroot:# $LB_VOLATILE: enable volatile updates > config/chroot:LB_VOLATILE="false" > daniel@debian:~$ > ---snap--- > > please check your config again. > My config must have been screwed up. I followed your directions and now there is no volatile entry in sources.list Thanks. -- To UNSUBSCRIBE, email to debian-live-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110603234949.7b149...@frank-laptop.gateway.2wire.net