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

Bug#152845: debootstrap example



At 17:13 +0200 7/13/02, Matt Kraai wrote:
>On Sat, Jul 13, 2002 at 04:09:47PM +0200, Geert Stappers wrote:
>> At
>>http://www.nl.debian.org/releases/woody/powerpc/ch-install-methods.en.html
>> is the text
>>
>>      debootstrap binary-basedebs SUITE=woody VERSION=3.0 \
>>        MIRROR="http://ftp.debian.org/debian"; ARCHES="powerpc"
>>
>> When invoking that, I get,
>>
>> E: No such script: MIRROR=http://ftp.debian.org/debian
>
>Right, that command is horribly broken.
>
>> So I think the example given is wrong.
>>
>>  debootstrap --arch=powerpc woody binary-basedebs
>>http://ftp.debian.org/debian
>>
>> is a working example.
>
>Unfortunately, this is broken as well.  debootstrap's
>debian/rules files contains the following target:
>
> binary-basedebs:
> 	dh_testdir
> 	dh_testroot
>
> 	$(MAKE) pkgdetails
>
> 	ln -s . scripts
> 	for a in $(ARCHES); do \
> 	    rm -rf chroot-dir; \
> 	    mkdir -p chroot-dir; \
> 	    DEBOOTSTRAP_DIR=. ./debootstrap --arch $$a --download-only
>$(SUITE) chroot-dir $(MIRROR); \
> 	    (cd chroot-dir && tar cf ../../basedebs_$(VERSION)_$$a.tar *); \
> 	    rm -rf chroot-dir; \
> 	done
> 	rm -f scripts
>
>Thus, the correct commands are
>
> mkdir -p chroot-dir
> debootstrap --arch powerpc --download-only woody chroot-dir
>http://ftp.debian.org/debian
> (cd chroot-dir && tar cf ../basedebs_3.0_powerpc.tar *)
> rm -rf chroot-dir
>
>If desired, I'll document this in the manual.  I'd rather remove
>them entirely, however.  Why would the user want to rebuild the
>tarball?
>

Leave it to the user to decide if he wants to rebuild the tarball.
It is good the tell that the tool debootstrap exists and how to use it.

Please document it in the manual.
Moving it to the Technical Info Chapter is IMHO an improvement.



Geert




-- 
To UNSUBSCRIBE, email to debian-boot-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: