summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2016-07-17 16:54:39 +0100
committerNeil Williams <codehelp@debian.org>2016-07-17 16:54:39 +0100
commit6365864a7b6a4b08b4d95ef0bc8148ed1fca1bcb (patch)
treec5974c5f0b068dc47aec9864a2dade032e22a8e7 /bin
parent1e2e196ee9d07c53a039f72994ab70dd562b0a91 (diff)
downloadvmdebootstrap-6365864a7b6a4b08b4d95ef0bc8148ed1fca1bcb.tar.gz
Disable ext4 on wheezy
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vmdebootstrap8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap
index 38d647c..97666d8 100755
--- a/bin/vmdebootstrap
+++ b/bin/vmdebootstrap
@@ -181,6 +181,12 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
raise cliapp.AppException(
'Disabling systemd-networkd for jessie and later '
'requires updating the initramfs.')
+ else:
+ if self.settings['roottype'] == 'ext4':
+ raise cliapp.AppException(
+ 'Wheezy images using ext4 will not be able to boot. '
+ 'Please use --roottype ext2 or --roottype ext3'
+ )
if self.settings['roottype'] == 'btrfs' and\
self.settings['extlinux'] and not self.settings['grub']:
@@ -233,7 +239,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
if self.settings['bootflag']:
base.message("Setting '%s' flag on first partition." % self.settings['bootflag'])
runcmd(['parted', '-s', self.settings['image'],
- 'set', '1', self.settings['bootflag'], 'on'])
+ 'set', '1', self.settings['bootflag'], 'on'])
def _image_operations(self, rootdir, rootdev):
if not self.settings['image']: