List Info

Thread: /etc/udev/rules.d nightmare - orphaned files in /etc




/etc/udev/rules.d nightmare - orphaned files in /etc
user name
2006-11-25 17:41:58
Sven Köhler kirjoitti:
> Hi,
> 
> i had some orphaned files in /etc/udev/rules.d. Namely
40-fuse.rules and
>  60-fuse.rules.
> 
> The files were never removed, since they are protected
- aren't they?
> 

Yeah config protected files are never removed. That is the
whole point
of configuration file protection. It would't be that bad to
turn off
configuration projection for /etc/udev/rules.d like we do
for
/etc/env.d, but that is for the udev maintainers to decide.
In the
meantime you can use something like the following to find
orphaned udev
rules:

for file in  /etc/udev/rules.d/*; do qfile $file || echo
$file "is
orphaned"; done

Regards,
Petteri

/etc/udev/rules.d nightmare II - orphaned files return!
user name
2006-11-26 01:44:14
Petteri R??ty <betelgeusegentoo.org> wrote:
> Sven K??hler kirjoitti:
> > i had some orphaned files in /etc/udev/rules.d.
Namely 40-fuse.rules
> > and 60-fuse.rules.
> > 
> > The files were never removed, since they are
protected - aren't
> > they?
> 
> Yeah config protected files are never removed. That is
the whole point
> of configuration file protection. It would't be that
bad to turn off
> configuration projection for /etc/udev/rules.d like we
do for
> /etc/env.d, but that is for the udev maintainers to
decide. In the
> meantime you can use something like the following to
find orphaned
> udev rules:
> 
> for file in  /etc/udev/rules.d/*; do qfile $file ||
echo $file "is
> orphaned"; done

Or, something like the following, to find every orphaned
file:

# eval $(emerge --info | grep '^CONFIG_PROTECT=')

# find $CONFIG_PROTECT -type f | xargs qfile -o

Naturally, that list will require a lot of scrubbing before
you start
deleting stuff.

-- 
Every absurdity has a champion to defend it.
  -- Oliver Goldsmith
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )