diff options
author | Neil Williams <codehelp@debian.org> | 2015-08-18 13:11:58 +0200 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-08-31 18:00:26 +0100 |
commit | aa0972e2c62feff98273c6a1575e148817b2fe0e (patch) | |
tree | 71a4cb25a80c57438988229ee326e9baa0139196 /vmdebootstrap/filesystem.py | |
parent | bc7ef0f9a3df88424ab594fe13a4322b408f6718 (diff) | |
download | vmdebootstrap-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.py | 5 |
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]) |