[gentoo-user] Re: Forced rebuild of a package...how?
Am Fri, 09 Feb 2018 11:39:25 +0100 schrieb Kai Krakow: > 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) After reading the rest of the thread, it is now: $ cat /etc/kernel/postinst.d/70-emerge-module-rebuild #!/bin/bash exec env -i PATH=$PATH /usr/bin/emerge -1v --usepkg=n --selective=n @module-rebuild > 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.
[gentoo-user] Re: Forced rebuild of a package...how?
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.
Re: [gentoo-user] Re: Forced rebuild of a package...how?
On 02/05 01:39, Nikos Chantziaras wrote: > On 04/02/18 06:20, tu...@posteo.de wrote: > > Hi, > > > > after installing linux-4.15.1 (downloaded from kernel.org) I want to > > reinstall (beside others) nvidia drivers. > > > > Emerge told me: > > |>emerge nvidia-drivers > > As a side-note, I recommend using this instead: > > emerge @module-rebuild > > which will rebuild all external modules, so you don't have to remember or > know which packages install external kernel modules. > > Hi Nikos, thank you! :) Cheers! Meino
[gentoo-user] Re: Forced rebuild of a package...how?
On 04/02/18 06:20, tu...@posteo.de wrote: Hi, after installing linux-4.15.1 (downloaded from kernel.org) I want to reinstall (beside others) nvidia drivers. Emerge told me: |>emerge nvidia-drivers As a side-note, I recommend using this instead: emerge @module-rebuild which will rebuild all external modules, so you don't have to remember or know which packages install external kernel modules.