Bug#667594: support MODULES=most in initramfs even for a netboot
Package: live-build
Version: 2.0.12-2
Severity: wishlist
If a net image is built, then currently
/usr/share/live/build/scripts/build/lb_chroot_hacks forces
chroot/etc/initramfs-tools/initramfs.conf to contain:
MODULES=netboot
BOOT=nfs
NFSROOT=auto
if it did not already have MODULES=netboot in it.
Despite doing a netboot, I would like the user to have access to any
local block devices at initramfs time in case the user wishes to use
persistence. With MODULES=netboot, the user will only ever see loop
devices at this point.
I have confirmed that setting MODULES=most still results in a working
netboot, and also does allow for persistence to work.
As far as I can see, lb_chroot_hacks happens after chroot_local-hooks or
-includes so it is not possible to provide my own
chroot/etc/initramfs-tools/initramfs.conf file.
At the moment, the messy workaround I have is to use a hook to ensure
that chroot/etc/initramfs-tools/initramfs.conf already contains:
MODULES=netboot
MODULES=most
BOOT=nfs
NFSROOT=auto
Since the file then already contains the string "MODULES=netboot",
lb_chroot_hacks does not modify it further.
Possibly the initramfs could just always have MODULES=most as it doesn't
make it very much bigger.
-- Package-specific info:
-- System Information:
Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686-bigmem (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-build depends on:
ii debootstrap 1.0.26+squeeze1 Bootstrap a basic Debian system
Versions of packages live-build recommends:
ii cpio 2.11-4 GNU cpio -- a program to manage ar
ii gnu-fdisk 1.2.4-3 Linux fdisk replacement based on l
Versions of packages live-build suggests:
pn dosfstools <none> (no description available)
ii fakeroot 1.14.4-1 Gives a fake root environment
pn genisoimage <none> (no description available)
ii grub-legacy [grub] 0.97-64 GRand Unified Bootloader (Legacy v
pn memtest86+ | memtest <none> (no description available)
pn mtools <none> (no description available)
pn parted <none> (no description available)
pn squashfs-tools | gen <none> (no description available)
ii sudo 1.7.4p4-2.squeeze.2 Provide limited super user privile
ii uuid-runtime 2.17.2-9 runtime components for the Univers
pn win32-loader <none> (no description available)
-- no debconf information
Reply to: