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

Re: dpkg divert in preinst scripts



Hi,

On Mon, Apr 12, 2010 at 01:01:52AM -0500, Jonathan Nieder wrote:

> It might be good for a future policy to specify that Priority:
> required packages must cope without preinst being run at all for
> the initial unpack.

That is the exact definition of "Essential: yes". Bootstrapping a system
works by unpacking essential packages, then using that system to install
the essential packages again (running their preinst in the process and
registering the files with dpkg), then installing anything else that may
be desired.

Within emdebian, we do not want to use this method of installation
really (although it works, it requires the target system to have enough
space so it can run the second stage, which requires all the packages in
the target fs, and also overwrites all files, which is quite
unnecessary); rather, we want to be able to do everything on the host
system.

My current approach is to basically follow Debian, but try to interpret
the maintainer scripts on the host system and translate them as
required. My first implementation goes toward full static analysis (so
we can decide whether the installation will work before trying it), I'm
not sure whether it will actually work this way, or if we have to start
deferring such decisions and possibly abort in the middle of things.

   Simon


Reply to: