When Update Manager updates the kernel, can it automatically run a script?

Asked by David A. Kra

Scenario: Ubuntu 9.10 + dazukofs 3.1.2 (required for antivirus)

Example: When Update manager updates the kernel, can I make it recompile and reinstall dazukofs?

Problem:

After Update Manager updates the kernel, say from 2.6.31-17 to 2.6.31-19, and later 2.6.31-20,the new linux won't boot, except in recovery mode. The hang is with the initial ubuntu graphic on the screen.
When going from -17 to -19, grub let me boot normal -17 . After the update to -20, even -17 would hang.

Circumvention:

1) Boot the updated kernel in recovery mode.
2) Change to the dazukofs directory
3) Recompile and install dazukofs
     make
     make dazukofs_install
     modprobe dazukofs

How do I make that happen automatically when needed, whether as part of Update Manager running or as part of the first boot with the updated kernel?

Thank you, David

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Kristopher Ives
Solved:
Last query:
Last reply:
Revision history for this message
Kristopher Ives (krisives) said :
#1

This is done via a system called DKMS, which Ubuntu supports and some packages (like Virtualbox) use this already. http://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support

Revision history for this message
David A. Kra (dakra137) said :
#2

Thank you. will investigate later this week. I'll need to figure out what I need to do and how to do it.

Revision history for this message
Best Kristopher Ives (krisives) said :
#3
Revision history for this message
David A. Kra (dakra137) said :
#4

The instructions on the link worked well.
Next time the kernel gets updated we'll see if it DKMS is automagically invoked, notices, and then recompiles & installs dazukofs.
Thank you.
David

Revision history for this message
David A. Kra (dakra137) said :
#5

Ubuntu just updated the kernel, still at the -20 level.
The machine would not restart normally.
I had to do the following TWICE:
{ Start in recovery mode.
   Select "Resume normal start"
   (then DKMS ran and reinstalled several kernel modules, including dazukofs)
  shutdown
}

I don't know why it took the double DKMS run, but a regular start after that worked just fine.

Thank you.