fedoostrap or deboostrap requirement
Hi, While trying to ./configure libguestfs on gentoo fails since it requires feboostrap or deboostrap Can this be made optional and not as necessary requirement, since there are still many useful uses for libguestfs besides bootstrapping, which can be used on distros like gentoo. Thanks Alex
On Wed, Jul 08, 2009 at 11:57:01PM +0300, Piavlo wrote:
Hi,
While trying to ./configure libguestfs on gentoo fails since it requires feboostrap or deboostrap Can this be made optional and not as necessary requirement, since there are still many useful uses for libguestfs besides bootstrapping, which can be used on distros like gentoo.
You probably want to read this: http://www.libguestfs.org/guestfs.3.html#state_machine_and_low_level_event_a... and this: http://www.redhat.com/archives/fedora-virt/2009-May/msg00003.html The choices are: (1) Port febootstrap + yum to Gentoo (not so hard). (2) Change libguestfs to use portage. (This was already done for the Debian/debootstrap combo). (3) Use the binary blobs from another machine, but note that we no longer build full appliances in the Fedora RPMs. http://koji.fedoraproject.org/koji/packageinfo?packageID=8391 Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
Since debootstrap is available on gentoo i've installed it now the build process fails with: Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y Loading profile 'debian'... debirf: creating debirf root... E: No such script: /usr/share/debootstrap/scripts/fedora-11 make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56' make: *** [all] Error 2 why is it still looking for fedora based script and not debian one? Thanks Alex Richard W.M. Jones wrote:
On Wed, Jul 08, 2009 at 11:57:01PM +0300, Piavlo wrote:
Hi,
While trying to ./configure libguestfs on gentoo fails since it requires feboostrap or deboostrap Can this be made optional and not as necessary requirement, since there are still many useful uses for libguestfs besides bootstrapping, which can be used on distros like gentoo.
You probably want to read this:
http://www.libguestfs.org/guestfs.3.html#state_machine_and_low_level_event_a...
and this:
http://www.redhat.com/archives/fedora-virt/2009-May/msg00003.html
The choices are:
(1) Port febootstrap + yum to Gentoo (not so hard).
(2) Change libguestfs to use portage. (This was already done for the Debian/debootstrap combo).
(3) Use the binary blobs from another machine, but note that we no longer build full appliances in the Fedora RPMs. http://koji.fedoraproject.org/koji/packageinfo?packageID=8391
Rich.
Piavlo wrote:
Since debootstrap is available on gentoo i've installed it now the build process fails with:
Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y Loading profile 'debian'... debirf: creating debirf root... E: No such script: /usr/share/debootstrap/scripts/fedora-11 make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56' make: *** [all] Error 2
why is it still looking for fedora based script and not debian one?
my guess is i need to change it with --with-repo, tying...
Thanks Alex
Richard W.M. Jones wrote:
On Wed, Jul 08, 2009 at 11:57:01PM +0300, Piavlo wrote:
Hi,
While trying to ./configure libguestfs on gentoo fails since it requires feboostrap or deboostrap Can this be made optional and not as necessary requirement, since there are still many useful uses for libguestfs besides bootstrapping, which can be used on distros like gentoo.
You probably want to read this:
http://www.libguestfs.org/guestfs.3.html#state_machine_and_low_level_event_a...
and this:
http://www.redhat.com/archives/fedora-virt/2009-May/msg00003.html
The choices are:
(1) Port febootstrap + yum to Gentoo (not so hard).
(2) Change libguestfs to use portage. (This was already done for the Debian/debootstrap combo).
(3) Use the binary blobs from another machine, but note that we no longer build full appliances in the Fedora RPMs. http://koji.fedoraproject.org/koji/packageinfo?packageID=8391
Rich.
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
Piavlo wrote:
Piavlo wrote:
Since debootstrap is available on gentoo i've installed it now the build process fails with:
Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y Loading profile 'debian'... debirf: creating debirf root... E: No such script: /usr/share/debootstrap/scripts/fedora-11 make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56' make: *** [all] Error 2
why is it still looking for fedora based script and not debian one? my guess is i need to change it with --with-repo, tying...
tried with --with-repo=lenny Now i get: Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y Loading profile 'debian'... debirf: creating debirf root... I: Retrieving Release E: unknown location /dists/lenny/Release make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56' make: *** [all] Error 2 Any ideas what is wrong and how to fix it. Alex
On Thu, Jul 09, 2009 at 07:16:58PM +0300, Piavlo wrote: [..snip..]
Now i get:
Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y Loading profile 'debian'... debirf: creating debirf root... I: Retrieving Release E: unknown location /dists/lenny/Release Did you modify debirf.conf.in? This should be sid not lenny.
make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56' make: *** [all] Error 2
Any ideas what is wrong and how to fix it. Looks like debootstrap failing. Try by hand:
mkdir /tmp/test ; cd /tmp/test ; debootstrap --verbose lenny . http://ftp.debian.org/debian and see if you get the same error. If so, debootstrap is a shell script so running it as "sh -x debootstrap ..." might give some more information what's going wrong. Looks as if there's missing some prefix before $(TARGET)/dists/lenny/Release. Cheers, -- Guido
On Thu, Jul 09, 2009 at 07:16:58PM +0300, Piavlo wrote:
Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y
Is it a good idea to run debirf as root? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 75 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
On Thu, Jul 09, 2009 at 06:33:36PM +0100, Richard W.M. Jones wrote:
On Thu, Jul 09, 2009 at 07:16:58PM +0300, Piavlo wrote:
Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y
Is it a good idea to run debirf as root? I assume Piavlo is doing this since he lacks fakechroot. Cheers, -- Guido
Guido Günther wrote:
On Thu, Jul 09, 2009 at 06:33:36PM +0100, Richard W.M. Jones wrote:
On Thu, Jul 09, 2009 at 07:16:58PM +0300, Piavlo wrote:
Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y
Is it a good idea to run debirf as root?
I assume Piavlo is doing this since he lacks fakechroot.
No actually fakechroot is installed , this is what the libguestfs installation process does. I not familiar with deboostrap/debirf internals - any idea why the installed fakechroot is not being used automatically by debirf? This is list of files belonging to debirf package on my gentoo system - i just installed it and did not make any manual configurations. /usr /usr/bin /usr/bin/debirf /usr/share /usr/share/debirf /usr/share/debirf/common /usr/share/debirf/devices.tar.gz /usr/share/debirf/modules /usr/share/debirf/modules/a0_motd /usr/share/debirf/modules/a0_prep-root /usr/share/debirf/modules/bootlog /usr/share/debirf/modules/install-kernel /usr/share/debirf/modules/install-manpages /usr/share/debirf/modules/install-runit /usr/share/debirf/modules/install-udev /usr/share/debirf/modules/network /usr/share/debirf/modules/network-dhcp /usr/share/debirf/modules/rescue /usr/share/debirf/modules/root-bashrc /usr/share/debirf/modules/root-passwd /usr/share/debirf/modules/serial-terminal /usr/share/debirf/modules/xkiosk /usr/share/debirf/modules/z0_remove-aptitude /usr/share/debirf/modules/z0_remove-locales /usr/share/debirf/modules/z1_clean-root /usr/share/doc /usr/share/doc/debirf /usr/share/doc/debirf/README /usr/share/doc/debirf/default-package-list /usr/share/doc/debirf/example-profiles /usr/share/doc/debirf/example-profiles/minimal /usr/share/doc/debirf/example-profiles/minimal/debirf.conf /usr/share/doc/debirf/example-profiles/minimal/modules /usr/share/doc/debirf/example-profiles/minimal/modules/a0_motd -> /usr/share/debirf/modules/a0_motd /usr/share/doc/debirf/example-profiles/minimal/modules/a0_prep-root -> /usr/share/debirf/modules/a0_prep-root /usr/share/doc/debirf/example-profiles/minimal/modules/install-kernel -> /usr/share/debirf/modules/install-kernel /usr/share/doc/debirf/example-profiles/minimal/modules/network -> /usr/share/debirf/modules/network /usr/share/doc/debirf/example-profiles/minimal/modules/root-bashrc -> /usr/share/debirf/modules/root-bashrc /usr/share/doc/debirf/example-profiles/minimal/modules/serial-terminal -> /usr/share/debirf/modules/serial-terminal /usr/share/doc/debirf/example-profiles/minimal/modules/z0_remove-aptitude -> /usr/share/debirf/modules/z0_remove-aptitude /usr/share/doc/debirf/example-profiles/minimal/modules/z0_remove-locales -> /usr/share/debirf/modules/z0_remove-locales /usr/share/doc/debirf/example-profiles/minimal/modules/z1_clean-root -> /usr/share/debirf/modules/z1_clean-root /usr/share/doc/debirf/example-profiles/rescue /usr/share/doc/debirf/example-profiles/rescue/debirf.conf /usr/share/doc/debirf/example-profiles/rescue/modules /usr/share/doc/debirf/example-profiles/rescue/modules/a0_motd -> /usr/share/debirf/modules/a0_motd /usr/share/doc/debirf/example-profiles/rescue/modules/a0_prep-root -> /usr/share/debirf/modules/a0_prep-root /usr/share/doc/debirf/example-profiles/rescue/modules/bootlog -> /usr/share/debirf/modules/bootlog /usr/share/doc/debirf/example-profiles/rescue/modules/install-kernel -> /usr/share/debirf/modules/install-kernel /usr/share/doc/debirf/example-profiles/rescue/modules/install-manpages -> /usr/share/debirf/modules/install-manpages /usr/share/doc/debirf/example-profiles/rescue/modules/install-udev -> /usr/share/debirf/modules/install-udev /usr/share/doc/debirf/example-profiles/rescue/modules/network -> /usr/share/debirf/modules/network /usr/share/doc/debirf/example-profiles/rescue/modules/rescue -> /usr/share/debirf/modules/rescue /usr/share/doc/debirf/example-profiles/rescue/modules/root-bashrc -> /usr/share/debirf/modules/root-bashrc /usr/share/doc/debirf/example-profiles/rescue/modules/serial-terminal -> /usr/share/debirf/modules/serial-terminal /usr/share/doc/debirf/example-profiles/rescue/modules/z0_remove-locales -> /usr/share/debirf/modules/z0_remove-locales /usr/share/doc/debirf/example-profiles/rescue/modules/z1_clean-root -> /usr/share/debirf/modules/z1_clean-root /usr/share/doc/debirf/example-profiles/xkiosk /usr/share/doc/debirf/example-profiles/xkiosk/debirf.conf /usr/share/doc/debirf/example-profiles/xkiosk/modules /usr/share/doc/debirf/example-profiles/xkiosk/modules/a0_motd -> /usr/share/debirf/modules/a0_motd /usr/share/doc/debirf/example-profiles/xkiosk/modules/a0_prep-root -> /usr/share/debirf/modules/a0_prep-root /usr/share/doc/debirf/example-profiles/xkiosk/modules/install-kernel -> /usr/share/debirf/modules/install-kernel /usr/share/doc/debirf/example-profiles/xkiosk/modules/install-runit -> /usr/share/debirf/modules/install-runit /usr/share/doc/debirf/example-profiles/xkiosk/modules/install-udev -> /usr/share/debirf/modules/install-udev /usr/share/doc/debirf/example-profiles/xkiosk/modules/network-dhcp -> /usr/share/debirf/modules/network-dhcp /usr/share/doc/debirf/example-profiles/xkiosk/modules/root-bashrc -> /usr/share/debirf/modules/root-bashrc /usr/share/doc/debirf/example-profiles/xkiosk/modules/root-passwd -> /usr/share/debirf/modules/root-passwd /usr/share/doc/debirf/example-profiles/xkiosk/modules/serial-terminal -> /usr/share/debirf/modules/serial-terminal /usr/share/doc/debirf/example-profiles/xkiosk/modules/xkiosk -> /usr/share/debirf/modules/xkiosk /usr/share/doc/debirf/example-profiles/xkiosk/modules/z0_remove-aptitude -> /usr/share/debirf/modules/z0_remove-aptitude /usr/share/doc/debirf/example-profiles/xkiosk/modules/z0_remove-locales -> /usr/share/debirf/modules/z0_remove-locales /usr/share/doc/debirf/example-profiles/xkiosk/modules/z1_clean-root -> /usr/share/debirf/modules/z1_clean-root /usr/share/man /usr/share/man/man1 /usr/share/man/man1/debirf.1.bz2 Thanks Alex
Cheers, -- Guido
On Sat, Jul 11, 2009 at 02:09:24PM +0300, Piavlo wrote:
Guido Günther wrote:
On Thu, Jul 09, 2009 at 06:33:36PM +0100, Richard W.M. Jones wrote:
On Thu, Jul 09, 2009 at 07:16:58PM +0300, Piavlo wrote:
Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y
Is it a good idea to run debirf as root?
I assume Piavlo is doing this since he lacks fakechroot.
No actually fakechroot is installed , this is what the libguestfs installation process does. I not familiar with deboostrap/debirf internals - any idea why the installed fakechroot is not being used automatically by debirf? You need to figure out why debirf thinks you're running as uid 0. Either you're really doing so or you're running with fakeroot already. You should do neither of those and it will work:
if [ $(id -u) = '0' ] ; then cat <<EOF Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. EOF if [ "$ROOT_WARNING" = 'true' ] ; then read -p "Are you sure you wish to continue? [y|N]: " OK; OK=${OK:=N} if [ "${OK/y/Y}" != 'Y' ] ; then failure "aborting." fi fi fi Cheers, -- Guido
Guido Günther wrote:
You need to figure out why debirf thinks you're running as uid 0. Either you're really doing so or you're running with fakeroot already. Actually I'm running as root , but to be more precise I'm running this from gentoo emerge/ebuild process which setups proper sandbox to avoid system damage.
I've had several additional problem i managed to solve, the last one might need proper solution in deootstrap code - details below: # fakeroot -i debian/.fakeroot-state.debirf-libguestfs -s debian/.fakeroot-state.debirf-libguestfs fakechroot /usr/sbin/debootstrap --variant=fakechroot --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature I: Valid Release signature (key id 7F5A44454C724A65CBCD4FB14D270D06F42584E6) I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on http://ftp.debian.org/debian... I: Validating adduser I: Validating apt I: Validating aptitude ... I: Extracting util-linux... I: Extracting zlib1g... I: Installing core packages... W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb I managed to solve it by patching debootstrap - more details below: # chroot /var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance/debian/root (chroot):/# dpkg -l Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii base-files 5lenny3 Debian base system miscellaneous files ii base-passwd 3.5.20 Debian base system master password and group ii dpkg 1.14.25 (chroot):/# exit # # chroot /var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb Selecting previously deselected package base-files. dpkg: regarding .../base-files_5lenny3_amd64.deb containing base-files, pre-dependency problem: base-files pre-depends on awk awk is not installed. dpkg: warning - ignoring pre-dependency problem ! (Reading database ... 0 files and directories currently installed.) Unpacking base-files (from .../base-files_5lenny3_amd64.deb) ... Selecting previously deselected package base-passwd. Unpacking base-passwd (from .../base-passwd_3.5.20_amd64.deb) ... dpkg: base-passwd: dependency problems, but configuring anyway as you request: base-passwd depends on libc6 (>= 2.7-1); however: Package libc6 is not installed. Setting up base-passwd (3.5.20) ... dpkg: base-files: dependency problems, but configuring anyway as you request: base-files depends on awk; however: Package awk is not installed. Setting up base-files (5lenny3) ... # echo $? 0 # So something must be wrong in the debootstrap code, and the following patch fixes it # diff -Nru /usr/share/debootstrap/scripts/lenny.orig /usr/share/debootstrap/scripts/lenny --- /usr/share/debootstrap/scripts/lenny.orig 2009-07-13 00:15:25.000000000 +0300 +++ /usr/share/debootstrap/scripts/lenny 2009-07-13 00:15:16.000000000 +0300 @@ -80,7 +80,7 @@ second_stage_install () { x_core_install () { - smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + chroot $TARGET dpkg --force-depends --install $(debfor "$@") } p () { # Meaning in_target function defined in /usr/share/debootstrap/functions does not work correctly. Alex
And now the make process fails with the following error: libguestfs-1.0.57 # make make all-recursive make[1]: Entering directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57' Making all in src make[2]: Entering directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/src' make all-am make[3]: Entering directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/src' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/src' make[2]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/src' Making all in daemon make[2]: Entering directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/daemon' make all-am make[3]: Entering directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/daemon' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/daemon' make[2]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/daemon' Making all in appliance make[2]: Entering directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance' mv initramfs.lenny.x86_64.img initramfs.lenny.x86_64.img.bak mv vmlinuz.lenny.x86_64 vmlinuz.lenny.x86_64.bak if ! bash make.sh; then rm -f ../initramfs/fakeroot.log; exit 1; fi + '[' DEBIAN = REDHAT ']' + '[' DEBIAN = DEBIAN ']' + cd ../appliance + debirf make -n debian Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Loading profile 'debian'... debirf: clearing old debirf root... debirf: creating debirf root... dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead. I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature I: Valid Release signature (key id 7F5A44454C724A65CBCD4FB14D270D06F42584E6) I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on http://ftp.debian.org/debian... I: Retrieving adduser I: Validating adduser I: Retrieving apt I: Validating apt I: Retrieving aptitude I: Validating aptitude I: Retrieving base-files I: Validating base-files I: Retrieving base-passwd I: Validating base-passwd I: Retrieving bash I: Validating bash I: Retrieving binutils I: Validating binutils I: Retrieving bsdutils I: Validating bsdutils I: Retrieving coreutils I: Validating coreutils I: Retrieving cpio I: Validating cpio I: Retrieving debconf I: Validating debconf I: Retrieving debconf-i18n I: Validating debconf-i18n I: Retrieving debian-archive-keyring I: Validating debian-archive-keyring I: Retrieving debianutils I: Validating debianutils I: Retrieving dhcp3-client I: Validating dhcp3-client I: Retrieving dhcp3-common I: Validating dhcp3-common I: Retrieving diff I: Validating diff I: Retrieving dmidecode I: Validating dmidecode I: Retrieving dpkg I: Validating dpkg I: Retrieving e2fslibs I: Validating e2fslibs I: Retrieving e2fsprogs I: Validating e2fsprogs I: Retrieving findutils I: Validating findutils I: Retrieving gawk I: Validating gawk I: Retrieving gcc-4.2-base I: Validating gcc-4.2-base I: Retrieving gcc-4.3-base I: Validating gcc-4.3-base I: Retrieving gnupg I: Validating gnupg I: Retrieving gpgv I: Validating gpgv I: Retrieving grep I: Validating grep I: Retrieving groff-base I: Validating groff-base I: Retrieving gzip I: Validating gzip I: Retrieving hostname I: Validating hostname I: Retrieving ifupdown I: Validating ifupdown I: Retrieving initscripts I: Validating initscripts I: Retrieving iproute I: Validating iproute I: Retrieving iptables I: Validating iptables I: Retrieving iputils-ping I: Validating iputils-ping I: Retrieving less I: Validating less I: Retrieving libacl1 I: Validating libacl1 I: Retrieving libattr1 I: Validating libattr1 I: Retrieving libblkid1 I: Validating libblkid1 I: Retrieving libbz2-1.0 I: Validating libbz2-1.0 I: Retrieving libc6 I: Validating libc6 I: Retrieving libcomerr2 I: Validating libcomerr2 I: Retrieving libconsole I: Validating libconsole I: Retrieving libcwidget3 I: Validating libcwidget3 I: Retrieving libdb4.6 I: Validating libdb4.6 I: Retrieving libdevmapper1.02.1 I: Validating libdevmapper1.02.1 I: Retrieving libept0 I: Validating libept0 I: Retrieving libgcc1 I: Validating libgcc1 I: Retrieving libgcrypt11 I: Validating libgcrypt11 I: Retrieving libgdbm3 I: Validating libgdbm3 I: Retrieving libgnutls26 I: Validating libgnutls26 I: Retrieving libgpg-error0 I: Validating libgpg-error0 I: Retrieving liblocale-gettext-perl I: Validating liblocale-gettext-perl I: Retrieving libncurses5 I: Validating libncurses5 I: Retrieving libncursesw5 I: Validating libncursesw5 I: Retrieving libnewt0.52 I: Validating libnewt0.52 I: Retrieving libpam-modules I: Validating libpam-modules I: Retrieving libpam-runtime I: Validating libpam-runtime I: Retrieving libpam0g I: Validating libpam0g I: Retrieving libpopt0 I: Validating libpopt0 I: Retrieving libreadline5 I: Validating libreadline5 I: Retrieving libsasl2-2 I: Validating libsasl2-2 I: Retrieving libselinux1 I: Validating libselinux1 I: Retrieving libsepol1 I: Validating libsepol1 I: Retrieving libsigc++-2.0-0c2a I: Validating libsigc++-2.0-0c2a I: Retrieving libslang2 I: Validating libslang2 I: Retrieving libss2 I: Validating libss2 I: Retrieving libssl0.9.8 I: Validating libssl0.9.8 I: Retrieving libstdc++6 I: Validating libstdc++6 I: Retrieving libtasn1-3 I: Validating libtasn1-3 I: Retrieving libtext-charwidth-perl I: Validating libtext-charwidth-perl I: Retrieving libtext-iconv-perl I: Validating libtext-iconv-perl I: Retrieving libtext-wrapi18n-perl I: Validating libtext-wrapi18n-perl I: Retrieving libusb-0.1-4 I: Validating libusb-0.1-4 I: Retrieving libuuid1 I: Validating libuuid1 I: Retrieving libwrap0 I: Validating libwrap0 I: Retrieving libxapian15 I: Validating libxapian15 I: Retrieving login I: Validating login I: Retrieving lsb-base I: Validating lsb-base I: Retrieving lzma I: Validating lzma I: Retrieving makedev I: Validating makedev I: Retrieving mawk I: Validating mawk I: Retrieving mktemp I: Validating mktemp I: Retrieving module-init-tools I: Validating module-init-tools I: Retrieving mount I: Validating mount I: Retrieving nano I: Validating nano I: Retrieving ncurses-base I: Validating ncurses-base I: Retrieving ncurses-bin I: Validating ncurses-bin I: Retrieving net-tools I: Validating net-tools I: Retrieving netbase I: Validating netbase I: Retrieving netcat-traditional I: Validating netcat-traditional I: Retrieving passwd I: Validating passwd I: Retrieving perl-base I: Validating perl-base I: Retrieving procps I: Validating procps I: Retrieving readline-common I: Validating readline-common I: Retrieving rsyslog I: Validating rsyslog I: Retrieving sed I: Validating sed I: Retrieving sysv-rc I: Validating sysv-rc I: Retrieving sysvinit I: Validating sysvinit I: Retrieving sysvinit-utils I: Validating sysvinit-utils I: Retrieving tar I: Validating tar I: Retrieving tzdata I: Validating tzdata I: Retrieving update-inetd I: Validating update-inetd I: Retrieving util-linux I: Validating util-linux I: Retrieving vim-common I: Validating vim-common I: Retrieving vim-tiny I: Validating vim-tiny I: Retrieving wget I: Validating wget I: Retrieving whiptail I: Validating whiptail I: Retrieving zlib1g I: Validating zlib1g I: Extracting base-files... I: Extracting base-passwd... I: Extracting bash... I: Extracting binutils... I: Extracting bsdutils... I: Extracting coreutils... I: Extracting debconf... I: Extracting debconf-i18n... I: Extracting debianutils... I: Extracting diff... I: Extracting dpkg... I: Extracting e2fslibs... I: Extracting e2fsprogs... I: Extracting findutils... I: Extracting gcc-4.2-base... I: Extracting gcc-4.3-base... I: Extracting grep... I: Extracting gzip... I: Extracting hostname... I: Extracting initscripts... I: Extracting libacl1... I: Extracting libattr1... I: Extracting libblkid1... I: Extracting libc6... I: Extracting libcomerr2... I: Extracting libdb4.6... I: Extracting libdevmapper1.02.1... I: Extracting libgcc1... I: Extracting liblocale-gettext-perl... I: Extracting libncurses5... I: Extracting libpam-modules... I: Extracting libpam-runtime... I: Extracting libpam0g... I: Extracting libselinux1... I: Extracting libsepol1... I: Extracting libslang2... I: Extracting libss2... I: Extracting libstdc++6... I: Extracting libtext-charwidth-perl... I: Extracting libtext-iconv-perl... I: Extracting libtext-wrapi18n-perl... I: Extracting libuuid1... I: Extracting login... I: Extracting lsb-base... I: Extracting lzma... I: Extracting makedev... I: Extracting mawk... I: Extracting mktemp... I: Extracting mount... I: Extracting ncurses-base... I: Extracting ncurses-bin... I: Extracting passwd... I: Extracting perl-base... I: Extracting procps... I: Extracting sed... I: Extracting sysv-rc... I: Extracting sysvinit... I: Extracting sysvinit-utils... I: Extracting tar... I: Extracting tzdata... I: Extracting util-linux... I: Extracting zlib1g... I: Installing core packages... make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57' make: *** [all] Error 2 Hope you can help me with this one. Alex Piavlo wrote:
Guido Günther wrote:
You need to figure out why debirf thinks you're running as uid 0. Either you're really doing so or you're running with fakeroot already.
Actually I'm running as root , but to be more precise I'm running this from gentoo emerge/ebuild process which setups proper sandbox to avoid system damage.
I've had several additional problem i managed to solve, the last one might need proper solution in deootstrap code - details below:
# fakeroot -i debian/.fakeroot-state.debirf-libguestfs -s debian/.fakeroot-state.debirf-libguestfs fakechroot /usr/sbin/debootstrap --variant=fakechroot --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature I: Valid Release signature (key id 7F5A44454C724A65CBCD4FB14D270D06F42584E6) I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on http://ftp.debian.org/debian... I: Validating adduser I: Validating apt I: Validating aptitude ... I: Extracting util-linux... I: Extracting zlib1g... I: Installing core packages... W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb
I managed to solve it by patching debootstrap - more details below:
# chroot /var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance/debian/root (chroot):/# dpkg -l Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii base-files 5lenny3 Debian base system miscellaneous files ii base-passwd 3.5.20 Debian base system master password and group ii dpkg 1.14.25 (chroot):/# exit # # chroot /var/tmp/portage/app-emulation/libguestfs-1.0.57/work/libguestfs-1.0.57/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb Selecting previously deselected package base-files. dpkg: regarding .../base-files_5lenny3_amd64.deb containing base-files, pre-dependency problem: base-files pre-depends on awk awk is not installed. dpkg: warning - ignoring pre-dependency problem ! (Reading database ... 0 files and directories currently installed.) Unpacking base-files (from .../base-files_5lenny3_amd64.deb) ... Selecting previously deselected package base-passwd. Unpacking base-passwd (from .../base-passwd_3.5.20_amd64.deb) ... dpkg: base-passwd: dependency problems, but configuring anyway as you request: base-passwd depends on libc6 (>= 2.7-1); however: Package libc6 is not installed. Setting up base-passwd (3.5.20) ... dpkg: base-files: dependency problems, but configuring anyway as you request: base-files depends on awk; however: Package awk is not installed. Setting up base-files (5lenny3) ... # echo $? 0 #
So something must be wrong in the debootstrap code, and the following patch fixes it
# diff -Nru /usr/share/debootstrap/scripts/lenny.orig /usr/share/debootstrap/scripts/lenny --- /usr/share/debootstrap/scripts/lenny.orig 2009-07-13 00:15:25.000000000 +0300 +++ /usr/share/debootstrap/scripts/lenny 2009-07-13 00:15:16.000000000 +0300 @@ -80,7 +80,7 @@
second_stage_install () { x_core_install () { - smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + chroot $TARGET dpkg --force-depends --install $(debfor "$@") }
p () { #
Meaning in_target function defined in /usr/share/debootstrap/functions does not work correctly.
Alex
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
So something must be wrong in the debootstrap code, and the following patch fixes it
# diff -Nru /usr/share/debootstrap/scripts/lenny.orig /usr/share/debootstrap/scripts/lenny --- /usr/share/debootstrap/scripts/lenny.orig 2009-07-13 00:15:25.000000000 +0300 +++ /usr/share/debootstrap/scripts/lenny 2009-07-13 00:15:16.000000000 +0300 @@ -80,7 +80,7 @@
second_stage_install () { x_core_install () { - smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + chroot $TARGET dpkg --force-depends --install $(debfor "$@") }
p () { # could you check what the issue is here? Is it the smallyes pipe part or
Hi Piavlo, On Mon, Jul 13, 2009 at 12:43:14AM +0300, Piavlo wrote: [..snip..] the in_target call? Both look harmless and I can't seem to reproduce this here. -- Guido
Guido Günther wrote:
Hi Piavlo, On Mon, Jul 13, 2009 at 12:43:14AM +0300, Piavlo wrote: [..snip..]
So something must be wrong in the debootstrap code, and the following patch fixes it
# diff -Nru /usr/share/debootstrap/scripts/lenny.orig /usr/share/debootstrap/scripts/lenny --- /usr/share/debootstrap/scripts/lenny.orig 2009-07-13 00:15:25.000000000 +0300 +++ /usr/share/debootstrap/scripts/lenny 2009-07-13 00:15:16.000000000 +0300 @@ -80,7 +80,7 @@
second_stage_install () { x_core_install () { - smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + chroot $TARGET dpkg --force-depends --install $(debfor "$@") }
p () { #
could you check what the issue is here? Is it the smallyes pipe part or the in_target call? Both look harmless and I can't seem to reproduce this here. -- Guido
Hi Guido, I fail to understand what's wrong in in_target_failmsg defined in /usr/share/debootstrap/functions which is called from in_target function: in_target_failmsg () { local code="$1" local msg="$2" local arg="$3" shift; shift; shift if ! chroot "$TARGET" "$@"; then warning "$code" "$msg" "$arg" return 1 fi return 0 } I don't understand why the if is entered while: chroot "$TARGET" "$@" finishes with 0 exit code? Alex
On Mon, Jul 27, 2009 at 12:06:29AM +0300, Piavlo wrote:
I fail to understand what's wrong in in_target_failmsg defined in /usr/share/debootstrap/functions which is called from in_target function:
in_target_failmsg () { local code="$1" local msg="$2" local arg="$3" shift; shift; shift if ! chroot "$TARGET" "$@"; then warning "$code" "$msg" "$arg" return 1 fi return 0 }
I don't understand why the if is entered while: chroot "$TARGET" "$@" finishes with 0 exit code? Me neither. The only thing that could help is to add some debugging output to in_target_failsmsg to get the return code, command, etc. Just to make sure we're not beating a dead horse: this is debootstrap 1.0.15? /bin/sh is bash? Cheers, -- Guido
Guido Günther wrote:
On Mon, Jul 27, 2009 at 12:06:29AM +0300, Piavlo wrote:
I fail to understand what's wrong in in_target_failmsg defined in /usr/share/debootstrap/functions which is called from in_target function:
in_target_failmsg () { local code="$1" local msg="$2" local arg="$3" shift; shift; shift if ! chroot "$TARGET" "$@"; then warning "$code" "$msg" "$arg" return 1 fi return 0 }
I don't understand why the if is entered while: chroot "$TARGET" "$@" finishes with 0 exit code?
Me neither. The only thing that could help is to add some debugging output to in_target_failsmsg to get the return code, command, etc. Just to make sure we're not beating a dead horse: this is debootstrap 1.0.15?
no i'm at 1.0.13 - is this critical? should i really upgrade to 1.0.15?
/bin/sh is bash?
yes
Cheers, -- Guido
On Wed, Jul 29, 2009 at 07:21:21PM +0300, Piavlo wrote:
Guido Günther wrote:
On Mon, Jul 27, 2009 at 12:06:29AM +0300, Piavlo wrote:
I fail to understand what's wrong in in_target_failmsg defined in /usr/share/debootstrap/functions which is called from in_target function:
in_target_failmsg () { local code="$1" local msg="$2" local arg="$3" shift; shift; shift if ! chroot "$TARGET" "$@"; then warning "$code" "$msg" "$arg" return 1 fi return 0 }
I don't understand why the if is entered while: chroot "$TARGET" "$@" finishes with 0 exit code?
Me neither. The only thing that could help is to add some debugging output to in_target_failsmsg to get the return code, command, etc. Just to make sure we're not beating a dead horse: this is debootstrap 1.0.15?
no i'm at 1.0.13 - is this critical? should i really upgrade to 1.0.15? No. 1.0.13 should be fine. -- Guido
Piavlo wrote: [Sun Jul 26 2009, 05:06:29PM EDT]
Guido Günther wrote:
Hi Piavlo, On Mon, Jul 13, 2009 at 12:43:14AM +0300, Piavlo wrote: [..snip..]
So something must be wrong in the debootstrap code, and the following patch fixes it
# diff -Nru /usr/share/debootstrap/scripts/lenny.orig /usr/share/debootstrap/scripts/lenny --- /usr/share/debootstrap/scripts/lenny.orig 2009-07-13 00:15:25.000000000 +0300 +++ /usr/share/debootstrap/scripts/lenny 2009-07-13 00:15:16.000000000 +0300 @@ -80,7 +80,7 @@
second_stage_install () { x_core_install () { - smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + chroot $TARGET dpkg --force-depends --install $(debfor "$@") }
p () { #
could you check what the issue is here? Is it the smallyes pipe part or the in_target call? Both look harmless and I can't seem to reproduce this here. -- Guido
Hi Guido,
I fail to understand what's wrong in in_target_failmsg defined in /usr/share/debootstrap/functions which is called from in_target function:
in_target_failmsg () { local code="$1" local msg="$2" local arg="$3" shift; shift; shift if ! chroot "$TARGET" "$@"; then warning "$code" "$msg" "$arg" return 1 fi return 0 }
I don't understand why the if is entered while: chroot "$TARGET" "$@" finishes with 0 exit code?
I have not been following this conversation previously, so I apologize if this has already been mentioned. Guido's patch also removes the smallyes pipe, which could be the culprit if dpkg (or a subprocess called by dpkg) wants a tty on stdin. Does Guido's patch still "solve" the problem if it's written: - smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + smallyes '' | chroot $TARGET dpkg --force-depends --install $(debfor "$@") or alternatively, does this work as well as Guido's patch: - smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + in_target dpkg --force-depends --install $(debfor "$@") Aron
Hi Aron, On Wed, Jul 29, 2009 at 09:39:50AM -0400, Aron Griffis wrote: [..snip..]
Does Guido's patch still "solve" the problem if it's written:
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + smallyes '' | chroot $TARGET dpkg --force-depends --install $(debfor "$@")
or alternatively, does this work as well as Guido's patch:
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + in_target dpkg --force-depends --install $(debfor "$@")
These are good things to track down the problem, thanks! (I still wonder why it works on Debian though). Just for completeness: the patch was done by Piavlo. He's seeing the problem and (AFAIK) is the only one that can reproduct it. -- Guido
Guido Günther wrote:
Hi Aron, On Wed, Jul 29, 2009 at 09:39:50AM -0400, Aron Griffis wrote: [..snip..]
Does Guido's patch still "solve" the problem if it's written:
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + smallyes '' | chroot $TARGET dpkg --force-depends --install $(debfor "$@")
or alternatively, does this work as well as Guido's patch:
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + in_target dpkg --force-depends --install $(debfor "$@")
These are good things to track down the problem, thanks! (I still wonder why it works on Debian though). Just for completeness: the patch was done by Piavlo. He's seeing the problem and (AFAIK) is the only one that can reproduct it.
AFAICT i'm the only one who's trying to install libguestfs on gentoo :) And not all debian related software is well tested and does not work out of the box like on native debian system - also I had to create and install several missing ebuild packages in gentoo.
-- Guido
On Wed, Jul 29, 2009 at 07:29:16PM +0300, Piavlo wrote:
AFAICT i'm the only one who's trying to install libguestfs on gentoo :) And not all debian related software is well tested and does not work out of the box like on native debian system - also I had to create and install several missing ebuild packages in gentoo.
So how did it go in the end? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
Hi Aron, On Wed, Jul 29, 2009 at 09:39:50AM -0400, Aron Griffis wrote: [..snip..]
Does Guido's patch still "solve" the problem if it's written:
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + smallyes '' | chroot $TARGET dpkg --force-depends --install $(debfor "$@")
or alternatively, does this work as well as Guido's patch:
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + in_target dpkg --force-depends --install $(debfor "$@")
Guido Günther wrote: Looks like the real problem is due to debootstrap's --variant=fakechroot not detecting any base dependencies - Full details below. this one works this one not BUT !!!! even with : smallyes '' | chroot $TARGET dpkg --force-depends --install $(debfor "$@") and: chroot $TARGET dpkg --force-depends --install $(debfor "$@") the problem is not really solved (it just omits the warning message before aborting installation)!!! the "debirf make -n debian" command just ends with: ... I: Installing core packages... # while with original : smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") it ends with: I: Installing core packages... W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb # but AFAICT sucessfull debirf command should end with: ... I: Installing core packages... I: Unpacking required packages... ... I: Configuring required packages... ... I: Unpacking the base system... ... I: Configuring the base system... .... I: Base system installed successfully. # the command internal debirf command ends with same: fakechroot sh -x /usr/sbin/debootstrap --variant=fakechroot --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ I: Installing core packages... W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb # while with sh -x before debootstrap: fakechroot sh -x /usr/sbin/debootstrap --variant=fakechroot --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ ... I: Installing core packages... W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/dpkg_1.14.25_amd64.deb W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/libc6_2.7-18_amd64.deb W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/perl-base_5.10.0-19_amd64.deb W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/mawk_1.3.3-11.1_amd64.deb I: Unpacking required packages... W: Failure while unpacking required packages. This will be attempted up to five times. W: Failure while unpacking required packages. This will be attempted up to five times. W: Failure while unpacking required packages. This will be attempted up to five times. W: Failure while unpacking required packages. This will be attempted up to five times. W: Failure while unpacking required packages. This will be attempted up to five times. I: Configuring required packages... W: Failure while configuring required packages. I: Unpacking the base system... W: Failure while installing base packages. This will be re-attempted up to five times. W: Failure while installing base packages. This will be re-attempted up to five times. W: Failure while installing base packages. This will be re-attempted up to five times. W: Failure while installing base packages. This will be re-attempted up to five times. W: Failure while installing base packages. This will be re-attempted up to five times. I: Configuring the base system... W: Failure while configuring base packages. W: Failure while configuring base packages. W: Failure while configuring base packages. W: Failure while configuring base packages. W: Failure while configuring base packages. I: Base system installed successfully. # Looks like bash glitches... Another thing to note (and which seems to be source of the problem) is that debootstrap with --variant=fakechroot does not find any additional base dependencies, while with --variant=minbase|buildd it does and works correctly!!! for example with -variant=minbase it finds: ... I: Found additional base dependencies: debian-archive-keyring gnupg gpgv libbz2-1.0 libreadline5 libusb-0.1-4 readline-common ... # And the following command installs the base system OK: /usr/sbin/debootstrap --variant=minbase --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ Here is the output with --variant=fakechroot & --print-debs: # fakechroot /usr/sbin/debootstrap --variant=fakechroot --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature gpgv: Signature made Sat 27 Jun 2009 09:18:39 PM IDT using RSA key ID 55BE302B gpgv: Good signature from "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" gpgv: Signature made Sat 27 Jun 2009 09:31:45 PM IDT using DSA key ID F42584E6 gpgv: Good signature from "Lenny Stable Release Key <debian-release@lists.debian.org>" I: Valid Release signature (key id 7F5A44454C724A65CBCD4FB14D270D06F42584E6) I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... base-files base-passwd bash binutils bsdutils coreutils debconf debconf-i18n debianutils diff dpkg e2fslibs e2fsprogs findutils gcc-4.2-base gcc-4.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcomerr2 libdb4.6 libdevmapper1.02.1 libgcc1 liblocale-gettext-perl libncurses5 libpam0g libpam-modules libpam-runtime libselinux1 libsepol1 libslang2 libss2 libstdc++6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libuuid1 login lsb-base lzma makedev mawk mktemp mount ncurses-base ncurses-bin passwd perl-base procps sed sysvinit sysvinit-utils sysv-rc tar tzdata util-linux zlib1g adduser apt aptitude cpio debian-archive-keyring dhcp3-client dhcp3-common dmidecode gnupg gpgv groff-base ifupdown iproute iptables iputils-ping less libbz2-1.0 libconsole libcwidget3 libept0 libgcrypt11 libgdbm3 libgnutls26 libgpg-error0 libncursesw5 libnewt0.52 libpopt0 libreadline5 libsasl2-2 libsigc++-2.0-0c2a libssl0.9.8 libtasn1-3 libusb-0.1-4 libwrap0 libxapian15 module-init-tools nano netbase netcat-traditional net-tools readline-common rsyslog update-inetd vim-common vim-tiny wget whiptail I: Deleting target directory # And the output with --variant=minbase & --print-debs (notice the additional - I: Found additional base dependencies: .. - line) # /usr/sbin/debootstrap --variant=minbase --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature gpgv: Signature made Sat 27 Jun 2009 09:18:39 PM IDT using RSA key ID 55BE302B gpgv: Good signature from "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" gpgv: Signature made Sat 27 Jun 2009 09:31:45 PM IDT using DSA key ID F42584E6 gpgv: Good signature from "Lenny Stable Release Key <debian-release@lists.debian.org>" I: Valid Release signature (key id 7F5A44454C724A65CBCD4FB14D270D06F42584E6) I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Found additional base dependencies: debian-archive-keyring gnupg gpgv libbz2-1.0 libreadline5 libusb-0.1-4 readline-common base-files base-passwd bash bsdutils coreutils debconf debconf-i18n debianutils diff dpkg e2fslibs e2fsprogs findutils gcc-4.2-base gcc-4.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcomerr2 libdb4.6 libdevmapper1.02.1 libgcc1 liblocale-gettext-perl libncurses5 libpam0g libpam-modules libpam-runtime libselinux1 libsepol1 libslang2 libss2 libstdc++6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libuuid1 login lsb-base lzma makedev mawk mktemp mount ncurses-base ncurses-bin passwd perl-base procps sed sysvinit sysvinit-utils sysv-rc tar tzdata util-linux zlib1g apt debian-archive-keyring gnupg gpgv less libbz2-1.0 libreadline5 libusb-0.1-4 readline-common I: Deleting target directory # So problem must be due to debootstrap's --variant=fakechroot not detecting any base dependencies. And currently I can't proceed without this problem being solved. Thanks Alex
On Thu, Jul 30, 2009 at 11:03:18PM +0000, Piavlo wrote:
Guido Günther wrote:
Looks like the real problem is due to debootstrap's --variant=fakechroot not detecting any base dependencies - Full details below. I'm getting confused. So debootstrap on it's own (run as root) works as expected? Cheers, -- Guido
Guido Günther wrote:
On Thu, Jul 30, 2009 at 11:03:18PM +0000, Piavlo wrote:
Guido Günther wrote:
Looks like the real problem is due to debootstrap's --variant=fakechroot not detecting any base dependencies - Full details below.
I'm getting confused. So debootstrap on it's own (run as root) works as expected?
I run all commands below manually as root. These two work ok: /usr/sbin/debootstrap --variant=minbase --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ /usr/sbin/debootstrap --variant=buildd --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ While this one not work as expected and fails: fakechroot /usr/sbin/debootstrap --variant=fakechroot --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ It fails since with fakechroot it does not find any additional base dependencies - so it fails with: I: Installing core packages... W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb Thanks Alex
On Mon, Aug 03, 2009 at 11:39:38AM +0300, Piavlo wrote:
While this one not work as expected and fails:
fakechroot /usr/sbin/debootstrap --variant=fakechroot --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/
It fails since with fakechroot it does not find any additional base dependencies - so it fails with: So we're looking at a fakechroot issue. What version is this? 2.9? -- Guido
Guido Günther wrote:
On Mon, Aug 03, 2009 at 11:39:38AM +0300, Piavlo wrote:
While this one not work as expected and fails:
fakechroot /usr/sbin/debootstrap --variant=fakechroot --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/
It fails since with fakechroot it does not find any additional base dependencies - so it fails with:
So we're looking at a fakechroot issue. What version is this? 2.9?
Yes this is 2.9 I'll try with older versions too.
-- Guido
Piavlo wrote:
Guido Günther wrote:
On Mon, Aug 03, 2009 at 11:39:38AM +0300, Piavlo wrote:
While this one not work as expected and fails:
fakechroot /usr/sbin/debootstrap --variant=fakechroot --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/
It fails since with fakechroot it does not find any additional base dependencies - so it fails with:
So we're looking at a fakechroot issue. What version is this? 2.9?
Yes this is 2.9 I'll try with older versions too.
Same problem with fakechroot 2.8
-- Guido
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
On Mon, Aug 03, 2009 at 08:22:38PM +0300, Piavlo wrote:
Guido Günther wrote:
On Mon, Aug 03, 2009 at 11:39:38AM +0300, Piavlo wrote:
While this one not work as expected and fails:
fakechroot /usr/sbin/debootstrap --variant=fakechroot --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/
It fails since with fakechroot it does not find any additional base dependencies - so it fails with:
So we're looking at a fakechroot issue. What version is this? 2.9? Does running fakechroot with "-s" help? -- Guido
Guido Günther wrote:
On Mon, Aug 03, 2009 at 08:22:38PM +0300, Piavlo wrote:
Guido Günther wrote:
On Mon, Aug 03, 2009 at 11:39:38AM +0300, Piavlo wrote:
While this one not work as expected and fails:
fakechroot /usr/sbin/debootstrap --variant=fakechroot --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/
It fails since with fakechroot it does not find any additional base dependencies - so it fails with:
So we're looking at a fakechroot issue. What version is this? 2.9?
Does running fakechroot with "-s" help?
No, fails the same way
-- Guido
On Thu, Jul 09, 2009 at 07:03:16PM +0300, Piavlo wrote:
Since debootstrap is available on gentoo i've installed it now the build process fails with:
Warning: You are running debirf as root. There is a potential for improperly written modules to damage your system. Are you sure you wish to continue? [y|N]: y Loading profile 'debian'... debirf: creating debirf root... E: No such script: /usr/share/debootstrap/scripts/fedora-11 make[2]: *** [../initramfs/fakeroot.log] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56/appliance' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libguestfs-1.0.56/work/libguestfs-1.0.56' make: *** [all] Error 2
why is it still looking for fedora based script and not debian one? Try: ./configure --prefix=/usr/local/stow/libguestfs --with-repo=sid --with-mirror=http://ftp.debian.org/debian
where --with-mirror is the Debian mirror you want to use. Cheers, -- Guido
participants (4)
-
Aron Griffis -
Guido Günther -
Piavlo -
Richard W.M. Jones