projects
/
grml2usb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
371c60e
)
Disable usage of --copy-only and --grub at the same time
author
Lukas Prokop
<admin@lukas-prokop.at>
Wed, 25 Feb 2015 10:18:58 +0000
(11:18 +0100)
committer
Michael Prokop
<mika@grml.org>
Wed, 25 Feb 2015 14:56:50 +0000
(15:56 +0100)
grml2usb
patch
|
blob
|
history
diff --git
a/grml2usb
b/grml2usb
index
e324954
..
e608ac1
100755
(executable)
--- a/
grml2usb
+++ b/
grml2usb
@@
-1736,6
+1736,9
@@
def check_options(opts):
if opts.grubmbr and not opts.grub:
raise CriticalException("--grub-mbr requires --grub option.")
+ if opts.copyonly and opts.grub:
+ raise CriticalException("Cannot use --copy-only and --grub at the same time.")
+
def check_programs():
"""check if all needed programs are installed"""