summaryrefslogtreecommitdiff
path: root/vmdebootstrap/filesystem.py
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-12-31 13:05:19 +0000
committerNeil Williams <codehelp@debian.org>2015-12-31 13:05:19 +0000
commitd564ff00d5a7dd7413eaafb026a8df8838e50536 (patch)
tree3c14b8f4152b9deabe14d453218c87d00d0ad7a2 /vmdebootstrap/filesystem.py
parent78f8e6657ba4fef04919dad889257d7f341c035b (diff)
downloadvmdebootstrap-d564ff00d5a7dd7413eaafb026a8df8838e50536.tar.gz
Fixup pylint issues
Diffstat (limited to 'vmdebootstrap/filesystem.py')
-rw-r--r--vmdebootstrap/filesystem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmdebootstrap/filesystem.py b/vmdebootstrap/filesystem.py
index ad7575c..c38534e 100644
--- a/vmdebootstrap/filesystem.py
+++ b/vmdebootstrap/filesystem.py
@@ -70,6 +70,7 @@ class Filesystem(Base):
runcmd(["chown", "-R", self.settings["owner"], filename])
def update_initramfs(self):
+ rootdir = self.devices['rootdir']
if not rootdir:
raise cliapp.AppException("rootdir not set")
if not os.path.exists(
@@ -78,7 +79,6 @@ class Filesystem(Base):
return
if not self.settings['no-update-initramfs']:
return
- rootdir = self.devices['rootdir']
cmd = os.path.join('usr', 'sbin', 'update-initramfs')
if os.path.exists(os.path.join(str(rootdir), cmd)):
self.message("Updating the initramfs")
@@ -299,4 +299,4 @@ class Filesystem(Base):
tmpname = self.settings['image'] + '.raw'
os.rename(self.settings['image'], tmpname)
runcmd(['qemu-img', 'convert', '-O', 'qcow2',
- tmpname, self.settings['image']])
+ tmpname, self.settings['image']])