Skip to content

Commit a046f53

Browse files
committed
Update
1 parent 263ea2d commit a046f53

2 files changed

Lines changed: 3 additions & 52 deletions

File tree

archinstall/lib/authentication/authentication_handler.py

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from archinstall.lib.general import SysCommandWorker
66
from archinstall.lib.models.authentication import AuthenticationConfiguration, U2FLoginConfiguration, U2FLoginMethod
7-
from archinstall.lib.models.profile_model import ProfileConfiguration
87
from archinstall.lib.models.users import User
98
from archinstall.lib.output import debug
109
from archinstall.lib.translationhandler import tr
@@ -23,26 +22,23 @@ def setup_auth(
2322
install_session: 'Installer',
2423
auth_config: AuthenticationConfiguration,
2524
users: list['User'] | None = None,
26-
profile_config: ProfileConfiguration | None = None,
2725
) -> None:
2826
if auth_config.u2f_config and users is not None:
29-
self._setup_u2f_login(install_session, auth_config.u2f_config, users, profile_config)
27+
self._setup_u2f_login(install_session, auth_config.u2f_config, users)
3028

3129
def _setup_u2f_login(
3230
self,
3331
install_session: 'Installer',
3432
u2f_config: U2FLoginConfiguration,
3533
users: list[User],
36-
profile_config: ProfileConfiguration | None = None,
3734
) -> None:
3835
self._configure_u2f_mapping(install_session, u2f_config, users)
39-
self._update_pam_config(install_session, u2f_config, profile_config)
36+
self._update_pam_config(install_session, u2f_config)
4037

4138
def _update_pam_config(
4239
self,
4340
install_session: 'Installer',
4441
u2f_config: U2FLoginConfiguration,
45-
profile_config: ProfileConfiguration | None = None,
4642
) -> None:
4743
match u2f_config.u2f_login_method:
4844
case U2FLoginMethod.Passwordless:
@@ -63,43 +59,6 @@ def _update_pam_config(
6359

6460
self._add_u2f_entry(sys_login, config_entry)
6561

66-
# if profile_config and profile_config.profile:
67-
# if profile_config.greeter is not None:
68-
# self._setup_greeter_config(
69-
# install_session,
70-
# config_entry,
71-
# profile_config.greeter,
72-
# )
73-
#
74-
# if profile_config.profile.is_desktop_profile():
75-
# desktop_profile: DesktopProfile = profile_config.profile
76-
# else:
77-
# self._add_u2f_entry(sys_login, config_entry)
78-
# else:
79-
# self._add_u2f_entry(sys_login, config_entry)
80-
81-
# def _setup_greeter_config(
82-
# self,
83-
# install_session: 'Installer',
84-
# config_entry: str,
85-
# greeter_type: GreeterType,
86-
# ) -> None:
87-
# match greeter_type:
88-
# case GreeterType.Lightdm:
89-
# pass
90-
# case GreeterType.LightdmSlick:
91-
# pass
92-
# case GreeterType.Sddm:
93-
# sddm_config = install_session.target / 'etc/pam.d/sddm'
94-
# self._add_u2f_entry(sys_login, config_entry)
95-
# case GreeterType.Gdm:
96-
# sddm_config = install_session.target / 'etc/pam.d/gdm-password'
97-
# self._add_u2f_entry(sys_login, config_entry)
98-
# case GreeterType.Ly:
99-
# pass
100-
# case GreeterType.CosmicSession:
101-
# pass
102-
10362
def _add_u2f_entry(self, file: Path, entry: str) -> None:
10463
if not file.exists():
10564
debug(f'File does not exist: {file}')

archinstall/scripts/guided.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,6 @@ def perform_installation(mountpoint: Path) -> None:
7272
disk_config,
7373
kernels=config.kernels,
7474
) as installation:
75-
# if profile_config := config.profile_config:
76-
# profile_handler.install_profile_config(installation, profile_config)
77-
78-
# if config.auth_config:
79-
# auth_handler.setup_auth(installation, config.auth_config, config.users, config.profile_config)
80-
81-
# exit(0)
82-
8375
# Mount all the drives to the desired mountpoint
8476
if disk_config.config_type != DiskLayoutType.Pre_mount:
8577
installation.mount_ordered_layout()
@@ -126,7 +118,7 @@ def perform_installation(mountpoint: Path) -> None:
126118
installation.create_users(users)
127119

128120
if config.auth_config:
129-
auth_handler.setup_auth(installation, config.auth_config, config.users, config.profile_config)
121+
auth_handler.setup_auth(installation, config.auth_config, config.users)
130122

131123
if config.packages and config.packages[0] != '':
132124
installation.add_additional_packages(config.packages)

0 commit comments

Comments
 (0)