Re: Linux 4.14.36

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

 



On Wed, Apr 25, 2018 at 10:05:23PM +0200, François Valenduc wrote:
> 
> 
> Le 24/04/18 à 22:25, Theodore Y. Ts'o a écrit :
> > On Tue, Apr 24, 2018 at 08:17:23PM +0200, François Valenduc wrote:
> >> I am using gentoo and indeed, the crc32_generic  module was not included
> >> in the initramfs by default. I have added it and now I can use the
> >> 4.14.36 kernel without having to revert this commit.
> > So Gentoo doesn't automatically figure out which modules are required
> > based on module depndencies (e.g., from the modules.dep file)?
> >
> > That seems like a... bug.  If this is a problem which is widespread
> > across distributions, then we might have many more users running into
> > this when 4.17 and the latest stable kernels get rolled out.
> >
> >      	       	       	      	     	     - Ted
> I think that gentoo take into account modules dependencies. For example,
> jbd2 is included automatically in the initramfs without having to
> specifially include via the modules_load file of the genkernel package:
> 
> grep jbd2 /usr/share/genkernel/arch/x86_64/modules_load
> zsh: exit 1     grep --colour=auto jbd2
> /usr/share/genkernel/arch/x86_64/modules_load
> 
> and jbd2 is also specified as a dependency for ext4 in the modules.dep file:
> 
> grep jbd2 modules.dep                                 
> kernel/fs/ext4/ext4.ko: kernel/fs/mbcache.ko kernel/fs/jbd2/jbd2.ko
> kernel/fs/jbd2/jbd2.ko:
> 
> but the crc32_generic module is not listed as a dependency for ext4:
> 
>  grep crc32 modules.dep                                
> kernel/crypto/crc32c_generic.ko:
> kernel/drivers/md/persistent-data/dm-persistent-data.ko:
> kernel/lib/libcrc32c.ko kernel/drivers/md/dm-bufio.ko
> kernel/drivers/md/dm-mod.ko kernel/drivers/dax/dax.ko
> kernel/drivers/md/dm-thin-pool.ko:
> kernel/drivers/md/persistent-data/dm-persistent-data.ko
> kernel/lib/libcrc32c.ko kernel/drivers/md/dm-bio-prison.ko
> kernel/drivers/md/dm-bufio.ko kernel/drivers/md/dm-mod.ko
> kernel/drivers/dax/dax.ko
> kernel/lib/libcrc32c.ko:
> 
> So, would this be the cause of the problem ?

It's a dependancy of the core kernel, the random code, not ext4.  What
tool are you using for your initramfs, dracut or something else?

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]