1 |
On 2/1/22 13:44, Dale wrote: |
2 |
> Dale wrote: |
3 |
>> Neil Bothwick wrote: |
4 |
>>> On Sat, 1 Jan 2022 15:44:51 +0000, Wols Lists wrote: |
5 |
>>> |
6 |
>>>>> Compiling the kernel and modules? Replace 1 with |
7 |
>>>>> |
8 |
>>>>> make all modules_install install |
9 |
>>>>> |
10 |
>>>>> There's also the matter of the initramfs, one of the main reasons |
11 |
>>>>> people use genkernel, although I prefer dracut for this. |
12 |
>>>>> |
13 |
>>>>> |
14 |
>>>> until you trip over genkernel's "features" ... like AUTOMOUNT_BOOT, |
15 |
>>>> which doesn't work, by design. Or NO_INSTALL, which does rather more |
16 |
>>>> than just not installing ... |
17 |
>>>> |
18 |
>>>> I'm investigating source_mage, and ought to investigate dracut. |
19 |
>>> Once you have a working kernel, there's very little to do on updates. A |
20 |
>>> script that runs |
21 |
>>> |
22 |
>>> cd /usr/src/linux |
23 |
>>> zcate /proc/config.gz >.config |
24 |
>>> make oldconfig |
25 |
>>> make all modules_install install |
26 |
>>> dracut --kver=$(cat include/config/kernel.release) --xz |
27 |
>>> update the bootloader |
28 |
>>> |
29 |
>>> mostly does it all, with a few frills thrown in to cover things like |
30 |
>>> rebuilding modules. |
31 |
>>> |
32 |
>>> |
33 |
>> Can you explain this part a bit? How it knows what version for example |
34 |
>> to build against? Does it follow the link in /usr/src/linux, eselect |
35 |
>> info or something else? |
36 |
>> |
37 |
>> |
38 |
>>> dracut --kver=$(cat include/config/kernel.release) --xz |
39 |
>> The one thing that stumps me is figuring out how to tell dracut what |
40 |
>> version I want built. I keep 2, 3 and sometimes 4 kernels of different |
41 |
>> versions lurking about in /boot. |
42 |
>> |
43 |
>> Thanks. |
44 |
>> |
45 |
>> Dale |
46 |
>> |
47 |
>> :-) :-) |
48 |
> |
49 |
> I got it figured out. That's a little like cheating. LOL |
50 |
> |
51 |
> Dale |
52 |
> |
53 |
> :-) :-) |
54 |
rattus ~ # (cd /usr/src/linux && make kernelversion) |
55 |
5.10.76-gentoo-r1 |
56 |
rattus ~ # |