[bootloader] Fix error with systemd-boot when path exists in the ESP

This commit is contained in:
dalto 2021-12-04 09:10:49 -06:00 committed by Adriaan de Groot
parent b8c02587ae
commit 6e08da6c8d

View File

@ -224,7 +224,7 @@ def create_systemd_boot_conf(install_path, efi_dir, uuid, entry, entry_name, ker
# Copy kernel and initramfs to a subdirectory of /efi partition # Copy kernel and initramfs to a subdirectory of /efi partition
files_dir = os.path.join(install_path + efi_dir, entry_name) files_dir = os.path.join(install_path + efi_dir, entry_name)
os.mkdir(files_dir) os.makedirs(files_dir, exist_ok=True)
kernel_path = install_path + kernel kernel_path = install_path + kernel
kernel_name = os.path.basename(kernel_path) kernel_name = os.path.basename(kernel_path)