TurnKey Linux's take on Ubuntu appliance development: KISS
Pau Garcia i Quiles
pgquiles at elpauer.org
Thu Jan 7 16:07:04 GMT 2010
On Thu, Jan 7, 2010 at 3:58 PM, Forest Bond <forest at alittletooquiet.net> wrote:
> Hi,
>
> On Thu, Jan 07, 2010 at 01:31:44AM +0100, Pau Garcia i Quiles wrote:
>> Now, there is something nobody has said yet: order of installation.
>> That's the main difficulty I see with packages (and rest assured, I am
>> all for using packages to build appliances). AFAIK you cannot
>> guarantee in what order will apt install the packages, therefore it
>> might happen that postfix-appliance-config is installed before postfix
>> and, well, it won't work.
>
> I don't believe this is true. Quoting from the Debian Policy Manual:
>
> The Depends field should also be used if the postinst, prerm or postrm scripts
> require the package to be present in order to run. Note, however, that the
> postrm cannot rely on any non-essential packages to be present during the
> purge phase.
>
> I think that this implies that a depended-upon package is guaranteed to be
> unpacked before executing the postinst script for the package with the
> dependency. I assume that's where you'd run your configuration customization.
Will the depended-upon package it be "unpacked"? or "configured"?
"unpacked" is not enough, IMHO
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
More information about the ubuntu-devel
mailing list