Skip to content
Open
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
26 changes: 2 additions & 24 deletions archinstall/lib/profile/profiles_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,29 +77,6 @@ def parse_profile_config(self, profile_config: ProfileSerialization) -> Profile
else:
self._import_profile_from_url(url_path)

# if custom := profile_config.get('custom', None):
# from archinstall.default_profiles.custom import CustomTypeProfile
# custom_types = []
#
# for entry in custom:
# custom_types.append(
# CustomTypeProfile(
# entry['name'],
# entry['enabled'],
# entry.get('packages', []),
# entry.get('services', [])
# )
# )
#
# self.remove_custom_profiles(custom_types)
# self.add_custom_profiles(custom_types)
#
# # this doesn't mean it's actual going to be set as a selection
# # but we are simply populating the custom profile with all
# # possible custom definitions
# if custom_profile := self.get_profile_by_name('Custom'):
# custom_profile.set_current_selection(custom_types)

if main := profile_config.get('main', None):
profile = self.get_profile_by_name(main) if main else None

Expand All @@ -113,7 +90,7 @@ def parse_profile_config(self, profile_config: ProfileSerialization) -> Profile
if details:
for detail in filter(None, details):
# [2024-04-19] TODO: Backwards compatibility after naming change: https://github.com/archlinux/archinstall/pull/2421
# 'Kde' is deprecated, remove this block in a future version
# 'Kde' is deprecated, remove this block in a future version
if detail == 'Kde':
detail = 'KDE Plasma'

Expand Down Expand Up @@ -204,6 +181,7 @@ def install_greeter(self, install_session: 'Installer', greeter: GreeterType) ->
service = ['ly']
case GreeterType.CosmicSession:
packages = ['cosmic-greeter']
service = ['cosmic-greeter']

if packages:
install_session.add_additional_packages(packages)
Expand Down