summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/vmdebootstrap5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap
index 9754451..addf072 100755
--- a/bin/vmdebootstrap
+++ b/bin/vmdebootstrap
@@ -216,10 +216,11 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
oldstable = distro.was_oldstable(datetime.date(2015, 4, 26))
uefi.check_settings(oldstable=oldstable)
+ if self.settings['dry-run']:
+ sys.exit(0)
+ self.start_ops()
if os.geteuid() != 0:
sys.exit("You need to have root privileges to run this script.")
- if not self.settings['dry-run']:
- self.start_ops()
def _image_preparations(self):
uefi = self.handlers[Uefi.name]