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