[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: is debian debootstrap arch dependent ? or broken



On Sun, 18 May 2014 19:55:11 -0400
"Lennart Sorensen" <lsorense@csclub.uwaterloo.ca> wrote:

> On Mon, May 19, 2014 at 12:49:44AM +0100, RichardBown wrote:
> > On Sun, 18 May 2014 19:44:22 -0400
> > "Lennart Sorensen" <lsorense@csclub.uwaterloo.ca> wrote:
> > 
> > > On Mon, May 19, 2014 at 12:24:33AM +0100, RichardBown wrote:
> > > > Hi
> > > > 
> > > > As the squeeze version of debootstrap is sitting in the flash
> > > > and cant be over written
> > > > I've edited the kirwood.debian-wheezy.sh
> > > > 
> > > > DEB_MIRROR="http://cdn.debian.net/debian";
> > > > 
> > > > MKE2FS_URL="$MIRROR/debian/mke2fs"
> > > > PKGDETAILS_URL="$MIRROR/debian/pkgdetails"
> > > > URL_UBOOT="http://projects.doozan.com/uboot/install_uboot_mtd0.sh";
> > > > #DEBOOTSTRAP_VERSION=$(wget -q
> > > > "$DEB_MIRROR/pool/main/d/debootstrap/?C=M;O=D" -O- | grep -o
> > > > 'debootstrap[^"]*all.deb' | head -n1)
> > > > #DEBOOTSTRAP_VERSION=$(wget -q
> > > > "$DEB_MIRROR/pool/main/d/debootstrap/?C=M;O=D" -O- | grep -v
> > > > squeeze | grep -o 'debootstrap[^"]*all.deb' | head -n1 )
> > > > #URL_DEBOOTSTRAP="$DEB_MIRROR/pool/main/d/debootstrap/$DEBOOTSTRAP_VERSION"
> > > > URL_DEBOOTSTRAP="$DEB_MIRROR/pool/main/d/debootstrap/debootstrap_1.0.60_all.deb"
> > > > 
> > > > #
> > > > # Download debootstrap
> > > > #
> > > > ##########
> > > > ##########
> > > > 
> > > > #if [ ! -e /usr/sbin/debootstrap ]; then
> > > >  mkdir /tmp/debootstrap
> > > >  cd /tmp/debootstrap
> > > >  wget -O debootstrap.deb $URL_DEBOOTSTRAP
> > > >  ar xv debootstrap.deb
> > > >  tar xzvf data.tar.gz
> > > > 
> > > >   if [ "$RO_ROOT" = "1" ]; then
> > > >     mount -o remount,rw /
> > > >   fi
> > > >   #  mv ./usr/sbin/debootstrap /usr/sbin
> > > >   #  mv ./usr/share/debootstrap /usr/share
> > > 
> > > You need those two lines to extract the new version though.
> > > 
> > > >   install "$PKGDETAILS" "$PKGDETAILS_URL" 755
> > > > 
> > > >   if [ "$RO_ROOT" = "1" ]; then
> > > >     mount -o remount,ro /
> > > >   fi
> > > > #fi
> > > 
> > > That should do it.  Just removing the if should fix it for you.
> > > 
> > 
> > Thanks
> > nearly there,  just what decompresses   data.tar.xz ?
> > 
> > tar doesn't like it
> > 
> > Many thanks for the help so far, must get to bed
> 
> Oh crap, that's a modern deb format with xz compression.  Does that
> also happen if you leave it at using the 1.0.48 wheezy version?  As
> far as I can tell the wheezy version is a data.tar.gz so it should
> work with the script, which the new debootstrap version won't.
> 

Yes going back to 1.0.48 allows decompression of the file.

But then hits another problem

## Valid uBoot detected: [pinkpogo davygravy-2012-02-20-current]
## The newest uBoot is already installed on mtd0.

# uBoot installation has completed successfully.
Setting up swapspace version 1, size = 407715840 bytes
Connecting to cdn.debian.net (83.142.228.128:80)
debootstrap.deb      100% |*****************************| 60598  --:--:-- ETA
rw-r--r-- 0/0      4 Jun  3 15:00 2013 debian-binary
rw-r--r-- 0/0   1190 Jun  3 15:00 2013 control.tar.gz
rw-r--r-- 0/0  59215 Jun  3 15:00 2013 data.tar.gz
./
./usr/
./usr/sbin/
./usr/sbin/debootstrap
./usr/share/
./usr/share/doc/
./usr/share/doc/debootstrap/
./usr/share/doc/debootstrap/README
./usr/share/doc/debootstrap/copyright
./usr/share/doc/debootstrap/changelog.gz
./usr/share/man/
./usr/share/man/man8/
./usr/share/man/man8/debootstrap.8.gz
./usr/share/debootstrap/
./usr/share/debootstrap/scripts/
./usr/share/debootstrap/scripts/sarge.buildd
./usr/share/debootstrap/scripts/dapper
./usr/share/debootstrap/scripts/feisty
./usr/share/debootstrap/scripts/woody
./usr/share/debootstrap/scripts/hoary.buildd
./usr/share/debootstrap/scripts/potato
./usr/share/debootstrap/scripts/warty.buildd
./usr/share/debootstrap/scripts/breezy
./usr/share/debootstrap/scripts/sid
./usr/share/debootstrap/scripts/gutsy
./usr/share/debootstrap/scripts/sarge
./usr/share/debootstrap/scripts/edgy
./usr/share/debootstrap/scripts/hoary
./usr/share/debootstrap/scripts/warty
./usr/share/debootstrap/scripts/sarge.fakechroot
./usr/share/debootstrap/scripts/woody.buildd
./usr/share/debootstrap/functions
./usr/share/debootstrap/devices.tar.gz
./usr/share/debootstrap/scripts/raring
./usr/share/debootstrap/scripts/intrepid
./usr/share/debootstrap/scripts/stable
./usr/share/debootstrap/scripts/wheezy
./usr/share/debootstrap/scripts/etch-m68k
./usr/share/debootstrap/scripts/unstable
./usr/share/debootstrap/scripts/oldstable
./usr/share/debootstrap/scripts/jaunty
./usr/share/debootstrap/scripts/lenny
./usr/share/debootstrap/scripts/precise
./usr/share/debootstrap/scripts/hardy
./usr/share/debootstrap/scripts/maverick
./usr/share/debootstrap/scripts/quantal
./usr/share/debootstrap/scripts/squeeze
./usr/share/debootstrap/scripts/lucid
./usr/share/debootstrap/scripts/karmic
./usr/share/debootstrap/scripts/jessie
./usr/share/debootstrap/scripts/oneiric
./usr/share/debootstrap/scripts/testing
./usr/share/debootstrap/scripts/natty
./usr/share/debootstrap/scripts/etch
mv: cannot remove '/usr/share/debootstrap': Is a directory
# checking for /usr/share/debootstrap/pkgdetails...


# Starting debootstrap installation
./kirkwood.debian-wheezy8.sh: line 358: /tmp/bootstrap/debootstrap: No such file or directory
debootstrap failed.


I can see why, as it chroots, it cant see /tmp any more :(
I suspect the answer may be to force uboot to be reinstalled, which
maybe will flush out /usr/bin/. may also turn it in to a brick. 

or to add a path statement to get /tmp/bootstrap found ????

-- 
-- 
Best wishes /73
Richard Bown
Email : richard@g8jvm.com   
HTTP  :  http://www.g8jvm.com
nil carborundum a illegitemis
##################################################################################
Ham Call G8JVM . OS Linux Mint 16 x86_64 on a Dell Inspiron N5030 laptop
Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W
QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W
Microwave 23 cms 140W, 13 cms 100W, 6 cms 0W & 3cms 5W
################################################################################## 


Reply to: