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

Bug#753814: update-initramfs produce warnings about missing modules dir, when kernel is built with no modules



On Sat, 5 Jul 2014 16:01:19 +0400 dimas <dimas000@ya.ru> wrote:
> Package: initramfs-tools
> Version: 0.115
> 
> hello!
> i'm using self-built monolith kernels with no modules support, built with
> kernel-package. on every install/update that triggers update-initramfs, the
> latter starts to complain about missing /lib/modules/<version>/*
> 
> update-initramfs: Generating /boot/initrd.img-3.14.4-167.14+pf+r4
> WARNING: missing /lib/modules/3.14.4-167.14+pf+r4
> Device driver support needs thus be built-in linux image!
> depmod: ERROR: could not open directory /lib/modules/3.14.4-167.14+pf+r4: No
> such file or directory depmod: FATAL: could not search modules: No such file or
> directory depmod: WARNING: could not
> open /var/tmp/mkinitramfs_TKOtDa/lib/modules/3.14.4-167.14+pf+r4/modules.order:
> No such file or directory depmod: WARNING: could not
> open /var/tmp/mkinitramfs_TKOtDa/lib/modules/3.14.4-167.14+pf+r4/modules.builtin:
> No such file or directory
> 
> it doesn't cause any failure, though, initrd's build fine, and update doesn't
> break, but it's a bit annoying and may confuse people (especially with those
> "fatal" and "error" messages). could you please add some behaviour not to
> trigger depmod if we don't see "CONFIG_MODULES=y" in /boot/config-<version>?

Do you actually want an initramfs?  If not then you can disable
CONFIG_BLK_DEV_INITRD in the kernel config and the package's postinst
script will disable building an initramfs.

Ben.

-- 
Ben Hutchings
The two most common things in the universe are hydrogen and stupidity.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: