Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Kernel (http://www.linux-archive.org/debian-kernel/)
-   -   Bug#591056: hook/boot scripts in /etc/initramfs-tools should override those in /u/s/initramfs-tools (http://www.linux-archive.org/debian-kernel/406673-bug-591056-hook-boot-scripts-etc-initramfs-tools-should-override-those-u-s-initramfs-tools.html)

Christoph Anton Mitterer 07-31-2010 02:18 PM

Bug#591056: hook/boot scripts in /etc/initramfs-tools should override those in /u/s/initramfs-tools
 
Package: initramfs-tools
Version: 0.97.2
Severity: wishlist


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.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100731141833.27503.13288.reportbug@heisenberg.sc ientia.net">http://lists.debian.org/20100731141833.27503.13288.reportbug@heisenberg.sc ientia.net


All times are GMT. The time now is 07:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.