You are not logged in.

#1 2012-02-20 15:34:21

Corubba
Member
From: Germany
Registered: 2010-11-14
Posts: 86

run post mkinitcpio script

Hey guys,

today i played a little bit with aide in order to build a little daemon script to check the integrity of my unprotected boot partition. Since I'm kinda lazy, i want that the database to be updated automatically after i build new kernel image. Is there any possibility to get mkinitcpio run a script after finishing the image creation? Or can i specify the command that will be called after a kernel update?

A little "hack" was coming to my mind while searching. I could replace the original mkinitcpio binary with a wrapper script. But i don't want to do this if there is any other possibility.


Greetz corubba

Offline

#2 2012-02-20 15:50:07

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: run post mkinitcpio script

This is outside the domain of mkinitcpio and aide. Your intuition to write a wrapper script is correct, but yes, it's hacky.

Eventually™, pacman will have hook support and you'll be able to do this more easily.

Last edited by falconindy (2012-02-20 15:50:45)

Offline

Board footer

Powered by FluxBB