]> git.siccegge.de Git - forks/vmdebootstrap.git/blobdiff - vmdebootstrap
allow setting rootfstype to support ext3
[forks/vmdebootstrap.git] / vmdebootstrap
index 93935b71ad178a6a74b4c09bec5c03fbeb4bc84a..967be518d7353ea4733e08339a8da05e55639f0c 100755 (executable)
@@ -70,6 +70,10 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
             ['part-type'],
             '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)')
@@ -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']: