From 8b6dac15852d499bca129ae49ec83e371a1c0e6b Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Fri, 2 Jan 2015 14:14:17 +0000 Subject: [PATCH] allow setting rootfstype to support ext3 --- vmdebootstrap | 6 +++++- vmdebootstrap.8.in | 8 +++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/vmdebootstrap b/vmdebootstrap index 93935b7..967be51 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -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']: diff --git a/vmdebootstrap.8.in b/vmdebootstrap.8.in index 7108bf0..ce0ce61 100644 --- a/vmdebootstrap.8.in +++ b/vmdebootstrap.8.in @@ -27,9 +27,9 @@ vmdebootstrap \- install basic Debian system into virtual disk image [--enable-dhcp | --no-enable-dhcp] [--root-password=PASSWORD] [--customize=SCRIPT] [--hostname=HOSTNAME] [--user=USER/PASSWORD] [--serial-console | --no-serial-console] [--sudo | --no-sudo] [--owner=OWNER] -[--bootsize=BOOTSIZE] [--boottype=FSTYPE] [--foreign=PATH] [--variant=VARIANT] -[--no-extlinux] [--squash] [--configure-apt] [--grub] [--apt-mirror] -[--pkglist] +[--bootsize=BOOTSIZE] [--boottype=FSTYPE] [--roottype=FSTYPE] [--foreign=PATH] +[--variant=VARIANT] [--no-extlinux] [--squash] [--configure-apt] +[--grub] [--apt-mirror] [--pkglist] .SH DESCRIPTION .B vmdebootstrap installs a basic Debian system into a virtual disk image, @@ -189,6 +189,8 @@ If specified, create a /boot partition of the given size within the image. Debootstrapping will fail if this is too small for the selected kernel package. .IP \-\-boottype=FSTYPE Filesystem to use for the /boot partition. (default ext2) +.IP \-\-roottype=FSTYPE +Filesystem to use for the / (root) partition. (default ext4) .IP \-\-foreign=PATH Path to the binfmt_handler to enable foreign support in debootstrap. e.g. /usr/bin/qemu-arm-static - note foreign debootstraps may take a signficant -- 2.39.2