summaryrefslogtreecommitdiff
path: root/vmdebootstrap
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-01-02 14:14:17 +0000
committerNeil Williams <codehelp@debian.org>2015-01-02 14:30:57 +0000
commit8b6dac15852d499bca129ae49ec83e371a1c0e6b (patch)
tree518323f939b3e3f1c61716d00774c140dade5fa2 /vmdebootstrap
parent5df7b79ff1e41dbf8ef491d1de25201d0a2e2525 (diff)
downloadvmdebootstrap-8b6dac15852d499bca129ae49ec83e371a1c0e6b.tar.gz
allow setting rootfstype to support ext3
Diffstat (limited to 'vmdebootstrap')
-rwxr-xr-xvmdebootstrap6
1 files changed, 5 insertions, 1 deletions
diff --git a/vmdebootstrap b/vmdebootstrap
index 93935b7..967be51 100755
--- a/vmdebootstrap
+++ b/vmdebootstrap
@@ -71,6 +71,10 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
'Partition type to use for this image',
default='msdos')
self.settings.string(
+ ['roottype'],
+ 'specify file system type for /',
+ default='ext4')
+ self.settings.string(
['foreign'],
'set up foreign debootstrap environment using provided program (ie binfmt handler)')
self.settings.string(
@@ -181,7 +185,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
rootdir = None
try:
rootdev = None
- roottype = 'ext4'
+ roottype = self.settings['roottype']
bootdev = None
boottype = None
if self.settings['image']: