Update bootctl --path option to --esp-path (#1854)

This commit is contained in:
codefiles 2023-06-12 05:36:19 -04:00 committed by GitHub
parent 1b0c8f3ce3
commit 77710883b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -798,10 +798,10 @@ class Installer:
# Install the boot loader
try:
SysCommand(f'/usr/bin/arch-chroot {self.target} bootctl --path=/boot install')
SysCommand(f'/usr/bin/arch-chroot {self.target} bootctl --esp-path=/boot install')
except SysCallError:
# Fallback, try creating the boot loader without touching the EFI variables
SysCommand(f'/usr/bin/arch-chroot {self.target} bootctl --no-variables --path=/boot install')
SysCommand(f'/usr/bin/arch-chroot {self.target} bootctl --no-variables --esp-path=/boot install')
# Ensure that the /boot/loader directory exists before we try to create files in it
if not os.path.exists(f'{self.target}/boot/loader'):