Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Kernel upgrade confusion
Date: Sat, 30 Dec 2017 19:11:52
Message-Id: 8148059.ArXgNCOqcu@dell_xps
In Reply to: [gentoo-user] Kernel upgrade confusion by Jalus Bilieyich
1 Hi Jalus,
2
3 On Saturday, 30 December 2017 18:43:12 GMT Jalus Bilieyich wrote:
4 > Recently there was a kernel update and I don't want to reconfigure it
5 > from scratch. In the official documentation, it told me to move the old
6 > .config into the new kernel source tree and type
7 > make oldconfig
8 >
9 > This is where I'm confused; which .config file (/proc/config.gz or
10 > /boot/config) and where in the kernel source tree do I put this file in.
11
12 You will need to *copy* your old/existing kernel .config file to the new
13 kernel source directory.
14
15 Where you copy it from depends on where you have stored your previous kernel
16 .config file. It may be in your /boot, if you have copied it there from /usr/
17 src/linux/.config last time you compiled your kernel. It should be in /usr/
18 src/linux/ if this symlink is still pointing to your previous kernel. You may
19 be able to obtain it from your /proc/config.gz if you have configured your
20 kernel to use this option.
21
22 So, as root you would for example do:
23
24 cp /usr/src/linux-4.4.87-r1/.config /usr/src/linux/4.9.49-r1/ && \
25 rm /usr/src/linux && \
26 ln -s /usr/src/linux-4.9.49-r1 linux && \
27 cd /usr/src/linux && \
28 make oldconfig
29
30 to copy the existing .config into the new kernel sources directory,
31 to remove the symlink pointing to the previous kernel,
32 to create a new symlink to the new kernel sources directory,
33 to change your working directory into the new kernel source tree, and
34 finally to run make oldconfig in order to configure any new options available
35 in kernel 4.9.49-r1, without having to reconfigure each and every option
36 already set in your kernel 4.4.87-r1.
37
38 If you have a /proc/config.gz you can unpack it and redirect it to your new
39 kernel source directory:
40
41 zcat /proc/config.gz > /usr/src/linux-4.9.49-r1/.config
42
43 before you proceed with the last four steps I showed above.
44
45 HTH.
46 --
47 Regards,
48 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Kernel upgrade confusion Wol's lists <antlists@××××××××××××.uk>