Skip to content

Commit 251070a

Browse files
committed
Fixed mypy type check issue
1 parent 7b498f6 commit 251070a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

archinstall/lib/installer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,11 @@ def _add_systemd_bootloader(
11741174

11751175
# TODO: This is a temporary workaround to deal with https://github.com/archlinux/archinstall/pull/3396#issuecomment-2996862019
11761176
# the systemd_version check can be removed once `--variables=BOOL` is merged into systemd.
1177-
systemd_version = int(self.pacman.run('-Q systemd').trace_log.split(b' ')[1][:3].decode())
1177+
if pacman_q_systemd := self.pacman.run('-Q systemd').trace_log:
1178+
pacman_version = int(pacman_q_systemd.split(b' ')[1][:3].decode())
1179+
else:
1180+
pacman_version = 257 # This works as a safety workaround for this hot-fix
1181+
11781182
# Install the boot loader
11791183
try:
11801184
# Force EFI variables since bootctl detects arch-chroot

0 commit comments

Comments
 (0)