Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] can genkernel install files with different names?
Date: Tue, 22 Oct 2019 09:11:09
Message-Id: A76A3E0F-EC8B-42CF-A564-9634C44D2E81@stfw.net
In Reply to: Re: [gentoo-user] can genkernel install files with different names? by Mick
1 On 22 October 2019 08:58:01 BST, Mick <michaelkintzios@×××××.com> wrote:
2 >On Tuesday, 22 October 2019 00:44:00 BST Neil Bothwick wrote:
3 >> On Tue, 22 Oct 2019 00:42:25 +0100, Neil Bothwick wrote:
4 >> > make install will create symlinks for vmlinuz and vmlinuz.old to
5 >the
6 >> > latest and previous kernel, doing much of what you need. You need
7 >/boot
8 >> > to be on a filesystem that supports symlinks and ISTR that it only
9 >> > updates the symlinks if already present but doesn't create them
10 >from
11 >> > scratch.
12 >>
13 >> I think you need sys-apps/debianutils installed too.
14 >
15 >Last time I used this symlink-ing approach to vmlinuz I came across a
16 >problem,
17 >which I didn't have time to resolve and went back to my manual approach
18 >of
19 >copying kernels into /boot:
20 >
21 >I eagerly compile a new kernel. It is installed/copied into vmlinuz
22 >and its
23 >predecessor which worked fine is copied into vmlimuz.old. I try to
24 >boot it
25 >and discover I didn't configure it as carefully as I should have done -
26 >it
27 >won't boot. I boot into vmlinuz.old and reconfigure the kernel, which
28 >is now
29 >installed into vmlinuz and the recently configured and non-booting
30 >kernel is
31 >copied into vmlinuz.old. Disaster strikes as the newly reconfigured
32 >kernel
33 >won't boot either! I now have two recently configured and non-booting
34 >kernels
35 >vmlinuz and vmlinuz.old and no other working kernel to boot with.
36 >
37 >With manual copying/naming of kernels I can overwrite any non-booting
38 >kernels
39 >with the latest compiled example, without moving links around. What is
40 >the
41 >recommended solution to the above problem?
42
43 Be more careful when configuring your kernels ;}
44
45 I haven't used the symlink approach for some time. I use a script to generate the entries for GRUB or systemd-boot. As I use a script to build and install the kernel in the first place, there are no extra steps as one script calls the other.
46
47 --
48 Sent from my Android device with K-9 Mail. Please excuse my brevity.

Replies

Subject Author
Re: [gentoo-user] can genkernel install files with different names? Mick <michaelkintzios@×××××.com>