Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/scripts/guided.py
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-10-17 05:23:09 -0400
committerGitHub <noreply@github.com>2023-10-17 11:23:09 +0200
commitbc3b3a35e6408144587f8c2ace95c4ac68d53bcc (patch)
treeae878156a279466146893bfa0fcc7d19a9438278 /archinstall/scripts/guided.py
parent332ec0d6236ca863cb6a2101849555935066549f (diff)
Add support for unified kernel image (#1519)
Diffstat (limited to 'archinstall/scripts/guided.py')
-rw-r--r--archinstall/scripts/guided.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/archinstall/scripts/guided.py b/archinstall/scripts/guided.py
index d7cf16cd..fdf05c99 100644
--- a/archinstall/scripts/guided.py
+++ b/archinstall/scripts/guided.py
@@ -56,6 +56,8 @@ def ask_user_questions():
# Ask which boot-loader to use (will only ask if we're in UEFI mode, otherwise will default to GRUB)
global_menu.enable('bootloader')
+ global_menu.enable('uki')
+
global_menu.enable('swap')
# Get the hostname for the machine
@@ -111,6 +113,7 @@ def perform_installation(mountpoint: Path):
# Retrieve list of additional repositories and set boolean values appropriately
enable_testing = 'testing' in archinstall.arguments.get('additional-repositories', [])
enable_multilib = 'multilib' in archinstall.arguments.get('additional-repositories', [])
+ run_mkinitcpio = not archinstall.arguments.get('uki')
locale_config: locale.LocaleConfiguration = archinstall.arguments['locale_config']
disk_encryption: disk.DiskEncryption = archinstall.arguments.get('disk_encryption', None)
@@ -141,6 +144,7 @@ def perform_installation(mountpoint: Path):
installation.minimal_installation(
testing=enable_testing,
multilib=enable_multilib,
+ mkinitcpio=run_mkinitcpio,
hostname=archinstall.arguments.get('hostname', 'archlinux'),
locale_config=locale_config
)
@@ -154,7 +158,10 @@ def perform_installation(mountpoint: Path):
if archinstall.arguments.get("bootloader") == Bootloader.Grub and SysInfo.has_uefi():
installation.add_additional_packages("grub")
- installation.add_bootloader(archinstall.arguments["bootloader"])
+ installation.add_bootloader(
+ archinstall.arguments["bootloader"],
+ archinstall.arguments["uki"]
+ )
# If user selected to copy the current ISO network configuration
# Perform a copy of the config