Gentoo Archives: gentoo-user

From: Jack <ostroffjh@×××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Why has genkernel initramfs changed behaviour!?
Date: Wed, 17 Nov 2021 23:24:55
Message-Id: KRVCASQG.RWTNEYEY.EKTN3E45@JPATRDOS.TM63DAAI.IERXKXB2
In Reply to: [gentoo-user] Why has genkernel initramfs changed behaviour!? by Wol
1 On 2021.11.17 18:15, Wol wrote:
2 > Just filed bug 824282.
3 >
4 > In the past, I've always done "make kernel, make kernel_modules, make
5 > install, make modules_install, genkernel initramfs ...".
6 >
7 > This worked fine, and I then ran grub-mkconfig, sorted out grub.cfg,
8 > and all was well.
9 >
10 > My new setup, I have a /boot WHICH I WANT TO SORT OUT MYSELF! I got
11 > thoroughly confused because genkernel was finding /boot in fstab,
12 > mounting it by default, and sticking the initramfs there. So of
13 > course, grub-mkconfig screwed up because the kernel was in the /boot
14 > directory, but the initramfs was in the /boot partition!
15 >
16 > So I told genkernel not to mount the boot partition ...
17 >
18 > WAH WAH WAH FATAL ERROR YOU WON'T LET ME MOUNT BOOT SULK SULK SULK.
19 >
20 > If I tell it not to mount boot then that's my lookout, not for
21 > genconfig to nanny me and sulk!
22 >
23 >
24 > And it gets worse. I've always done "make modules_install, genkernel
25 > initramfs". Which now seems to be an unsupported option. genkernel is
26 > now looking in /var/tmp/genkernel/... for the modules - no surprise
27 > the modules aren't there! The error says "did you forget to compile
28 > the kernel" - no I didn't - it is compiled, the modules are
29 > installed, I just didn't use genkernel to do it.
30 >
31 > Why oh why does everything change ... for the worse ... now let's see
32 > if allowing it to mount the boot partition makes it work properly ...
33 >
34 > and allowing it to mount boot made everything work perfectly afaict
35 > ... what a mess ...
36 >
37 > Cheers,
38 > Wol
39 I have no problem telling genkernel not to mount ./boot, but then I
40 always have /boot mounted, so I suppose it might not complain only
41 because it's set up the way it wants it anyway.
42
43 I also use genkernel to compile the kernel and modules, but I do "make
44 xconfig" to set my own choice of options, and tell genkernel to skip
45 any of that configuring. I've had no problems with doing it that way.
46 if you want, I can send you a copy of my genkernel.conf. I launch it
47 with "genkernel --no-gpg --lvm --firmware --microcode
48 --kernel-append-localversion=$1 all | tee genkern.log 2>&1" so I can
49 have multiple versions of the same kernel version (usually because I
50 want to test some different setting, but don't want the original to be
51 overwritten in case the new version doesn't work or just doesn't do
52 what I want.
53
54 Jack

Replies

Subject Author
Re: [gentoo-user] Why has genkernel initramfs changed behaviour!? William Kenworthy <billk@×××××××××.au>