Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: why does purge-kernels leave the associated /lib/modules/<kernel-ver> behind?

  1. #11
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: why does purge-kernels leave the associated /lib/modules/<kernel-ver> behind?

    https://build.opensuse.org/package/v...2a0d895f14bac8

    Clicking "show latest" results in "file not found". @_@

  2. #12
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,748

    Default Re: why does purge-kernels leave the associated /lib/modules/<kernel-ver> behind?

    Here on 15.1 the oldest is purged but it seems that it leaves behind the update directory though that is also cleared thus it is probably because update is not removed that the kernel directory is not removed. It apparently only happens when the NVIDIA is used.

  3. #13
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,674

    Default Re: why does purge-kernels leave the associated /lib/modules/<kernel-ver> behind?

    Just recalling from memory, since I don't have any Nvidia installed at present, so forgive me if I'm not 100% correct.
    My understanding is that any new Nvidia module installed "the hard way" via the Nvidia .run installer is built only for the running kernel (usually the last one installed) and placed in an "update" folder;
    then symlinks are created in a "weak-update" folder for other installed kernels, and those symlinks are only used if no other (older) Nvidia module is found in a corresponding "update" folder for those older kernels.
    Those "update" or "weak-update" folders are unknown to purge-kernels or may still contain remnants of Nvidia installs, so they are not removed by purge-kernels.
    I think that those folders are removed by the .run installer when invoked with the "-uninstall" option, but I am not 100% sure.
    I don't know what happens when the Nvidia driver is installed directly from the Nvidia repo though.
    Main: Leap 15 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.3 (& others) on Core2Duo + GM965

  4. #14
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,748

    Default Re: why does purge-kernels leave the associated /lib/modules/<kernel-ver> behind?

    I Install via the repos and see only the leftover update directory.Maybe the hardway has other issues.

  5. #15
    Join Date
    Apr 2014
    Location
    "Great North Wet"
    Posts
    133

    Default Re: why does purge-kernels leave the associated /lib/modules/<kernel-ver> behind?

    Regardless of whether there is anything in updates or not the fact remains they are useless for any other kernel, e.g you can not load any of them in a new kernel, so why would the software want to leave updates behind?
    Turkey Creek Jack Johnson: Nobody move!
    Doc Holliday: Nonsense. By all means, move.

  6. #16
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,864
    Blog Entries
    14

    Default Re: why does purge-kernels leave the associated /lib/modules/<kernel-ver> behind?

    Quote Originally Posted by erbenton View Post
    Regardless of whether there is anything in updates or not the fact remains they are useless for any other kernel, e.g you can not load any of them in a new kernel, so why would the software want to leave updates behind?
    Because purge-kernels removes the package, and the non-empty folders contain files that belong to some other package, or are created by some other package. You can easily force behaviour like this for any other package. Add an empty file or folder to a folder belonging to package X, then remove package X, and you will see that the path to that empty file or folder will remain. Consider it a safety measure that removing package X cannot remove files or folders that ( might ) belong to other packages. To avoid this purge-kernels issue would have to go through all the packages and their spec files to find out where those files/folders come from, and have some routine to determine whether those can be deleted or not. Not even speaking about what it would mean for uninstalling package Y that owns those files/folders.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #17
    Join Date
    Apr 2014
    Location
    "Great North Wet"
    Posts
    133

    Default Re: why does purge-kernels leave the associated /lib/modules/<kernel-ver> behind?

    I was reviewing purge-kernels and it seems that it just calls rpm -e to remove the package, so i have filed a bug suggesting that purge-kernels be updated to go back at the end after rpm is completely done, and find any modules dir that only has updates left in it and remove it.
    Turkey Creek Jack Johnson: Nobody move!
    Doc Holliday: Nonsense. By all means, move.

  8. #18
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,864
    Blog Entries
    14

    Default Re: why does purge-kernels leave the associated /lib/modules/<kernel-ver> behind?

    Quote Originally Posted by erbenton View Post
    I was reviewing purge-kernels and it seems that it just calls rpm -e to remove the package, so i have filed a bug suggesting that purge-kernels be updated to go back at the end after rpm is completely done, and find any modules dir that only has updates left in it and remove it.
    Like said: if that folder belongs to some other package ....
    1. that package would have to be deleted too
    2. and hence will not be updated.

    To cover everything purge-kernels might have some serious performance impact. Sorry, but I can see the posts appearing here: "zypper very sloooooow when kernel-updates involved".
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •