Hi, On Mon, Mar 20, 2006 at 09:38:30 +0100, Johannes Winkelmann wrote:
Hi there,
In order to allow a smooth upgrade to 2.2, we need some extensions to setup. That's mainly three things: [...] I made a patch (currently untested) which allows the above. I also wrote a separate script to do the above, to keep the impact on 'setup' lower and make it testable: http://jw.tks6.net/files/crux/post-setup
to test it, do: $ mkdir /tmp/setup $ cd /tmp/setup $ mkdir core opt $ touch core/udevd#1.0-1.pkg.tar.gz $ wget http://jw.tks6.net/files/crux/post-setup $ chmod +x post-setup $ ./post-setup / The script doesn't do any actual changes, since it's configured as PKGADD="echo pkgadd" PKGRM="echo pkgrm" MV="echo mv" It should print about the following (on an udev-enabled machine): ----- * Packages removed (obsolete): gcc pkgrm -r / gcc [1] * Packaged injected: udevd pkgadd -r -f / core/udevd#1.pkg.tar.gz [2] * Packages renamed: pkgconfig -> pkg-config mv /tmp/db /var/lib/pkg/db [3] ----- [1], [2] and [3] would be actual commands. Obviously, the actual package names are bogus and to be adjusted after testing. This should allow to test it without building an ISO. Feedback appreciated. Kind regards, Johannes -- Johannes Winkelmann mailto:jw@tks6.net Zurich, Switzerland http://jw.tks6.net