Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Why has genkernel initramfs changed behaviour!?
Date: Thu, 18 Nov 2021 08:12:53
Message-Id: 11872233.O9o76ZdvQC@iris
In Reply to: [gentoo-user] Why has genkernel initramfs changed behaviour!? by Wol
1 On Thursday, November 18, 2021 12:15:30 AM CET 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, and
8 > 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 course,
13 > grub-mkconfig screwed up because the kernel was in the /boot directory,
14 > 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 genconfig
21 > 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 the
27 > modules aren't there! The error says "did you forget to compile the
28 > kernel" - no I didn't - it is compiled, the modules are installed, I
29 > just didn't use genkernel to do it.
30 >
31 > Why oh why does everything change ... for the worse ... now let's see if
32 > 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 I've never been happy with genkernel and roll my own using a config-file that's
38 configured directly into the kernel.
39 All it needs to do is enable LVM, mount the partitions and then continue with
40 booting. On my laptop, it also decrypts the partition that contains LVM. All
41 very simple and easy.
42
43 For this reason, I'm also not happy with the mandatory dependency on "sys-
44 kernel/installkernel-gentoo"
45
46 --
47 Joost

Replies

Subject Author
Re: [gentoo-user] Why has genkernel initramfs changed behaviour!? Neil Bothwick <neil@××××××××××.uk>