diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-10-24 14:48:03 +0200 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-10-24 15:03:01 +0200 |
commit | 6db0f50a080f56369f93f7a1604ff754d838be73 (patch) | |
tree | c4183862fe5eccc4ed2687a8e279d307aff8a6cb | |
parent | a95b29a2b7483ece441409f606e892c8d3712037 (diff) | |
download | firstaidkit-6db0f50a080f56369f93f7a1604ff754d838be73.tar.gz firstaidkit-6db0f50a080f56369f93f7a1604ff754d838be73.tar.xz firstaidkit-6db0f50a080f56369f93f7a1604ff754d838be73.zip |
Grub Plguin:
Having an option --recover is more intuitive for the user that does not
know how grub works.
-rw-r--r-- | plugins/grub/grubUtils.py | 13 |
1 files 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 |