Skip to content

Commit 70c287e

Browse files
committed
Created an Enum None type for Bootloader called NO_BOOTLOADER
1 parent 01a9516 commit 70c287e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

archinstall/lib/models/bootloader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
class Bootloader(Enum):
11+
NO_BOOTLOADER = 'No bootloader server'
1112
Systemd = 'Systemd-boot'
1213
Grub = 'Grub'
1314
Efistub = 'Efistub'
@@ -32,7 +33,7 @@ def get_default(cls) -> None | Bootloader:
3233
from ..args import arch_config_handler
3334

3435
if arch_config_handler.args.skip_boot:
35-
return None
36+
return Bootloader.NO_BOOTLOADER
3637
elif SysInfo.has_uefi():
3738
return Bootloader.Systemd
3839
else:

archinstall/scripts/guided.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def perform_installation(mountpoint: Path) -> None:
9999
if config.swap:
100100
installation.setup_swap('zram')
101101

102-
if config.bootloader:
102+
if config.bootloader and config.bootloader not Bootloader.NO_BOOTLOADER:
103103
if config.bootloader == Bootloader.Grub and SysInfo.has_uefi():
104104
installation.add_additional_packages('grub')
105105

0 commit comments

Comments
 (0)