#591056 hook/boot scripts in /etc/initramfs-tools should override those in /u/s/initramfs-tools

#591056#5
Date:
2010-07-31 14:18:33 UTC
From:
To:
Hi.

It's already extremely nice that initramfs-tools allows adding hook/boot scripts to
/etc/initramfs-tools/hooks/ and /etc/initramfs-tools/scripts/ in addition to
/usr/share/initramfs-tools/hooks/ and /usr/share/initramfs-tools/scripts/.

IMO it would be even nicer, if those in /etc override those in /usr.

E.g. you have in the package lvm2 the following scripts:
/usr/share/initramfs-tools/hooks/lvm2
/usr/share/initramfs-tools/scripts/local-top/lvm2

Now the way they work may not fit my custom setup so I add:
/etc/initramfs-tools/hooks/lvm2
/etc/initramfs-tools/scripts/local-top/lvm2

If the later exists than the corresponding hook-script (of the same name) in
/usr/share/initramfs-tools/hooks/ should not run and the corresponding boot
script in /usr/share/initramfs-tools/scripts/ should not be copied to the
initramfs image.

It would however be nice, if a warning (for each of them) is printed when
generating the initramfs.
Otherwise users might accidentally override important scripts :)


Cheers,
Chris.