[services] Document that systemctl enable/disable are chroot-safe

http://0pointer.de/blog/projects/changing-roots.html explicitly
documents the "systemctl enable" and "systemctl disable" commands to
work in a chroot.
This commit is contained in:
Kevin Kofler 2016-01-15 02:28:57 +01:00
parent 89c709995d
commit 2dfa0944c3

View File

@ -28,6 +28,11 @@ def run():
targets = libcalamares.job.configuration['targets']
disable = libcalamares.job.configuration['disable']
# note that the "systemctl enable" and "systemctl disable" commands used
# here will work in a chroot; in fact, they are the only systemctl commands
# that support that, see:
# http://0pointer.de/blog/projects/changing-roots.html
# enable services
for svc in services:
ec = libcalamares.utils.target_env_call(['systemctl', 'enable', '{}.service'.format(svc['name'])])