From a980c7c0d10781496d884c4142165bb85682cf8b Mon Sep 17 00:00:00 2001 From: Oleg-Chan Date: Sat, 13 Dec 2025 15:31:58 +0300 Subject: [PATCH 1/3] message --- archinstall/lib/installer.py | 16 ++++++++++++++++ archinstall/lib/profile/profiles_handler.py | 5 ++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 621573255a..df20be9b36 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -675,6 +675,22 @@ def enable_service(self, services: str | list[str]) -> None: if hasattr(plugin, 'on_service'): plugin.on_service(service) + def disable_service(self, services: str | list[str]) -> None: + if isinstance(services, str): + services = [services] + + for service in services: + info(f'Disabling service {service}') + + try: + SysCommand(f'systemctl --root={self.target} disable {service}') + except SysCallError as err: + raise ServiceException(f'Unable to disable service {service}: {err}') + + for plugin in plugins.values(): + if hasattr(plugin, 'on_service'): + plugin.on_service(service) + def run_command(self, cmd: str, peek_output: bool = False) -> SysCommand: return SysCommand(f'arch-chroot -S {self.target} {cmd}', peek_output=peek_output) diff --git a/archinstall/lib/profile/profiles_handler.py b/archinstall/lib/profile/profiles_handler.py index cfe85de913..27f6b6073e 100644 --- a/archinstall/lib/profile/profiles_handler.py +++ b/archinstall/lib/profile/profiles_handler.py @@ -185,6 +185,7 @@ def get_mac_addr_profiles(self) -> list[Profile]: def install_greeter(self, install_session: 'Installer', greeter: GreeterType) -> None: packages = [] service = None + service_disable = None match greeter: case GreeterType.LightdmSlick: @@ -201,7 +202,8 @@ def install_greeter(self, install_session: 'Installer', greeter: GreeterType) -> service = ['gdm'] case GreeterType.Ly: packages = ['ly'] - service = ['ly'] + service = ['ly@tty1'] + service_disable = ['getty@tty1'] case GreeterType.CosmicSession: packages = ['cosmic-greeter'] @@ -209,6 +211,7 @@ def install_greeter(self, install_session: 'Installer', greeter: GreeterType) -> install_session.add_additional_packages(packages) if service: install_session.enable_service(service) + install_session.disable_service(service_disable) # slick-greeter requires a config change if greeter == GreeterType.LightdmSlick: From 8e95fe7bac86a2b3b7a8edb2491781d5a70fac0a Mon Sep 17 00:00:00 2001 From: Oleg-Chan Date: Sat, 13 Dec 2025 15:41:40 +0300 Subject: [PATCH 2/3] message2 --- archinstall/lib/installer.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index df20be9b36..a942b39077 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -687,10 +687,6 @@ def disable_service(self, services: str | list[str]) -> None: except SysCallError as err: raise ServiceException(f'Unable to disable service {service}: {err}') - for plugin in plugins.values(): - if hasattr(plugin, 'on_service'): - plugin.on_service(service) - def run_command(self, cmd: str, peek_output: bool = False) -> SysCommand: return SysCommand(f'arch-chroot -S {self.target} {cmd}', peek_output=peek_output) From 3180b65ef43d5cc71b06b1467ac660e21405de95 Mon Sep 17 00:00:00 2001 From: Oleg-Chan Date: Sat, 13 Dec 2025 16:16:01 +0300 Subject: [PATCH 3/3] message --- archinstall/lib/installer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index a942b39077..36a15df686 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -675,11 +675,11 @@ def enable_service(self, services: str | list[str]) -> None: if hasattr(plugin, 'on_service'): plugin.on_service(service) - def disable_service(self, services: str | list[str]) -> None: - if isinstance(services, str): - services = [services] + def disable_service(self, services_disable: str | list[str]) -> None: + if isinstance(services_disable, str): + services_disable = [services_disable] - for service in services: + for service in services_disable: info(f'Disabling service {service}') try: