From 6868425f2674bc1443cb75bbb78991908d58646c Mon Sep 17 00:00:00 2001 From: Lukas Prokop Date: Wed, 25 Feb 2015 11:18:58 +0100 Subject: [PATCH] Disable usage of --copy-only and --grub at the same time --- grml2usb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grml2usb b/grml2usb index e324954..e608ac1 100755 --- 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""" -- 2.1.4