Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-09-28 18:29:54 -0400
committerGitHub <noreply@github.com>2023-09-29 08:29:54 +1000
commit7a9a934ae38324f11d7d3be580a3ec329a73f96f (patch)
tree39aca5c0796b0e8d2ae7b597f08ceef1ba40179f
parent3695c37bc4c530cc381ccee86e3e190f50a4a416 (diff)
Refactor `_add_efistub_bootloader()` use cmd list (#2127)
-rw-r--r--archinstall/lib/installer.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 5d1bb7dc..f0df7322 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -1076,23 +1076,22 @@ TIMEOUT=5
for kernel in self.kernels:
# Setup the firmware entry
- label = f'Arch Linux ({kernel})'
- loader = f"/vmlinuz-{kernel}"
-
cmdline = [
*microcode,
f"initrd=\\initramfs-{kernel}.img",
*kernel_parameters,
]
- cmd = f'efibootmgr ' \
- f'--disk {parent_dev_path} ' \
- f'--part {boot_partition.partn} ' \
- f'--create ' \
- f'--label "{label}" ' \
- f'--loader {loader} ' \
- f'--unicode \'{" ".join(cmdline)}\' ' \
- f'--verbose'
+ cmd = [
+ 'efibootmgr',
+ '--disk', str(parent_dev_path),
+ '--part', str(boot_partition.partn),
+ '--create',
+ '--label', f'Arch Linux ({kernel})',
+ '--loader', f"/vmlinuz-{kernel}",
+ '--unicode', ' '.join(cmdline),
+ '--verbose'
+ ]
SysCommand(cmd)