summaryrefslogtreecommitdiff
path: root/hook-functions
AgeCommit message (Collapse)Author
2010-02-24auto_add_modules: Copy all modules from net, excluding some subdirectoriesBen Hutchings
This removes the need to maintain an explicit list, which always has some drivers missing. fixes #553024 partly. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: maximilian attems <maks@debian.org>
2010-02-24copy_modules_dir: Take a list of exclusions after the base directoryBen Hutchings
Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: maximilian attems <maks@debian.org>
2010-02-22mkinitramfs: add all usb storage devicesAvi Rozen
USB storage device is not recognized at boot after kernel upgrade to 2.6.30. It seems that the usb-storage module has been split into several mini modules, which are not copied to the initramfs image. In my case usb-storage.ko is copied but ums-cypress.ko is not copied. I've attached a patch against hook-functions that fixes this, by using copy_modules_dir to copy all the modules in kernel/drivers/usb/storage, instead of just usb-storage. I've set the severity to important because my USB storage device also happens to be the boot device... Cheers, Avi (closes: #543568) Signed-off-by: maximilian attems <maks@debian.org>
2010-02-22hook-functions: Avoid firmware copy error.Michael Prokop
Fix a2127d33 for systems without /proc/modules because the check has the wrong logic order. (closes: #570678) Signed-off-by: maximilian attems <maks@debian.org>
2009-11-16copy_exec: Check if ldd is aroundmaximilian attems
got report of a box with missing ldd. as the errors get seded away the user is left with no idea of the failure. Signed-off-by: maximilian attems <maks@debian.org>
2009-11-08mkinitramfs: Be opportunistic when calling modprobe thus showing errorsmaximilian attems
don't suppress the modprobe error output!!! this can happen when your depmod was generated by newer m-i-t then Lenny's. make deb-pkg generated images don't call yet depmod -a in postinst thus it can happend there and it was already triggered. (closes: #554873) Reported-by: Michael Prokop <mika@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2009-10-28hook-funcitions: Only warn about missing firmware if /proc/modules existsmaximilian attems
makes no sense to look up if there are no modules. seen on a piuparts installation of linux-2.6 Signed-off-by: maximilian attems <maks@debian.org>
2009-08-08hook-functions: Fix mounted /sys check for openvz container.maximilian attems
ls -l /sys total 0 drwxr-xr-x 5 root root 0 2009-08-08 11:53 class drwxr-xr-x 2 root root 0 2009-08-08 11:53 devices
2009-07-29Revert "hook-functions: Add hid_* modules."maximilian attems
don't support any possible usb keyboard under earth, the usbhid is default the rest should be added by the appropriate sysadmin. revert this ubuntu sync for smaller initramfs and thus faster boot. This reverts commit 7d28901223a8f5fa47ddb0b0d39b34b04d43b8e9. Signed-off-by: maximilian attems <maks@debian.org>
2009-07-29Redefinde MODULES=most to not carry any fb driver per default.maximilian attems
this allows for a much smaller initramfs and thus faster boot. Signed-off-by: maximilian attems <maks@debian.org>
2009-06-25MODULES=most: Add virtio_net to initramfs.maximilian attems
allows boot via PXE in a KVM virtualiziation environment. (closes: #533894) Reported-by: Michael Prokop <mika@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2009-06-23hook-functions: Fix loading of entries without newline in /etc/i-t/modulesmaximilian attems
don't use the overcomplicated sed to add a newline to really strip it, just use the simple /etc/init.d/module-init-tools parsing that should be well enough tested. ;) (closes: #532745) Signed-off-by: maximilian attems <maks@debian.org>
2009-05-18mkinitramfs: Invoke dpkg --print-architecturemaximilian attems
Fixes: > Running update-initramfs. > update-initramfs: Generating /boot/initrd.img-2.6.29-2-amd64 > dpkg : avertissement : obsolete option > '--print-installation-architecture', please use '--print-architecture' > instead. > dpkg : avertissement : obsolete option > '--print-installation-architecture', please use '--print-architecture' > instead. While we are it nuke duplicate invocation, since DPKG_ARCH is an exported variable anyway. (closes: #529222) Reported-by: Raphaël Hertzog <hertzog@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2009-05-11hook-functions: MODULES=most fix old typo s/smc911x/smc91x/maximilian attems
commit 8761821795732a9755d673e92fb45ac9202270df had the error. (closes: #528094)
2009-04-21hook-functions: MODULES=dep error out if sysfs not mounted on /sys.maximilian attems
currently we fail sylently later, make it explicit. (closes: #524179) Signed-off-by: maximilian attems <maks@debian.org>
2009-04-21copy_exec: also avoid picking sse2, neon, and vfp hwcaps libs.Loic Minier
merge 0.92bubuntu29 Signed-off-by: maximilian attems <maks@debian.org>
2009-04-13hook-functions: Add i915 module for kms.maximilian attems
people still need to enable kernel mode setting, but the module should be on the initramfs by default. currently no other drm module supports kms yet. Reported-by: Yves-Alexis Perez <corsac@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2009-03-30hook-functions: MODULES=most fb add all available agp modulesmaximilian attems
this was proposed in patch on #416063 by Maik Zumstrull <Maik.Zumstrull@gmx.de> but don't hardcode the list, just add all build ones: ls /lib/modules/2.6.29-1-amd64/kernel/drivers/char/agp/ intel-agp.ko sis-agp.ko via-agp.ko
2009-03-29hook-functions: MODULES=most add all fb modules per defaultmaximilian attems
"with kernel mode setting, i'd imagine that including framebuffer drivers becomes even more important, too" -dilinger this is basedon a patch by Maik Zumstrull <Maik.Zumstrull@gmx.de>, but instead of hardcoding a list just copy over all fb from the relevant driver directory. first part of #416063.
2009-03-29hook-functions: Add firmware from versioned directories too.maximilian attems
First see if there is a $(uname -r) versioned firmware around and if there is add it first. should make ubuntu sync easier too, as they shipp their firmware there. (closes: #521370)
2009-03-27hook-functions: stricter match on loaded module for firmware warning.maximilian attems
Otherwise it likes to warn for e100 even if e1000e is in use: grep e100 /proc/modules e1000e 110896 0 - Live 0xffffffffa0028000
2009-03-24hook-functions: MODULES=dep fix for luks over cciss devicesFrançois Delawarde
I needed to run update-initramfs w/ MODULES=dep (for some 15M BIOS size limitation w/ lilo on an HP server), turns out that I found the same bug as #507619 (please refer to it for details), except that I have a LUKS format over the cciss device. As bug #507619 describes: "dep_add_modules() expects to find a /sys/block/cciss/c0d0p file, but it should be trying /sys/block/cciss!c0d0" It also mentions: "fyi, I suspect this may also apply to old-style smart array devices, where device names are similar, but use 'ida' intead of 'cciss' - e.g. /dev/ida/c0d0p1." The following patch fixes it for me (on cciss) and should also fix it for ida devices. [ patch got checked and tested life on #debian-boot channel, see below -maks ] fixed warning: mkinitramfs: missing cciss!c0d0p2 root /dev/mapper/quakelive-root /sys entry of course, since the new value of block comes out of /sys/block/dm-${minor}/slaves, it makes sense that it would already be in sysfs syntax. Tested-by: Timothee Besset <ttimo@ttimo.net>
2009-03-20hook-functions: MODULES=dep fix for mmc rootmaximilian attems
update-initramfs: Generating /boot/initrd.img-2.6.26-1-versatile mkinitramfs: missing mmcblk root /dev/mmcblk0p3 /sys entry (closes: #520198) Tested-by: Paul Malishev <afunix@hing.rednet.ru>
2009-03-18hook-functions: reword MODULES=dep error messagemaximilian attems
seems confusing for users..
2009-03-10mkinitramfs: usage() fix conffile name.maximilian attems
woow that went unnoticed for some years now. people seem really to use update-initramfs(8).
2009-03-10MODULES=dep: ide-disk got renamed to ide-gd_mod since 2.6.28.maximilian attems
try to add one or the other.
2009-02-17MODULES=dep fix for Xen virtual block devicesIan Campbell
Ferenc seems to be using the xvda1=img1,xvda2=img2 scheme of Xen disks (this is what xentools gets you) rather than the whole disk with partition scheme. In the xvda1/xvda2 scheme /sys/block contains: # ls /sys/block/ ram0 ram1 ram10 ram11 ram12 ram13 ram14 ram15 ram2 ram3 ram4 ram5 ram6 ram7 ram8 ram9 xvda1 xvda2 In the whole disk scheme it contains xvda as you would expect: # ls /sys/block/ loop0 loop1 loop2 loop3 loop4 loop5 loop6 loop7 ram0 ram1 ram10 ram11 ram12 ram13 ram14 ram15 ram2 ram3 ram4 ram5 ram6 ram7 ram8 ram9 xvda I've attached a patch which takes care of this difference. [ remove largest suffix pattern, so that we don't stumble on big minors -maks ] Signed-off-by: maximilian attems <maks@debian.org>
2009-02-16MODULES=dep fix for minor partitions > 9maximilian attems
always remove the largest possible suffix pattern on the block device. (closes: #513958) Reported-by: Nicola Canepa <canne74@gmail.com>
2009-02-14hook-functions: Add hid_* modules.Luke Yelavich
since some keyboards will not be usable at the initramfs/busybox prompt without them. [ Ubuntu sync for 0.92bubuntu19 port it to Debian - maks ]
2009-02-05hook-functions: just ship old iee1394 if around.maximilian attems
no need to deprecate it in initramfs-tools. Lenny ships due to userspace with it and Juju firewire not yet feature complete..
2008-12-18hook-functions: MODULES=dep fix encrypted loop deviceS. Sakar
i've set up an encrypted loop-AES device as the root partition (boot paramter dev=/dev/loopX) and update-initramfs fails with : mkinitramfs: missing loop root /dev/loop2 /sys entry
2008-12-17hook-functions: Fix MODULES=dep for lvm LABEL fstab notationEugene Paskevich
The root fs is located on LVM and is described in /etc/fstab with LABEL= notation, which leads to the following mount output for root filesystem: mount | grep "on / " /dev/dm-0 on / type ext3 (rw,noatime,errors=remount-ro) The /dev/dm-0 itself isn't a symlink to /dev/mapper/, therefore root var remains /dev/dm-0 after readlink -f attempt. fix the consequent root detection failure. (closes: #508906)
2008-12-15Add atl1e, cxgb, ixgb, ixgbe, mlx4_core, netxen_nic, sfc, tehuti to net ↵maximilian attems
module list closes: #503216
2008-12-15hook-functions: alphebetize net drivers, fix typhoon typomaximilian attems
2008-12-14MODULES=dep fix for ida devicesmaximilian attems
same fix as cciss, see #507619
2008-12-14Fix MODULES=dep for cciss devicesdann frazier
A coworker reported a lenny install failure today. Turns out he had asked the installer to run mkinitramfs w/ MODULES=dep, which I'd never tried before: dl380g5:/home/dannf# mkinitramfs-kpkg -o /boot/initrd.img-2.6.26-1-686 2.6.26-1-686 mkinitramfs: missing cciss/c0d0p root /dev/cciss/c0d0p1 /sys entry mkinitramfs: workaround is MODULES=most mkinitramfs: Error please report the bug dep_add_modules() expects to find a /sys/block/cciss/c0d0p file, but it should be trying /sys/block/cciss!c0d0: (closes: #507619)
2008-09-15auto_add_modules: add dasd_diag_mod to dasd sectionmaximilian attems
2008-09-12add dasd_diag_mod to auto_add_modules block sectionmaximilian attems
found under drivers/s390/block instead drivers/block location. "allows to access disks under VM" request by s390 porter Bastian Blank <waldi@debian.org>
2008-09-12readd zfcp to auto_add_modulesmaximilian attems
lives under drivers/s390/scsi and not drivers/scsi (closes: #498698)
2008-09-08MODULES=dep fix for root lvm on mdmaximilian attems
mkinitramfs MODULES=dep detection didn't account for lvm on md, fixes mkinitramfs: missing md root /dev/mapper/ts409-root /sys entry (closes: #498237) thanks for report to Rod Whitby <rod@whitby.id.au>
2008-08-15auto_add_modules: Add ext4 and ext4devmaximilian attems
currently ext4 is named ext4dev, doesn't matter if it doesn't exit, just list it to be future proof for the lenny release. klibc fstype has already ext4dev support (closes: #494922)
2008-08-12MODULES=dep fix for OrionMartin Michlmayr
Thanks to Kevin Price who sent me logs from the NSLU2, I know why it works there. The difference is that on the NSLU2 USB is a PCI device whereas on my Orion machine it's not. (closes: #494027)
2008-08-12mkinitramfs: Fix usage and man outfile arg is not optional.maximilian attems
Thanks to Jens Seidel <jensseidel@users.sf.net> (closes: #493238)
2008-07-05Add udf for MODULES=mostmaximilian attems
ubuntu merge
2008-07-05Add virtio_pci for MODULES=mostmaximilian attems
ubuntu merge
2008-07-04MODULES=most add mmc host and card driversmaximilian attems
this allows OLPC root, as root on mmc cards. (closes: #483431) Thanks for initial patch to Robert Millan <rmh@aybabtu.com>. Signed-off-by: maximilian attems <maks@debian.org>
2008-05-28hook-functions: MODULES=dep fix error messagemaximilian attems
must not be a klibc bug, initramfs-tools is first suspect.
2008-05-28initramfs-tools: Fix UUID rootfs detection with 'MODULES=dep'Glennie Vignarajah
When MODULES is set to 'dep' in /etc/initramfs-tools/initramfs.conf, update-initramfs fails to detect correctly the root filesystem(device and fs used). When called, this command fails with: ---------- mkinitramfs: missing rootfs root rootfs /sys entry mkinitramfs: workaround is MODULES=most mkinitramfs: Error please report the bug update-initramfs: failed for /boot/initrd.img-2.6.25-2-amd64 ---------- So we have 3 cases here. eval "$(mount | awk '/"... returns * an UUID when the rootfs is mounted with the 'LABEL=' or 'UUID='. The UUID is a relative symbolic link located in /dev/disk/by-uuid/ pointing to the real device. * the real disk device. * /dev/root When "root=/dev/root", we have to figure out what it is, which is done in the "if" block. Also changing the matching regex in front to catch that type. Once we got the symlink to the root device, we can use 'readlink' to get the real device. Using 'readlink' on a file which is not a symlink doesn't matters(case 2).
2008-04-29Documentation typo fixes addition.maximilian attems
MODULES=list loads modules very early, when the firmware loader udev might not be there yet. thanks David Martínez Moreno <ender@tuenti.com> for report.
2008-04-10ps3: Add ps3_sys_manager to MODULES=dep ps3 modules.maximilian attems
"ps3_sys_manager handles system shutdown, so having it in initramfs allows the user to properly shutdown the system with the power button if the root file system can not be mounted at boot. Without it the user must do a forced poweroff." Geoff Levand <geoffrey.levand@am.sony.com>