Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archinstall/lib/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def enable_service(self, services: str | list[str]) -> None:
info(f'Enabling service {service}')

try:
self.arch_chroot(f'systemctl enable {service}')
SysCommand(f'systemctl --root={self.target} enable {service}')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This operates on a chroot in a way native to systemd tools and should be done regardless of arch-chroot working or not.

@Torxed Torxed Sep 19, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to remember that we're on Arch Linux and the recommended way (by our own Wiki) is/was to configure the system using arch-chroot, generally speaking.

It's unfortunate that this issue happens, and we'll try to work around it.
But we wish to use native tooling with default values wherever possible and not use workarounds or too many custom parameters (again, if possible).

except SysCallError as err:
raise ServiceException(f'Unable to start service {service}: {err}')

Expand Down