Am Sun, 04 Feb 2018 05:20:03 +0100 schrieb tuxic: > after installing linux-4.15.1 (downloaded from kernel.org) I want to > reinstall (beside others) nvidia drivers. > > Emerge told me: > | >emerge nvidia-drivers > | Calculating dependencies... done! > | >>> Jobs: 0 of 0 complete Load avg: 1.05, > 0.65, 0.34 > | >>> Auto-cleaning packages... > | > | >>> No outdated packages were found on your system. > > > That is valid for the previous installed kernel...but not for the one > > This was updated just before > Sun Feb 4 04:21:46 2018 <<< sys-apps/portage-2.3.23 > Sun Feb 4 04:21:51 2018 >>> sys-apps/portage-2.3.24 > > My make.conf has this options: > EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4 --changed-deps-report=n > --changed-deps" > > > Thanks for any help in advance!
I'm using this script to automate the process: $ cat /etc/kernel/postinst.d/70-emerge-module-rebuild #!/bin/bash exec env -i PATH=$PATH /usr/bin/emerge -1v --usepkg=n @module-rebuild (I don't know why "env -i PATH=$PATH" is needed but otherwise it won't work correctly sometimes) You could add "--changed-deps=n" there because otherwise it won't play well with using "--changed-deps" as a default. Now, when you run "make modules_install install", it will automatically rebuild kernel modules. BTW, I have another script to also install the kernel in systemd-boot which also rebuilds initramfs (dracut here): $ cat /etc/kernel/postinst.d/zz-systemd-boot #!/bin/bash /usr/bin/kernel-install remove $1 $2 /usr/bin/kernel-install add $1 $2 -- Regards, Kai Replies to list-only preferred.