#573580 new option to ignore hooks etc. under /usr/share/initramfs-tools

#573580#5
Date:
2010-03-12 16:09:57 UTC
From:
To:
Hi,

What do you think about adding such a feature?  It would be useful
for creating custom initramfs images for other machines in conjunction
with the -d option.  Find attached a patch against the Lenny branch.

Thanks,
Feri.

#573580#10
Date:
2010-03-12 19:08:11 UTC
From:
To:
Hrm, the top level scripts are probably worth copying unconditionally.
Please also consider this on top of my previous patch:
--- a/mkinitramfs +++ b/mkinitramfs @@ -229,7 +229,8 @@ rm -f ${DESTDIR}/bin/kinit* ${DESTDIR}/bin/gzip copy_exec /usr/share/initramfs-tools/init /init # add existant boot scripts -[ -n "$system" ] && for b in $(cd /usr/share/initramfs-tools/scripts/ && find . \ +[ -z "$system" ] && depth="-maxdepth 1" +for b in $(cd /usr/share/initramfs-tools/scripts/ && find . $depth \ -regextype posix-extended -regex '.*/[[:alnum:]_]+$' -type f); do [ -d "${DESTDIR}/scripts/$(dirname "${b}")" ] \ || mkdir -p "${DESTDIR}/scripts/$(dirname "${b}")" -- Thanks, Feri.
#573580#17
Date:
2010-04-04 15:46:13 UTC
From:
To:
don't think both features mix equaly well.

first of all the ignore mechanism should be more flexible,
allowing to pass a list of things like an
EXCLUDE="lvm2,legacylvm,keymap,cryptopensc,cryptroot"
in initramfs.conf

second the other box feature request needs deeper structural changes
hadn't time to get along yet and didn't see anyhting conclusive yet.

please go for latest git, has lots of changes, thanks:
http://git.debian.org/?p=kernel/initramfs-tools.git;a=summary
(that will land soonest in sid)

but i don't think that I'd want to merge this proposal as is currently,
due to aboves points.

thanks for tackling this issues.