Bug#384043: marked as done (initramfs-tools: hook manual_add_modules don't copy/link some kernel modules)
Your message dated Wed, 18 Oct 2006 08:17:23 -0700
with message-id <E1GaDAZ-0005KA-8b@spohr.debian.org>
and subject line Bug#384043: fixed in initramfs-tools 0.84
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: initramfs-tools: hook manual_add_modules don't copy/link some kernel modules
- From: "Mario Izquierdo \(mariodebian\)" <mariodebian@gmail.com>
- Date: Mon, 21 Aug 2006 16:37:44 +0200
- Message-id: <20060821143744.4914.22137.reportbug@localhost.localdomain>
Package: initramfs-tools
Version: 0.75
Severity: important
I'm working on a small thin client project based on initramfs called TCOS[1].
This is similar to pxes, but I copy my debian installed apps and libs
into initramfs and boot from network throught tftp.
In older version of initramfs-tools sound work ok, but in newer not.
Not know when sound break.
Tcos have a dir in /etc like this:
/etc/tcos
|-- hooks
| |-- tcosbin
| `-- tcosmods
|-- hooks-addons
| |-- debug
| |-- devices
| |-- dhclient
| |-- discover
| |-- freenx
| |-- hwclock
| |-- inetd
| |-- italc
| |-- sound
| |-- ssh
| |-- tcos
| |-- tcosmonitor
| |-- tinylogin
| |-- vnc
| |-- web_browser
| `-- xorg
|-- initramfs.conf
|-- scripts
| |-- tcos
| |-- tcos-bottom
| | |-- 05inittcos
| | |-- 10initsound
| | |-- 20devices
| | |-- 25freespace
| | |-- 30startx
| | `-- 50error
| |-- tcos-premount
| | |-- 05network
| | |-- 10fstab
| | |-- 15uselocal
| | |-- 20swapon
| | |-- 25download_settings
| | |-- 30sqmount
| | |-- 50ldconfig
| | `-- 60autofs
| `-- tcos-top
| `-- 10foo
There are some file not listed....
I create initramfs images with:
mkinitramfs -d /etc/tcos -o /tftpboot/tcos/initramfs 2.6.16-1-486
mkinitramfs work ok and generate initramfs that boot ok but without sound.
The important hook is tcosmods that copy some kernel modules into
initramfs with manual_add_modules:
A simple hook like next will copy this modules into initramfs:
################## 8< #######################
MODULES="ide-core ide-disk ide-generic ide-cd cdrom isofs ext3 vfat
floppy autofs autofs4 ehci-hcd ohci-hcd uhci-hcd sl811-hcd usbcore
usb-storage scsi_mod sr_mod sd_mod loop unionfs squashfs nls_cp437
nls_iso8859-1 pcnet32 3c59x video psmouse mousedev evbug evdev agpgart
vgastate lkkbd xtkbd pcspkr soundcore snd-seq-device snd-pcm snd-rawmidi
snd snd-hwdep snd-mixer-oss snd-pcm-oss snd-ac97-codec snd-ens1371 snd-via82xx
piix via82cxxx parport_pc"
for x in ${MODULES} ; do
echo "Adding module ${x}"
manual_add_modules ${x}
done
################## >8 #######################
But, if I check later, next file/modules are not into initramfs:
snd-pcm.ko
snd.ko
snd-ens1371.ko
snd-via82xx.ko
If I debug manual_add_modules i obtain for example with snd-via82xx:
+ set -x
+ manual_add_modules snd-via82xx
++ modprobe --set-version=2.6.16-1-486 --show-depends snd-via82xx
++ awk '/^insmod/ { print $2 }'
+ for mam_x in '$(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/soundcore.ko ']'
+ continue
+ for mam_x in '$(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/core/seq/snd-seq-device.ko ']'
+ continue
+ for mam_x in '$(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/core/snd-rawmidi.ko ']'
+ continue
+ for mam_x in '$(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko ']'
++ dirname /lib/modules/2.6.16-1-486/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko
+ mkdir -p /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/drivers/mpu401
++ dirname /lib/modules/2.6.16-1-486/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko
+ ln -s /lib/modules/2.6.16-1-486/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/drivers/mpu401
+ '[' -n n -a n = y ']'
+ for mam_x in '$(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/core/snd-page-alloc.ko ']'
+ continue
+ for mam_x in '$(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/core/snd-timer.ko ']'
+ continue
+ for mam_x in '$(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/pci/ac97/snd-ac97-bus.ko ']'
+ continue
+ for mam_x in '$(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/sound/pci/ac97/snd-ac97-codec.ko ']'
+ continue
+ for mam_x in '$(modprobe --set-version="${version}" --show-depends "${1}" 2>/dev/null | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e /tmp/mkinitramfs_t31173//lib/modules/2.6.16-1-486/kernel/drivers/input/gameport/gameport.ko ']'
+ continue
+ set +x
As you can see via-82xx.ko is not processed and linked....
I have uploaded code into mentors:
deb-src http://mentors.debian.net/debian unstable main
$ apt-get source initramfs-tools-tcos
[1] http://soleup.eup.uva.es/mediawiki/index.php/Tcos (now server is down)
No other important info...
Thanks for attention.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Versions of packages initramfs-tools depends on:
ii busybox 1:1.1.3-2 Tiny utilities for small and embed
ii cpio 2.6-17 GNU cpio -- a program to manage ar
ii klibc-utils 1.4.19-2 small statically-linked utilities
ii module-init-tools 3.2.2-3 tools for managing Linux kernel mo
ii udev 0.097-2 /dev/ and hotplug management daemo
initramfs-tools recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.84
We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:
initramfs-tools_0.84.dsc
to pool/main/i/initramfs-tools/initramfs-tools_0.84.dsc
initramfs-tools_0.84.tar.gz
to pool/main/i/initramfs-tools/initramfs-tools_0.84.tar.gz
initramfs-tools_0.84_all.deb
to pool/main/i/initramfs-tools/initramfs-tools_0.84_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 384043@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
maximilian attems <maks@sternwelten.at> (supplier of updated initramfs-tools package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Wed, 18 Oct 2006 11:04:50 +0200
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.84
Distribution: unstable
Urgency: high
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@sternwelten.at>
Description:
initramfs-tools - tools for generating an initramfs
Closes: 380004 384043 393543 393688 393773
Changes:
initramfs-tools (0.84) unstable; urgency=high
.
Release "A-t-on pris à Saint-Périne, Tous ces dictateurs impotents ?"
.
* hook-functions: Use modprobe --ignore-install arg to put all listed
modules on initramfs. Thanks Mario Izquierdo <mariodebian@gmail.com>
for report. (closes: 384043)
.
* update-initramfs: If elilo is around run it on initramfs update, add
zipl run.
.
* scripts/local: Use vol_id too if around to set FSTYPE. Thanks for the
patch to "Alex Owen" <r.alex.owen@gmail.com> (closes: 380004)
.
* hooks/thermal: Add many of the windfarm modules for powerpc boxes.
.
* initramfs-tools.preinst: merge bits of 0.69ubuntu16. (closes: 393773)
urgency high as fixes upgrade from sarge - thanks Federico Grau
<donfede@casagrau.org>.
.
* scripts/init-top/framebuffer: Fix mknod call. (closes: 393543)
Thanks for the patch Kiro Zimmer <debian@kironet.de>.
.
* mkinitramfs: Create modulesdir even on monolithic linux. (closes: 393688)
Thanks for the patch Ian Campbell <ijc@hellion.org.uk>.
Files:
8f0c45b875862fe5023efeb9d7aefc2b 623 utils optional initramfs-tools_0.84.dsc
53887142b54882923678548bf3b6db84 53697 utils optional initramfs-tools_0.84.tar.gz
4526582fc5bb419347e7631eec701514 60354 utils optional initramfs-tools_0.84_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFNkLQ6n7So0GVSSARAvIkAJ0Y/vRBpK7a+2JYNADpFpgH7J8kWwCgjE6r
gDj4u2IBZapXKoqA9eG7bTU=
=kPzR
-----END PGP SIGNATURE-----
--- End Message ---
Reply to: