diff options
author | Neil Williams <codehelp@debian.org> | 2015-12-20 11:13:38 +0000 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-12-20 11:13:38 +0000 |
commit | 448938d97d6fd6fcb8c964a2b0e4845b3c7b88e4 (patch) | |
tree | 06fdd417cf48bc63240b54577c2007505ebe5790 /vmdebootstrap | |
parent | 0dfb97b1d88509244d3844ca5a693c8141d55bd8 (diff) | |
download | vmdebootstrap-448938d97d6fd6fcb8c964a2b0e4845b3c7b88e4.tar.gz |
Allow to skip the call to update-initramfs
Diffstat (limited to 'vmdebootstrap')
-rw-r--r-- | vmdebootstrap/filesystem.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vmdebootstrap/filesystem.py b/vmdebootstrap/filesystem.py index fc3c8ee..484371b 100644 --- a/vmdebootstrap/filesystem.py +++ b/vmdebootstrap/filesystem.py @@ -70,6 +70,8 @@ class Filesystem(Base): runcmd(["chown", "-R", self.settings["owner"], filename]) def update_initramfs(self): + if not self.settings['no-update-initramfs']: + return rootdir = self.devices['rootdir'] if not rootdir: raise cliapp.AppException("rootdir not set") |