@@ -119,4 +119,4 @@ the script will remove **kernel1**, **kernel2** and **kernel3**
...
@@ -119,4 +119,4 @@ the script will remove **kernel1**, **kernel2** and **kernel3**
### ToDo
### ToDo
* The algorithm can be improved to remove intermediate kernels, avoiding that in a corner case you get `count + 1`. If count is set to 1 it won't work in any case (you can't remove the running kernel and you don't want to remove the latest), but, if count is set to a higher number the scenario is the following:
* The algorithm can be improved to remove intermediate kernels, avoiding that in a corner case you get `count + 1`. If count is set to 1 it won't work in any case (you can't remove the running kernel and you don't want to remove the latest), but, if count is set to a higher number the scenario is the following:
* Imagine you have 3 kernels installed, you have count set to 2 and you are running the older kernel, then you can remove the intermediate kernel. Right now it ends up leaving `count + 1` until reboot happens.
* Imagine you have 3 kernels installed, `count` is set to 2 and you are running the older kernel, then you can remove the intermediate kernel. Right now it ends up leaving `count + 1` until reboot happens.