diff options
author | Neil Williams <codehelp@debian.org> | 2016-07-17 16:54:39 +0100 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2016-07-17 16:54:39 +0100 |
commit | 6365864a7b6a4b08b4d95ef0bc8148ed1fca1bcb (patch) | |
tree | c5974c5f0b068dc47aec9864a2dade032e22a8e7 /bin | |
parent | 1e2e196ee9d07c53a039f72994ab70dd562b0a91 (diff) | |
download | vmdebootstrap-6365864a7b6a4b08b4d95ef0bc8148ed1fca1bcb.tar.gz |
Disable ext4 on wheezy
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vmdebootstrap | 8 |
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']: |