Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions archinstall/lib/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,7 @@ def set_keyboard_language(self, language: str) -> bool:
# In accordance with https://github.com/archlinux/archinstall/issues/107#issuecomment-841701968
# Setting an empty keymap first, allows the subsequent call to set layout for both console and x11.
with Boot(self.target) as session:
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""') # type: ignore[deprecated, unused-ignore]
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""') # type: ignore[deprecated]

try:
session.SysCommand(['localectl', 'set-keymap', language])
Expand Down Expand Up @@ -2074,7 +2074,7 @@ def _service_state(self, service_name: str) -> str:


def accessibility_tools_in_use() -> bool:
return os.system('systemctl is-active --quiet espeakup.service') == 0 # type: ignore[deprecated, unused-ignore]
return os.system('systemctl is-active --quiet espeakup.service') == 0 # type: ignore[deprecated]


def run_custom_user_commands(commands: list[str], installation: Installer) -> None:
Expand Down
2 changes: 1 addition & 1 deletion archinstall/scripts/guided.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def perform_installation(
case PostInstallationAction.EXIT:
pass
case PostInstallationAction.REBOOT:
_ = os.system('reboot') # type: ignore[deprecated, unused-ignore]
_ = os.system('reboot') # type: ignore[deprecated]
case PostInstallationAction.CHROOT:
try:
installation.drop_to_shell()
Expand Down
4 changes: 2 additions & 2 deletions archinstall/tui/curses_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ def print(
clear_screen: bool = False,
) -> None:
if clear_screen:
os.system('clear') # type: ignore[deprecated, unused-ignore]
os.system('clear') # type: ignore[deprecated]

if Tui._t is None:
print(text, end=endl)
Expand Down Expand Up @@ -1355,7 +1355,7 @@ def _main_loop[ValueT](self, component: AbstractCurses[ValueT]) -> Result[ValueT
return component.kickoff(self._screen)

def _reset_terminal(self) -> None:
os.system('reset') # type: ignore[deprecated, unused-ignore]
os.system('reset') # type: ignore[deprecated]

def _set_up_colors(self) -> None:
curses.init_pair(STYLE.NORMAL.value, curses.COLOR_WHITE, curses.COLOR_BLACK)
Expand Down
Loading