Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upkernel-qubes-vm uninstall scripts problems #849
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by marmarek on 12 May 2014 15:40 UTC |
marmarek
added this to the Release 2 milestone
Mar 8, 2015
marmarek
added
bug
C: kernel
P: major
labels
Mar 8, 2015
marmarek
self-assigned this
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by marmarek on 12 May 2014 19:29 UTC
http://git.qubes-os.org/?p=marmarek/linux-kernel.git;a=commit;h=590e9b48b8955ef2c0c2603133c2e68a7af7a108
Note that this will work only for newly built packages.
But in addition implemented more thorough check for kernel setter (verifies no only directory name, but also its content):
http://git.qubes-os.org/?p=marmarek/core-admin.git;a=commit;h=86bae8d27634266a38b0e6e0600b5b3926c3120b
|
Comment by marmarek on 12 May 2014 19:29 UTC |
marmarek commentedMar 8, 2015
Reported by joanna on 7 May 2014 10:11 UTC
qvm-prefs shows available kernels based only on the existence of a directory, even if it's empty:
It seems to me like a problem with qubes-kernel-vm RPM deinstallation script, i.e. it should also be removing this directory, not only its contest.
Ah, there is a bigger problem: when the user removes qubes-kernel-vm (perhaps unintentionally, as a result of reaching the limit of max 3 kernel packages, see #848) the package will successfully remove itself even if there are VMs which explicitly use this kernel!
Migrated-From: https://wiki.qubes-os.org/ticket/849