From 94d7aff02b68d4fe08ebad977bbf6891d3a48a05 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Mon, 4 Jan 2016 21:17:29 +0000 Subject: Add a squashfs script to use a standard tarball. --- vmdebootstrap/filesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vmdebootstrap') 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) -- cgit v1.2.1