mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05:00
[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
1 changed files with 5 additions and 0 deletions
|
@ -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'])])
|
||||
|
|
Loading…
Add table
Reference in a new issue