Bug#398347: hooks should respect run-parts naming conventions
Package: initramfs-tools
Version: 0.85a
the run_scripts() function should respect the same naming conventions as
run-parts(8) ... in particular if my editor creates foo~, foo.bak,
.foo.swp files run_scripts() will try to run them. ditto for foo,v.
run_scripts() should also not attempt to invoke directories (i.e. RCS,
CVS).
in particular i've run into troubles in the
/usr/share/initramfs-tools/hooks directory... while trying to fix bugs in
a hook i did "cp foo{,.orig}" so that i would be able to create a patch
for upstream and ran into troubles because the foo.orig was executed as
well.
i imagine there'll be .dpkg-old / .dpkg-dist /etc. troubles for hooks
which are conffiles (which i'd hope most hooks would be).
-dean
Reply to: