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

Re: is debian debootstrap arch dependent ? or broken



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
>  
>   install "$PKGDETAILS" "$PKGDETAILS_URL" 755
> 
>   if [ "$RO_ROOT" = "1" ]; then
>     mount -o remount,ro /
>   fi
> #fi
> 
> 
> ##########
> ##########
> #
> # Run debootstrap
> #
> ##########
> ##########
> 
> echo ""
> echo ""
> echo "# Starting debootstrap installation"
> 
> #/usr/sbin/debootstrap --verbose --no-check-gpg --arch=$ARCH --variant=$VARIANT --include=$EXTRA_PACKAGES $RELEASE $ROOT
> $DEB_MIRROR /tmp/bootstrap/debootstrap --verbose --no-check-gpg --arch=$ARCH --variant=$VARIANT --include=$EXTRA_PACKAGES $RELEASE
> $ROOT $DEB_MIRROR
> 
> if [ "$?" -ne "0" ]; then
>   echo "debootstrap failed."
>   echo "See $ROOT/debootstrap/debootstrap.log for more information."
>   exit 1
> fi
> 
> 
> This results in 
> Connecting to cdn.debian.net (83.142.228.128:80)
> debootstrap.deb      100% |*******************************| 56394  --:--:-- ETA
> rw-r--r-- 0/0      4 May  6 08:46 2014 debian-binary
> rw-r--r-- 0/0   1250 May  6 08:46 2014 control.tar.gz
> rw-r--r-- 0/0  54952 May  6 08:46 2014 data.tar.xz
> tar: can't open 'data.tar.gz': No such file or directory
> # checking for /usr/share/debootstrap/pkgdetails...
> 
> 
> # Starting debootstrap installation
> ./kirkwood.debian-wheezy6.sh: line 356: /tmp/bootstrap/debootstrap: No such file or directory
> debootstrap failed.
> See /tmp/debian/debootstrap/debootstrap.log for more information.
> Pogoplug:/tmp$ ls
> debian                      resolv.conf
> debootstrap                 uboot-mtd0-dump
> install_uboot_mtd0.sh       var
> kirkwood.debian-wheezy6.sh
> Pogoplug:/tmp$ cd debootstrap/
> Pogoplug:/tmp/debootstrap$ ls
> control.tar.gz   data.tar.xz      debian-binary    debootstrap.deb
> 
> 
> 
> It looks like the two lines immediately after the download of
> debootstrap are not getting run , a delay possibly needed ??
> As sleep is recognised I'll add sleep 2 after the download and see.
> 
> I suspect that without updating the install scripts that pogoplugs can
> only run squeeze , as an early version of debootstrap is written to
> Flash , I guess in the install of uboot

Doing 'rm /usr/sbin/debootstrap' should work too to solve it.

-- 
Len Sorensen


Reply to: