summaryrefslogtreecommitdiff
path: root/Technology/Gentoo/kernel_update.md
blob: 0aa8233b518ea121c82301732dbcc4b1384a10c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
cp /usr/src/linux/.config ~/($uname).backup

emerge gentoo-sources
eselect kernel list
eslect kernel set x

cd /usr/src/linux
doas make mrproper
cp ~/($uname).backup(oldone but not going to work...) .config

make olddefconfig
make menuconfig

x = grep -c ^processor /proc/cpuinfo

make -j x && make modules_install install

cp /boot/vmlinuz-x.x.x-gentoo /boot/efi/boot/bootx64.efi

emerge @module-rebuild # if nvida-drivers


# protocol
I have a problem when I run @world update since gentoo-sources is in my world file it update my kernel but does not compile it and it fuck up portage especially to compile nvidia

1st: delete gentoo-source from world and treat it like portage
aka: emerge -1

2nd: choose a lts kernel every update

# add build & symlink useflag ? post-hook prefered ?




# post install hook

0- must know before updating what change have been made

1- take care of symlink with useflag so every new updated of gentoo-sources point to most recent kernel
su

make mrproper ??
make olddefconf ??

make -j$(nproc) && make modules_install install


cp /boot/vmlinuz-x.x.x$(HOW TO GET IT)-gentoo /boot/efi/boot/bootx64.efi