[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:
parent
89c709995d
commit
2dfa0944c3
@ -28,6 +28,11 @@ def run():
|
|||||||
targets = libcalamares.job.configuration['targets']
|
targets = libcalamares.job.configuration['targets']
|
||||||
disable = libcalamares.job.configuration['disable']
|
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
|
# enable services
|
||||||
for svc in services:
|
for svc in services:
|
||||||
ec = libcalamares.utils.target_env_call(['systemctl', 'enable', '{}.service'.format(svc['name'])])
|
ec = libcalamares.utils.target_env_call(['systemctl', 'enable', '{}.service'.format(svc['name'])])
|
||||||
|
Loading…
Reference in New Issue
Block a user