Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] rebuilt kernel - now doesn't shutdown
Date: Wed, 11 Dec 2019 22:01:50
Message-Id: eff1ae4e-655e-cce9-0447-443ad8a18fcc@web.de
In Reply to: Re: [gentoo-user] rebuilt kernel - now doesn't shutdown by Neil Bothwick
1 On 12/11/19 17:47, Neil Bothwick wrote:
2 > On Wed, 11 Dec 2019 14:55:48 +0100, n952162 wrote:
3 >
4 >> I've made a new recognition about this issue.   If I move
5 >> /lib/modules/4.19.72-gentoo to a saved/ subdirectory, and otherwise have
6 >> NO modules directory, I don't have this problem. When I move the modules
7 >> directory back into place, the problem returns.
8 >>
9 >> I'm not understanding how the system can run without a modules
10 >> directory.
11 > As long as everything your system *needs* to run is built into the
12 > kernel, this will work, but things will fail when modules are needed.
13 >
14 >> As an example, I looked at a module that was easy to spell, fuse.ko, ;-)
15 >> and looked where else on the system it exists, and found a copy in
16 >> /usr/src.  The files have the same file(1) response (both non-stripped,
17 >> with the same build id), but different lengths.  I didn't see anything
18 >> in /var/log like, "falling back to /usr/src/..."
19 > When you run make in /usr/src/linux, the modules are built there. When
20 > you run "make modules_install", they are copied to /lib/modules/version/
21 > The kernel only look in /lib/modules/version
22 >
23 >> When the modules directory is present (/lib/modules/4.19.72-gentoo/), I
24 >> have a lot more problems than just the power problem.  For example, X
25 >> comes up but eventually locks up.  With NO modules subdirectory, X works
26 >> okay.
27 > So you have a misbehaving module, or faulty hardware that uses a module.
28 > All you need to do now is work out which one it is ;-)
29 >
30 >
31
32 Okay, I guess I understand now ...
33
34 # mount | grep /dev/sda
35 ...
36 /dev/sda3 on /tmp type *ext4* (rw,relatime)
37
38
39 # lsmod | grep ext4
40 *ext4*                  720896  4
41
42
43 # gzip -cd < /proc/config.gz | grep -i ext4
44 CONFIG_EXT4_FS=*m*
45 ...
46
47
48 # xz -dc < /boot/*initramfs*-genkernel-x86_64-4.19.72-gentoo | cpio -ivt
49 |  grep -i ext4
50 ...
51 -rw-r--r--   1 root     root      1392337 Dec 10 20:58
52 lib/modules/4.19.72-gentoo/kernel/fs/ext4/*ext4.ko*
53 ...

Replies

Subject Author
Re: [gentoo-user] rebuilt kernel - now doesn't shutdown n952162 <n952162@×××.de>