Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 1999 23:58:15 -0500
From:      "Derek Flowers" <djflow@my-dejanews.com>
To:        "Steve Price" <sprice@hiwaay.net>
Cc:        "Jordan K. Hubbard" <jkh@zippy.cdrom.com>, "Mike Meyer" <mwm@phone.net>, <freebsd-stable@FreeBSD.ORG>
Subject:   RE: Splitting package directories [was: release disk sizes?] 
Message-ID:  <000001be62d6$f2f1aa40$ad98fea9@enigma>
In-Reply-To: <Pine.OSF.4.02.9902271736570.15402-100000@fly.HiWAAY.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> Do they take care of splitting the packages into M chunks each
> of potentially different size whilst taking into account the
> dependencies between packages?

Unfortunately, no.  The main script does the following:

1)  Verify that all the packages have an entry in the index
2)  Verify that all the packages in the index exist
3)  Verify that all package dependencies exist

The next script creates a package index covering only the packages that
exist using the original package index as a master.  Hence the need for a
correct original package index.

Finally, the last script traverses the package directory and removes all
malformed symbolic links.

I'll send you the scripts Monday when I get back to work.

My main goal was to create a CD set of 3.1-RELEASE and the packages.  I
found by splitting the packages into two groups (console and X11) I was able
to put the distribution files and packages onto two CDs.  The first CD has
the distribution files and the console packages, a total size of 514.9MB.
The second CD contains only X11 packages with a total size of 648.5MB.  I
did not have a need for the live filesystem, CVS, or distfiles for the
ports.

The only work I had to do by hand was to split the packages by category and
copy the necessary dependencies.  The first was easy since I could just grep
the package index to find the packages dependent on XFree86.  The second was
also easy since the main script above outputs the missing dependencies.  I
just fed the first into the mv command.  The second was fed into the cp
command.

I imagine with the next release I will need a new method of splitting the
packages since the X11 packages are at the limit of the CD.  I'll try and
work on a new set of scripts to automatically split the packages into groups
of size M.

Question:
Would it be possible to rewrite sysinstall so that the CDs can be exchanged
in the middle of a package install?  There is alot of wasted space in
duplicating package dependencies.  It could be something like this:

1)  Store in the index which disk contains which package.
2)  If the package to be installed is not on the current disk, unmount the
cd and bring up an Ok/Cancel dialog asking for the correct disk.
2a) If the user selects Ok, mount the cd and restart at step 2
2b) If the user selects Cancel, cancel the current package install and any
dependent package installs.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001be62d6$f2f1aa40$ad98fea9>