1 |
Am Fri, 09 Feb 2018 11:39:25 +0100 schrieb Kai Krakow: |
2 |
|
3 |
> Am Sun, 04 Feb 2018 05:20:03 +0100 schrieb tuxic: |
4 |
> |
5 |
>> after installing linux-4.15.1 (downloaded from kernel.org) I want to |
6 |
>> reinstall (beside others) nvidia drivers. |
7 |
>> |
8 |
>> Emerge told me: |
9 |
>> | >emerge nvidia-drivers |
10 |
>> | Calculating dependencies... done! |
11 |
>> | >>> Jobs: 0 of 0 complete Load avg: 1.05, 0.65, 0.34 |
12 |
>> | >>> Auto-cleaning packages... |
13 |
>> | |
14 |
>> | >>> No outdated packages were found on your system. |
15 |
>> |
16 |
>> |
17 |
>> That is valid for the previous installed kernel...but not for the one |
18 |
>> |
19 |
>> This was updated just before |
20 |
>> Sun Feb 4 04:21:46 2018 <<< sys-apps/portage-2.3.23 |
21 |
>> Sun Feb 4 04:21:51 2018 >>> sys-apps/portage-2.3.24 |
22 |
>> |
23 |
>> My make.conf has this options: |
24 |
>> EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n --changed-deps" |
25 |
>> |
26 |
>> |
27 |
>> Thanks for any help in advance! |
28 |
> |
29 |
> I'm using this script to automate the process: |
30 |
> |
31 |
> $ cat /etc/kernel/postinst.d/70-emerge-module-rebuild |
32 |
> #!/bin/bash |
33 |
> exec env -i PATH=$PATH /usr/bin/emerge -1v --usepkg=n @module-rebuild |
34 |
> |
35 |
> (I don't know why "env -i PATH=$PATH" is needed but otherwise it won't |
36 |
> work correctly sometimes) |
37 |
|
38 |
After reading the rest of the thread, it is now: |
39 |
|
40 |
$ cat /etc/kernel/postinst.d/70-emerge-module-rebuild |
41 |
#!/bin/bash |
42 |
exec env -i PATH=$PATH /usr/bin/emerge -1v --usepkg=n --selective=n @module-rebuild |
43 |
|
44 |
|
45 |
> You could add "--changed-deps=n" there because otherwise it won't play |
46 |
> well with using "--changed-deps" as a default. |
47 |
> |
48 |
> Now, when you run "make modules_install install", it will automatically |
49 |
> rebuild kernel modules. |
50 |
> |
51 |
> BTW, I have another script to also install the kernel in systemd-boot |
52 |
> which also rebuilds initramfs (dracut here): |
53 |
> |
54 |
> $ cat /etc/kernel/postinst.d/zz-systemd-boot |
55 |
> #!/bin/bash |
56 |
> /usr/bin/kernel-install remove $1 $2 |
57 |
> /usr/bin/kernel-install add $1 $2 |
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
-- |
64 |
Regards, |
65 |
Kai |
66 |
|
67 |
Replies to list-only preferred. |