newbie questions
Jon Masters
jonathan at jonmasters.org
Sat Dec 8 01:20:47 CST 2007
On Fri, 2007-12-07 at 22:25 -0600, Matt Domsch wrote:
> On Fri, Dec 07, 2007 at 03:41:12AM -0500, Jon Masters wrote:
> > On Fri, 2007-12-07 at 08:10 +0700, Fajar A. Nugraha wrote:
> >
> > > - forcing a call to /etc/init.d/dkms_autoinstaller during kernel upgrade
> > > (using %post, or in my case by hijacking /sbin/weak-modules) might not
> > > work, due to the fact that kernel-devel for that kernel version might
> > > not be installed yet.
> >
> > That's an interesting point.
> >
> > I'm working on modifying weak-modules in RHEL5 to be more friendly with
> > DKMS users, so that it'll let you call your own scripts automatically.
> > But you're right that we might not have the -devel package installed at
> > the moment that we call the weak-modules script. That possibly means we
> > need to do something ugly...but I need to think some more :-)
> >
> > Matt, do you have any particular preference about when/how this happens?
>
> In Ubuntu, we cheat. Seriously. :-)
Right.
> In RPM, we can use %posttrans in kernel and kernel-devel to invoke the
> dkms_autoinstaller, but it'll run twice then (succeed the first time,
> and ignore the second time), which is better, but not ideal.
Yeah, it will.
> We don't have an equivalent of %posttrans-runonce in RPM that I know of.
There's a needed feature right there, don't you just love RPM? :-)
I guess you'd prefer if it I added a .d directory and just called a
script that runs all of those scripts as a result of a %posttrans on
both kernel and kernel-devel packages? The scripts in that directory
(essentially *only* DKMS for the foreseeable future) would need to know
that they might get called twice if we installed both packages.
Jon.
More information about the DKMS-devel
mailing list