Skip to content

Commit 92e8a72

Browse files
committed
Merge remote-tracking branch 'origin/master' into refactor-json-config
2 parents 465e206 + 0dddc73 commit 92e8a72

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2502
-313
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: [archlinux]
4+
custom: ['https://archlinux.org/donate/']

.github/workflows/ruff-format.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
8-
- uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1
8+
- uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
99
- run: ruff format --diff

.github/workflows/ruff-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
8-
- uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1
8+
- uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1

archinstall/default_profiles/desktops/hyprland.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def services(self) -> list[str]:
4545
return [pref]
4646
return []
4747

48-
def _ask_seat_access(self) -> None:
48+
def _select_seat_access(self) -> None:
4949
# need to activate seat service and add to seat group
5050
header = tr('Hyprland needs access to your seat (collection of hardware devices i.e. keyboard, mouse, etc)')
5151
header += '\n' + tr('Choose an option to give Hyprland access to your hardware') + '\n'
@@ -67,4 +67,4 @@ def _ask_seat_access(self) -> None:
6767

6868
@override
6969
def do_on_select(self) -> None:
70-
self._ask_seat_access()
70+
self._select_seat_access()

archinstall/default_profiles/desktops/labwc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def services(self) -> list[str]:
4242
return [pref]
4343
return []
4444

45-
def _ask_seat_access(self) -> None:
45+
def _select_seat_access(self) -> None:
4646
# need to activate seat service and add to seat group
4747
header = tr('labwc needs access to your seat (collection of hardware devices i.e. keyboard, mouse, etc)')
4848
header += '\n' + tr('Choose an option to give labwc access to your hardware') + '\n'
@@ -64,4 +64,4 @@ def _ask_seat_access(self) -> None:
6464

6565
@override
6666
def do_on_select(self) -> None:
67-
self._ask_seat_access()
67+
self._select_seat_access()

archinstall/default_profiles/desktops/niri.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def services(self) -> list[str]:
5050
return [pref]
5151
return []
5252

53-
def _ask_seat_access(self) -> None:
53+
def _select_seat_access(self) -> None:
5454
# need to activate seat service and add to seat group
5555
header = tr('niri needs access to your seat (collection of hardware devices i.e. keyboard, mouse, etc)')
5656
header += '\n' + tr('Choose an option to give niri access to your hardware') + '\n'
@@ -72,4 +72,4 @@ def _ask_seat_access(self) -> None:
7272

7373
@override
7474
def do_on_select(self) -> None:
75-
self._ask_seat_access()
75+
self._select_seat_access()

archinstall/default_profiles/desktops/sway.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def services(self) -> list[str]:
5252
return [pref]
5353
return []
5454

55-
def _ask_seat_access(self) -> None:
55+
def _select_seat_access(self) -> None:
5656
# need to activate seat service and add to seat group
5757
header = tr('Sway needs access to your seat (collection of hardware devices i.e. keyboard, mouse, etc)')
5858
header += '\n' + tr('Choose an option to give Sway access to your hardware') + '\n'
@@ -74,4 +74,4 @@ def _ask_seat_access(self) -> None:
7474

7575
@override
7676
def do_on_select(self) -> None:
77-
self._ask_seat_access()
77+
self._select_seat_access()

archinstall/lib/authentication/authentication_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from archinstall.lib.models.users import Password, User
88
from archinstall.lib.output import FormattedOutput
99
from archinstall.lib.translationhandler import tr
10-
from archinstall.lib.user.user_menu import ask_for_additional_users
10+
from archinstall.lib.user.user_menu import select_users
1111
from archinstall.lib.utils.util import get_password
1212
from archinstall.tui.ui.menu_item import MenuItem, MenuItemGroup
1313
from archinstall.tui.ui.result import ResultType
@@ -58,7 +58,7 @@ def _define_menu_options(self) -> list[MenuItem]:
5858

5959
def _create_user_account(self, preset: list[User] | None = None) -> list[User]:
6060
preset = [] if preset is None else preset
61-
users = ask_for_additional_users(preset=preset)
61+
users = select_users(preset=preset)
6262
return users
6363

6464
def _prev_users(self, item: MenuItem) -> str | None:

archinstall/lib/boot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
from types import TracebackType
66
from typing import TYPE_CHECKING, ClassVar, Self
77

8-
from .command import SysCommand, SysCommandWorker
8+
from .command import SysCommand, SysCommandWorker, locate_binary
99
from .exceptions import SysCallError
10-
from .general import locate_binary
1110
from .output import error
1211

1312
if TYPE_CHECKING:

archinstall/lib/bootloader/bootloader_menu.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from archinstall.tui.ui.menu_item import MenuItem, MenuItemGroup
77
from archinstall.tui.ui.result import ResultType
88

9-
from ..args import arch_config_handler
109
from ..hardware import SysInfo
1110
from ..menu.abstract_menu import AbstractSubMenu
1211
from ..models.bootloader import Bootloader, BootloaderConfiguration
@@ -16,8 +15,10 @@ class BootloaderMenu(AbstractSubMenu[BootloaderConfiguration]):
1615
def __init__(
1716
self,
1817
bootloader_conf: BootloaderConfiguration,
18+
skip_boot: bool = False,
1919
):
2020
self._bootloader_conf = bootloader_conf
21+
self._skip_boot = skip_boot
2122
menu_options = self._define_menu_options()
2223

2324
self._item_group = MenuItemGroup(menu_options, sort_items=False, checkmarks=True)
@@ -91,7 +92,7 @@ def run(self) -> BootloaderConfiguration:
9192
return self._bootloader_conf
9293

9394
def _select_bootloader(self, preset: Bootloader | None) -> Bootloader | None:
94-
bootloader = ask_for_bootloader(preset)
95+
bootloader = select_bootloader(preset, self._skip_boot)
9596

9697
if bootloader:
9798
# Update UKI option based on bootloader
@@ -177,13 +178,16 @@ def _select_removable(self, preset: bool) -> bool:
177178
raise ValueError('Unhandled result type')
178179

179180

180-
def ask_for_bootloader(preset: Bootloader | None) -> Bootloader | None:
181+
def select_bootloader(
182+
preset: Bootloader | None,
183+
skip_boot: bool = False,
184+
) -> Bootloader | None:
181185
options = []
182186
hidden_options = []
183187
default = None
184188
header = tr('Select bootloader to install')
185189

186-
if arch_config_handler.args.skip_boot:
190+
if skip_boot:
187191
default = Bootloader.NO_BOOTLOADER
188192
else:
189193
hidden_options += [Bootloader.NO_BOOTLOADER]

0 commit comments

Comments
 (0)