From 6db0f50a080f56369f93f7a1604ff754d838be73 Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Fri, 24 Oct 2008 14:48:03 +0200 Subject: Grub Plguin: Having an option --recover is more intuitive for the user that does not know how grub works. --- plugins/grub/grubUtils.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/grub/grubUtils.py b/plugins/grub/grubUtils.py index 61be4c5..1959719 100644 --- a/plugins/grub/grubUtils.py +++ b/plugins/grub/grubUtils.py @@ -357,6 +357,9 @@ def get_grub_opts(args): --install-auto : This will try to avoid overwriting other bootloaders. + --recover=dev1,dev2 : Same as --install-to, just more intuitive for the + user that does not know how grub works. + We will return a object with all de relative information. """ @@ -382,20 +385,20 @@ def get_grub_opts(args): for (opt, val) in opts: if opt == "--install-all" and len(retval.install_to) == 0: - if len(retval.install_to) == 0 + if len(retval.install_to) == 0: retval.install_all = True retval.install_auto = False - if opt == "--install-to": + if opt in ( "--install-to", "--recover"): retval.install_to = val.split(',') retval.install_all = False retval.install_auto = False if opt == "--install-auto": - if len(retval.args.install_to) == 0 and \ - not retval.args.install_all: - retval.args.install_auto = True + if len(retval.install_to) == 0 and \ + not retval.install_all: + retval.install_auto = True return retval -- cgit