Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 178628

Summary: need a way to hook into post etc-update
Product: Portage Development Reporter: SpanKY <vapier>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: cardoe, zzam
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2007-05-15 12:33:02 UTC
we have some scripts that may need to be run after etc-update is executed ...

for example, any files installed into /etc/modules.d/ or /etc/modprobe.d/ should have `update-modules` run afterwards

or after /etc/ca-certificates.conf is updated, update-ca-certificates should be executed
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-05-15 13:08:36 UTC
I assume you want this for all config file managers, not just etc-update, right?
Comment 2 SpanKY gentoo-dev 2007-05-15 14:17:42 UTC
the immediate need was for etc-update, but if you want to make it extensible and make it agnostic of the utility, that's fine
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2007-05-15 14:34:43 UTC
(In reply to comment #2)
> the immediate need was for etc-update, but if you want to make it extensible
> and make it agnostic of the utility, that's fine
> 

A daemon using inotify maybe?
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-05-15 14:35:53 UTC
(In reply to comment #3)
> 
> A daemon using inotify maybe?
> 

Would have the benefit of catching changes done outside of etc-update too. Then it could optionally have a dbus based API to ask for confirmation from the user on running the tool.
Comment 5 SpanKY gentoo-dev 2007-05-15 14:57:54 UTC
ugh, i see that as a death spiral
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2007-05-15 14:59:44 UTC
Petteri: Your thinking wayyyy to high level on this one right now. The tool we need is much lower then that. Granted, if you wanted something like this, I'm sure we could make some hooks in there to call some bash D-Bus bindings to notify stuff like gnome-system-tools/backends.

vapier: This is exactly what we need. Great idea.
Comment 7 SpanKY gentoo-dev 2012-03-11 03:17:23 UTC
i think for most things now, people have converted to .d dirs so fragments can be installed without having to generate a single config file.  certainly for the modules/modprobe stuff, that's what we do.