Add the possibility to create an unprivileged container at creation time in the GUI.

The setting is afterwards displayed as a read only option in the option time
This commit is contained in:
Emmanuel Kasper 2016-11-30 15:19:38 +01:00 committed by Dietmar Maurer
parent 3a84e2b425
commit a97bc80075
2 changed files with 12 additions and 1 deletions

View File

@ -207,6 +207,12 @@ Ext.define('PVE.lxc.CreateWizard', {
fieldLabel: gettext('Hostname'),
skipEmptyText: true,
allowBlank: true
},
{
xtype: 'pvecheckbox',
name: 'unprivileged',
value: '',
fieldLabel: gettext('Unprivileged container')
}
],
column2: column2,

View File

@ -135,7 +135,12 @@ Ext.define('PVE.lxc.Options', {
fieldLabel: gettext('Enabled')
}
} : undefined
}
},
unprivileged: {
header: gettext('Unprivileged container'),
renderer: PVE.Utils.format_boolean,
defaultValue: 0
},
};
var baseurl = 'nodes/' + nodename + '/lxc/' + vmid + '/config';