[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I customize the contents of initrd images on debian-live?



Chris Jones wrote:
> I would like to add modules to an initrd images

place a initramfs hook into /usr/share/initramfs-tools/hooks.

for reference, look at e.g. the live-initramfs hook in
/usr/share/initramfs-tools/hooks/live-initramfs on a system where
live-initramfs is installed, or at hooks/live-initramfs in the
live-initramfs sources.

naturally, you'll later include this hook into
config/chroot_local-includes/usr/share/initramfs-tools/hooks in order to
get it included in your live system and you'll also need to rebuild the
initrd during the build (e.g. by symlinking
/usr/share/live-helper/examples/hooks/update-initrd.sh to
config/chroot_local-hooks).

> and make sure that they
> are loaded at boot time but I have been unable to find a way to do this
> in debian-live.

for your live system, you'll be best doing this by a custom hook. see
http://git.debian.net/?p=debian-live/live-helper.git;a=commitdiff;h=b2de9c326e267cc402910f96e51e1a331dff6f3e;hp=ff2bdad21936ba5937b9000c6b06d25815bed3bf
for a starting point (you need to set MODULES="" to the module names you
want, and need to replace /etc/modules with /etc/initramfs-tools/modules).

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/


Reply to: