Merge pull request #317 from CanonicalLtd/mwhudson/no-resize-rootfs

prevent cloud-init from resizing the rootfs into any space
This commit is contained in:
Michael Hudson-Doyle 2018-04-17 15:06:38 +12:00 committed by GitHub
commit 3c49ecae9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -69,11 +69,14 @@ class SubiquityModel:
}
if user.ssh_import_id is not None:
user_info['ssh_import_id'] = [user.ssh_import_id]
# XXX this should set up the locale too.
config = {
'users': [user_info],
'growpart': {
'mode': 'off',
},
'hostname': self.identity.hostname,
'locale': self.locale.selected_language + '.UTF-8',
'resize_rootfs': False,
'users': [user_info],
}
config.update(self.installpath.render_cloudinit())
return config