- Package:
- initramfs-tools
- Source:
- initramfs-tools
- Submitter:
- Ferenc Wagner
- Date:
- 2010-04-04 16:18:04 UTC
- Severity:
- wishlist
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.
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.
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.