Removed systemd from the UI
We won't ship systemd officially in 22.04, hence remove it from the UI. However it's still there and distributed and can be enabled manually. Co-authored-by: Didier Roche <didrocks@ubuntu.com>
This commit is contained in:
parent
9ff8e10ef5
commit
a3a21da408
|
@ -8,6 +8,5 @@ WSLConfigurationAdvanced:
|
|||
interop_appendwindowspath: false
|
||||
automount_enabled: false
|
||||
automount_mountfstab: false
|
||||
systemd_enabled: true
|
||||
Summary:
|
||||
reboot: yes
|
|
@ -32,8 +32,7 @@ class WSLConfigurationAdvancedController(SubiquityTuiController):
|
|||
def run_answers(self):
|
||||
if all(elem in self.answers for elem in
|
||||
['interop_enabled', 'interop_appendwindowspath',
|
||||
'automount_enabled', 'automount_mountfstab',
|
||||
'systemd_enabled']):
|
||||
'automount_enabled', 'automount_mountfstab']):
|
||||
|
||||
reconfiguration = WSLConfigurationAdvanced(**self.answers)
|
||||
self.done(reconfiguration)
|
||||
|
|
|
@ -4,9 +4,6 @@ mountfstab = false
|
|||
options = metadata
|
||||
root = /custom_mnt_path
|
||||
|
||||
[boot]
|
||||
command = /usr/libexec/wsl-systemd
|
||||
|
||||
[interop]
|
||||
appendwindowspath = false
|
||||
enabled = false
|
||||
|
|
|
@ -59,10 +59,10 @@ class WSLConfigurationAdvancedForm(Form):
|
|||
BooleanField(_("Append Windows Path"),
|
||||
help=_("Whether Windows Path will be append in the"
|
||||
" PATH environment variable in WSL."))
|
||||
systemd_enabled = \
|
||||
BooleanField(_("Enable Systemd"),
|
||||
help=_("EXPERIMENTAL - Whether systemd should be"
|
||||
" activated at boot time."))
|
||||
# systemd_enabled = \
|
||||
# BooleanField(_("Enable Systemd"),
|
||||
# help=_("EXPERIMENTAL - Whether systemd should be"
|
||||
# " activated at boot time."))
|
||||
|
||||
|
||||
class WSLConfigurationAdvancedView(BaseView):
|
||||
|
@ -82,8 +82,8 @@ class WSLConfigurationAdvancedView(BaseView):
|
|||
configuration_data.automount_enabled,
|
||||
'automount_mountfstab':
|
||||
configuration_data.automount_mountfstab,
|
||||
'systemd_enabled':
|
||||
configuration_data.systemd_enabled,
|
||||
# 'systemd_enabled':
|
||||
# configuration_data.systemd_enabled,
|
||||
}
|
||||
self.form = WSLConfigurationAdvancedForm(initial=initial)
|
||||
|
||||
|
@ -107,6 +107,6 @@ class WSLConfigurationAdvancedView(BaseView):
|
|||
.automount_enabled.value,
|
||||
automount_mountfstab=self.form
|
||||
.automount_mountfstab.value,
|
||||
systemd_enabled=self.form
|
||||
.systemd_enabled.value,
|
||||
# systemd_enabled=self.form
|
||||
# .systemd_enabled.value,
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue