44
55from archinstall .lib .general import SysCommandWorker
66from archinstall .lib .models .authentication import AuthenticationConfiguration , U2FLoginConfiguration , U2FLoginMethod
7- from archinstall .lib .models .profile_model import ProfileConfiguration
87from archinstall .lib .models .users import User
98from archinstall .lib .output import debug
109from 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 } ' )
0 commit comments