diff options
author | Neil Williams <codehelp@debian.org> | 2016-01-04 21:17:29 +0000 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2016-01-04 21:17:29 +0000 |
commit | 94d7aff02b68d4fe08ebad977bbf6891d3a48a05 (patch) | |
tree | 967878a80968ecdfa08869aa08acf78a2fca686f /vmdebootstrap | |
parent | 296ad7a92f2608b0e7a7b0cac7fa088f5e185ef1 (diff) | |
download | vmdebootstrap-94d7aff02b68d4fe08ebad977bbf6891d3a48a05.tar.gz |
Add a squashfs script to use a standard tarball.
Diffstat (limited to 'vmdebootstrap')
-rw-r--r-- | vmdebootstrap/filesystem.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vmdebootstrap/filesystem.py b/vmdebootstrap/filesystem.py index c38534e..8a4dc2a 100644 --- a/vmdebootstrap/filesystem.py +++ b/vmdebootstrap/filesystem.py @@ -77,7 +77,7 @@ class Filesystem(Base): os.path.join(rootdir, 'usr', 'sbin', 'update-initramfs')): self.message("Error: Unable to run update-initramfs.") return - if not self.settings['no-update-initramfs']: + if 'no-update-initramfs' in self.settings or not self.settings['update-initramfs']: return cmd = os.path.join('usr', 'sbin', 'update-initramfs') if os.path.exists(os.path.join(str(rootdir), cmd)): @@ -196,7 +196,7 @@ class Filesystem(Base): exclude.write("/run\n") self.message("Running mksquashfs on rootfs.") msg = runcmd( - ['mksquashfs', self.devices['rootdir'], suffixed, + ['nice', 'mksquashfs', self.devices['rootdir'], suffixed, '-no-progress', '-comp', 'xz', '-e', exclusions], ignore_fail=False) os.unlink(exclusions) |