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

Re: Asserting kernel version



>>>> The last change I need to make is to assert the version of the kernel
>>>> from postinst rather than using any kind of dependency (or reverse
>>>> dependency) from the control file. What is the best way to do this?
>>> 
>>> Shouldn't you do this in the preinst?
>> 
>> I originally thought preinst would be the right place too, but Ian J.
>> suggested postinst.
> 
> It depends on how critical the package is.  If we're talking about
> something vital, without which the user will probably be unable to
> compile the appropriate kernel, you should probably do it in the
> preinst.
> 
> The postinst would be more appropriate for most things, as it won't
> bomb out of the installation quite so badly.

I wouldn't call BIND vital, so I guess postinst it is.

Ian, do you have any suggestions on the best way to assert the kernel version
as I had originally asked?

-- 
Robert Leslie
rob@mars.org


Reply to: