summaryrefslogtreecommitdiff
path: root/vmdebootstrap/filesystem.py
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-08-18 13:11:58 +0200
committerNeil Williams <codehelp@debian.org>2015-08-31 18:00:26 +0100
commitaa0972e2c62feff98273c6a1575e148817b2fe0e (patch)
tree71a4cb25a80c57438988229ee326e9baa0139196 /vmdebootstrap/filesystem.py
parentbc7ef0f9a3df88424ab594fe13a4322b408f6718 (diff)
downloadvmdebootstrap-aa0972e2c62feff98273c6a1575e148817b2fe0e.tar.gz
Add examples for UEFI hook.
Document task package usage in the README
Diffstat (limited to 'vmdebootstrap/filesystem.py')
-rw-r--r--vmdebootstrap/filesystem.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/vmdebootstrap/filesystem.py b/vmdebootstrap/filesystem.py
index ccc95a4..796f7d8 100644
--- a/vmdebootstrap/filesystem.py
+++ b/vmdebootstrap/filesystem.py
@@ -291,3 +291,8 @@ class Filesystem(Base):
fhosts.write('%s\n' % line)
except IOError:
pass
+
+ def make_rootfs_part(self, extent):
+ bootsize = self.settings['esp-size'] / (1024 * 1024) + 1
+ runcmd(['parted', '-s', self.settings['image'],
+ 'mkpart', 'primary', str(bootsize), extent])