Re: is debian debootstrap arch dependent ? or broken
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.
--
Len Sorensen
Reply to: