1 |
On Fri, Jan 3, 2020 at 5:57 AM Dale <rdalek1967@×××××.com> wrote: |
2 |
> |
3 |
> Can you post a ls -al /boot for both kernels and images? That way I can |
4 |
> see how it names them when doing it your way. If I can make sense of |
5 |
> it, I may try doing it that way. Thing is, it'll change eventually |
6 |
> too. lol |
7 |
|
8 |
I use the standard kernel names: |
9 |
|
10 |
config-4.19.92 |
11 |
initramfs-4.19.92.img |
12 |
System.map-4.19.92 |
13 |
vmlinuz-4.19.92 |
14 |
/lib/modules/4.19.92 |
15 |
|
16 |
I create the initramfs using: |
17 |
dracut "" 4.19.92 |
18 |
|
19 |
Dracut is going to need the path to the modules more than anything |
20 |
else, so I suspect it will work if you substitute 4.19.92 with |
21 |
whatever the path of your modules directory is, within /lib/modules. |
22 |
|
23 |
Also, could you actually post the command lines you're using? You |
24 |
posted 4 fairly long emails elaborating on how everything isn't |
25 |
working right, and I don't think you actually posted a single dracut |
26 |
command line. When something isn't working right it is usually best |
27 |
to start with what you're actually doing, along with what is happening |
28 |
and what you expected to happen. You mainly covered the last bit of |
29 |
those three but left out most of the first two. |
30 |
|
31 |
I actually use a script to do my kernel updates - this is intended |
32 |
mainly for bumps and isn't entirely suitable when I need to change |
33 |
things, in which case I usually just build manually following the same |
34 |
steps: |
35 |
#!/bin/bash |
36 |
cd /usr/src/linux || exit |
37 |
git pull || exit |
38 |
rm -rf /var/tmp/linux || exit |
39 |
export KBUILD_OUTPUT=/var/tmp/linux |
40 |
make O=/var/tmp/linux oldconfig || exit |
41 |
nice -n20 make O=/var/tmp/linux -j12 -l20 || exit |
42 |
make O=/var/tmp/linux modules_install || exit |
43 |
make O=/var/tmp/linux install || exit |
44 |
emerge @module-rebuild || exit |
45 |
NEWVER=$(make --no-print-directory kernelversion) || exit |
46 |
dracut "" $NEWVER || exit |
47 |
grub-mkconfig -o /boot/grub/grub.cfg |
48 |
|
49 |
(This does all the building in /var/tmp and leaves me with a clean |
50 |
kernel source directory. That is actually the upstream-recommended |
51 |
way but it does create the issue that if any package that builds |
52 |
kernel modules gets updated it will fail. I usually just delay |
53 |
updating these packages until I do my next kernel update, but I can |
54 |
just run this script again to re-create /var/tmp/linux with the |
55 |
necessary files to build further modules. Note that you need a few GB |
56 |
in /var/tmp for this to work, and this script doesn't clean up - I |
57 |
usually want that directory left for any module updating, and it gets |
58 |
cleared on reboot anyway which usually follows a kernel update. This |
59 |
works great on tmpfs if you have the space. |
60 |
|
61 |
Note also that I'm using upstream stable vanilla sources - I checkout |
62 |
a longterm branch which is what is getting pulled at the start. This |
63 |
should work with gentoo sources as well if you just tweak the start. |
64 |
I like to maintain more control over what kernel I'm following as I |
65 |
tend to use out-of-tree modules like zfs, or experimental ones like |
66 |
btrfs, or newer CPUs like Ryzen - for one reason or another just |
67 |
following random stable releases is problematic.) |
68 |
|
69 |
-- |
70 |
Rich |