Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
CaesarTjalboOffline
Post subject: kernel-remover options  PostPosted: 29.08.2012, 13:53



Joined: 2010-09-13
Posts: 95
Location: Enschede
Status: Offline
I knew about this but still got bitten:
      Code:
# kernel-remover -h
kernel-remover
     -F parameter    use parameter as the graphical frontend
                     one of text | dialog | kdialog | zenity
     -f              proceed without asking, do complete cleanup
     -h              show this usage


On the command line, as root, I typed
      Code:
kernel-remover -f text
the script then proceeded to remove all the kernels save for the last one. As it's supposed to do. So, I'm fully aware that I made the mistake and I should have checked and double-checked what I did, especially as root. I clearly can't be trusted with the responsibility of administrating my own desktop. Nevertheless:

Request/suggestion: change the -f parameter to something else (for example "-force" or "-r")
 
 View user's profile Send private message  
Reply with quote Back to top
x-un-i
Post subject: RE: kernel-remover options  PostPosted: 29.08.2012, 16:15
Team Member


Joined: 2010-08-26
Posts: 170

I have replaced -F with -G

_________________
Why do strong arms fatigue themselves with frivolous dumbbells?
To dig a vineyard is worthier exercise for men.
Marcus Valerius Martialis, römischer Satiriker und Epigrammdichter

Será que o diabo perdeu a virgindade?
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject: RE: kernel-remover options  PostPosted: 29.08.2012, 18:33



Joined: 2010-09-12
Posts: 312

Status: Offline
I am not sure it is appropriate to hijack this to suggest a different option, but I think it would be very nice if when selecting kernels to be removed via an interface (ncurses or in X) it would ask for confirmation only once for the whole list ("are you sure you want to remove kernels [list of all kernels to be removed]") instead of individually for each kernel.
 
 View user's profile Send private message  
Reply with quote Back to top
CaesarTjalboOffline
Post subject: Re: RE: kernel-remover options  PostPosted: 29.08.2012, 20:04



Joined: 2010-09-13
Posts: 95
Location: Enschede
Status: Offline
      x-un-i wrote:
Great, thank you.

I wasn't sure what the way of the least impact was, I can imagine this has effects for desktop use like menu-items or shortcuts. In retrospect: the easiest fix would have been to prompt an error message when -f was given with another (known) parameter.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio