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

Re: initramfs-tools: mkinitramfs could call modprobe with --use-blacklist?



Hi,

--- On Wed, 31/3/10, maximilian attems <max@stro.at> wrote:

> hello,
> 
> On Wed, 31 Mar 2010, Jayen Ashar wrote:
> 
> > 
> > I have a problem where modprobe hangs when trying to
> load the amd64_agp
> > module.  mkinitramfs calls modprobe when adding
> things to initramfs.
> > While I acknowledge that is not a bug in mkinitramfs,
> I think I should
> > be able to use the blacklist (or some equivalent
> mechanism) to prevent
> > this from happening.
> 
> why to you think that mkinitramfs loads any module?
> 
> it merely calls modprobe to list the dependings of specific
> modules
> to have them also included in initramfs.

output from pstree:
`-aptitude,6493,root
    |-{aptitude},30685
    `-dpkg,30843 --status-fd 48 --configure linux-image-2.6.32-trunk-686
        `-frontend,30844 -w /usr/share/debconf/frontend /var/lib/dpkg/info/linux-image-2.6.32-trunk-686.postinst configure 2.6.32-5
            `-linux-image-2.6,30850 /var/lib/dpkg/info/linux-image-2.6.32-trunk-686.postinst configure 2.6.32-5
                `-sh,30855 -c update-initramfs -c -t -k 2.6.32-trunk-686 >&2
                    `-update-initramf,30856 /usr/sbin/update-initramfs -c -t -k 2.6.32-trunk-686
                        `-mkinitramfs,30858 /usr/sbin/mkinitramfs -o /boot/initrd.img-2.6.32-trunk-686.new 2.6.32-trunk-686
                            `-mkinitramfs,32566 /usr/sbin/mkinitramfs -o /boot/initrd.img-2.6.32-trunk-686.new 2.6.32-trunk-686
                                |-modprobe,32567 --set-version=2.6.32-trunk-686 --ignore-install --show-depends amd64_agp
                                `-awk,32568 /^insmod/ { print $2 }

> > Until the amd64_agp bug is fixed (http://bugs.debian.org/570321), I have
> > to kill modprobe every time I upgrade my kernel, so I
> had requested this
> > wishlist item from initramfs-tools.  http://bugs.debian.org/575454 ; Max
> > told me to ask on the mailing list (I'm assuming this
> one) before
> > opening this as a wishlist item.
> > 
> > Is this a reasonable feature request?  For
> mkinitramfs to avoid hanging
> > by honouring the blacklist when adding modules to
> initramfs?
> 
> first of all the trouble concerning amd64_agp should be
> gone as it is
> no longer modular.
> 
> what i still don't get is why it should hang there, could
> you provide an
> strace of the modprobe call, thanks.

looks like it's stuck in a loop (strace attached):

open("/sys/module/amd64_agp/initstate", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7869000
read(3, "coming\n", 4096)               = 7
close(3)                                = 0
munmap(0xb7869000, 4096)                = 0
nanosleep({0, 100000000}, NULL)         = 0
open("/sys/module/amd64_agp/initstate", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7869000
read(3, "coming\n", 4096)               = 7
close(3)                                = 0
munmap(0xb7869000, 4096)                = 0
nanosleep({0, 100000000}, NULL)         = 0
open("/sys/module/amd64_agp/initstate", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7869000
read(3, "coming\n", 4096)               = 7
close(3)                                = 0
munmap(0xb7869000, 4096)                = 0
nanosleep({0, 100000000}, NULL)         = 0

Thanks,
Jayen


      

Attachment: update-initramfs.905
Description: Binary data


Reply to: