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

Re: Debootstrap question



On Thu, Nov 14, 2002 at 04:04:29AM +1000, Anthony Towns wrote:

Hi Tollef and Anthony,

> On Wed, Nov 13, 2002 at 01:39:46AM +0100, Tollef Fog Heen wrote:
> > | I am playing with debootstrap to build a custom base system.
> > | I would like to include freeswan in the list of deb packages.
> > | Unfortunately, freeswan is in the non-US archive.  I just
> > | wonder if there is an easy way to do it through debootstrap.
> > pass the --components flag to debootstrap.
> 
> This shouldn't work -- non-US has a separate Release file, and usually
> needs a separate URL.
> 
> If it does work, let me know, and we'll see about fixing that...

Of course, it does not work.  I resorted to brute force and did the
unthinkable as follows:

--- /usr/lib/debootstrap/functions.orig 2002-11-13 11:53:51.000000000 -0800
+++ /usr/lib/debootstrap/functions      2002-11-13 11:55:00.000000000 -0800
@@ -383,10 +383,11 @@
 }

 download_main () {
+  MIRRORS=${MIRRORS/,/ }
   local m1=${MIRRORS%% *}
   progress 0 100 "Downloading Packages file"
   progress_next 100
-  COMPONENTS=main
+  COMPONENTS="main non-US/main"
   export COMPONENTS
   for m in $MIRRORS; do
   for c in $COMPONENTS; do

Then, I set the script to use mirror_style main, instead of release.
Debootstrap get the following string as the mirror,
MIRROR="http://192.168.2.8/debian,http://192.168.2.8/debian-non-US";.

One day, I will do a proper script for each mirror, instead of this
kludge.

Thanks.
Bao

-- 
Best Regards.
Bao C. Ha
Hacom   voice: (310) 675-8221 fax: (310) 675-8225
8D66 6672 7A9B 6879 85CD 42E0 9F6C 7908 ED95 6B38



Reply to: