Frank
chroot & mkimage fails
August 09, 2010 01:27PM
Hello,

the installer fails at my dockstar

Any clue what is wrong or missing?


W: Failure trying to run: chroot /tmp/debian mount -t proc proc /proc
./dockstar.debian-squeeze.sh: line 255: /tmp/debian/usr/bin/mkimage: No such
file or directory
./dockstar.debian-squeeze.sh: line 256: /tmp/debian/usr/bin/mkimage: No such
file or directory
rm: cannot remove '/tmp/debian/etc/blkid.tab': No such file or directory
rm: cannot remove '/tmp/debian/etc/mtab': No such file or directory

Regards,

Frank
Re: chroot & mkimage fails
August 09, 2010 02:34PM
There was a bug in the emdebian install script. It's fixed now. Just run the installer again and you'll be all set.

-- Jeff
John Hauser
Re: chroot & mkimage fails
August 09, 2010 02:44PM
i'm getting the same error.
the lines just before the warning are:
I: Extracting xz-utils...
I: Extracting zlib1g...

after the error lines:
W: Failure trying to run: chroot /tmp/debian mount -t proc proc /proc
./dockstar.debian-squeeze.sh: line 255: /tmp/debian/usr/bin/mkimage: No such file or directory
./dockstar.debian-squeeze.sh: line 256: /tmp/debian/usr/bin/mkimage: No such file or directory
rm: cannot remove '/tmp/debian/etc/blkid.tab': No such file or directory
rm: cannot remove '/tmp/debian/etc/mtab': No such file or directory

the normal "Installation complete" text and the "Reboot now? [Y/n]" text appear.

rebooting, re-downloading the dockstar.debian-squeeze.sh and re-running the install doesn't seem to help.
Re: chroot & mkimage fails
August 09, 2010 02:55PM
It sounds like the debootstrap command may be failing. What size is your partition on sda1?

I've updated the installer to print out an error if debootstrap fails.

-- Jeff



Edited 1 time(s). Last edit at 08/09/2010 03:22PM by Jeff.
John Hauser
Re: chroot & mkimage fails
August 09, 2010 04:15PM
yes, debbootstrap is failing. however, it's probably not a disk space issue on the usb thumb drive.

W: Failure trying to run: chroot /tmp/debian mount -t proc proc /proc
debootstrap failed. You may not have enough space on /dev/sda1
dockstar5:/tmp$ df -mh
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 32.0M 15.8M 16.2M 49% /
none 61.6M 684.0k 60.9M 1% /tmp
/dev/sda1 3.4G 159.0M 3.1G 5% /tmp/debian
dockstar5:/tmp$

btw, thanks for all your work streamlining the install of debian on these devices.
it's been fun watching the progress!
Re: chroot & mkimage fails
August 09, 2010 04:25PM
John,

That's very odd. I'm not seeing that on any of the devices I've tried installing this on.

There should be a debootstrap log in /tmp/debian/debootstrap. Can you please post that here and I'll take a look at it.

Thanks,

-- Jeff
John Hauser
Re: chroot & mkimage fails
August 09, 2010 04:54PM
W: Failure trying to run: chroot /tmp/debian mount -t proc proc /proc
debootstrap failed. You may not have enough space on /dev/sda1
dockstar5:/tmp$ tail /tmp/debian/debootstrap/debootstrap.log
vim-common_2%3a7.2.4 100% |*******************************| 155k --:--:-- ETA
Connecting to ftp.us.debian.org (204.152.191.39:80)
vim-tiny_2%3a7.2.445 100% |*******************************| 340k 00:00:00 ETA
Connecting to ftp.us.debian.org (204.152.191.39:80)
wget_1.12-2_armel.de 100% |*******************************| 737k 00:00:00 ETA
Connecting to ftp.us.debian.org (204.152.191.39:80)
xz-utils_4.999.9beta 100% |*******************************| 171k --:--:-- ETA
Connecting to ftp.us.debian.org (204.152.191.39:80)
zlib1g_1%3a1.2.3.4.d 100% |*******************************| 77512 --:--:-- ETA
/usr/share/debootstrap/functions: line 831: chroot: command not found
dockstar5:/tmp$ df -mh
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 32.0M 15.8M 16.2M 49% /
none 61.6M 696.0k 60.9M 1% /tmp
/dev/sda1 1.9G 155.0M 1.6G 8% /tmp/debian
dockstar5:/tmp$

i reduced the size of sda1 in an attempt to get past the issue, but it looks like it may be an "upstream" issue if debootstrap isn't finding the chroot binary?
Re: chroot & mkimage fails
August 09, 2010 04:59PM
I think it's an issue with /usr/sbin not being in the PATH when you connect via SSH. When you connect over serial, it's in the path:

serial:
-sh-3.2# printenv PATH
/sbin:/usr/sbin:/bin:/usr/bin

ssh:
Pogoplug:~$ printenv PATH
/usr/bin:/bin:/sbin

so run 'export PATH=$PATH:/usr/sbin' before running the installer and you should be all set.

I've updated the install scripts with this fix.

-- Jeff
John Hauser
Re: chroot & mkimage fails
August 09, 2010 05:18PM
ahh!
that difference in PATHs between ssh and serial explains why i was able to install squeeze successfully using your script last night on my test-bed dockstar that's torn apart and has a home brew serial cable delicately attached but have been having so much trouble today trying to install on a different dockstar over ethernet/ssh!

thanks...

it's past the previous point of error and is now into the next section of debootstrap that takes longer:
I: Installing core packages...
I: Unpacking required packages...

thanks, again!
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: