summaryrefslogtreecommitdiff
path: root/hook-functions
AgeCommit message (Collapse)Author
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-04-10merge 0.92o from git://git.debian.org/git/kernel/initramfs-tools.gitAn-Cheng Huang
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-10-28initramfs-tools-0.92j from mirrrors.kernel.orgdebian/0.92jrbalocca
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>
2008-04-08hook-function: Add support for sunvnet and sunvdc in hook-functions.Fabio M. Di Nitto
[ Ubuntu merge of better sparc support -maks ]
2008-04-08MODULES=dep fix ps3 supportmaximilian attems
Debian never shipped the PS3PF legacy plattform, only retain the relevant upstream accepted ps3 plattform drivers.
2008-04-08hook-functions: Add atl1, cxgb3, e1000e, igb, ipg, niu, sky2 list of net ↵maximilian attems
modules added to MODULES=most the net section was missing quite a lot of the newer net driver, add them all per hand. as we can't just ship drivers/net.
2007-12-26MODULES=dep fix for new /dev/md/X naming scheme (closes: #440694).maximilian attems
Using mkinitramfs-kpkg to build the ramdisk. awk: /^md/0/{print substr($5, 1, 3); exit} awk: ^ syntax error mkinitramfs-kpkg failed to create initrd image. Failed to create initrd image. /proc/mdstat naming unchanged, thuse use same awk parsing.
2007-09-09hook-functions: protect sys_walk_modalias()maximilian attems
check that the modalias really exists, otherwise no need to add anything.
2007-09-08hook-functions: Add sys_walk_modalias() for IDEmaximilian attems
instead of searching non matching sysfs modules strings PIIX_IDE != piix, just look up the modalias. modprobe likes it too ;)
2007-09-08hook-functions: MODULES=dep fix I2O detection.maximilian attems
* missing i2o_block * force_load when !udev
2007-09-08hook-functions: don't force load rootfsmaximilian attems
fstype just detects fine the fs, even when running without udev.
2007-09-08hook-functions: reorder dep_add_modules()maximilian attems
do fstype stuff on top.
2007-09-07hook-functions: probe rootfs on auto typemaximilian attems
fix dep_add_modules(), as bonus check rootfs output so that eventual unkown rootfs get reported.
2007-08-23hook-functions: Add the new firewire modules.maximilian attems
2007-08-16hook-functions factor out sys_walk_mod_add()maximilian attems
add it as a function of it's own