mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
[bootloader] Convert to str
- The output of subprocess is a bytes object, which needs to be decoded so we can use it like a regular string (alternatively, we could have changed more code to manipulate bytes, but eventually we need a string to pass to a subsequent command anyway).
This commit is contained in:
parent
9bf1d83c2f
commit
23ae6b77bd
1 changed files with 2 additions and 2 deletions
|
@ -366,10 +366,10 @@ def install_secureboot(efi_directory):
|
|||
# of that tuple.
|
||||
efi_drive = subprocess.check_output([
|
||||
libcalamares.job.configuration["grubProbe"],
|
||||
"-t", "drive", "--device-map=", install_efi_directory])
|
||||
"-t", "drive", "--device-map=", install_efi_directory]).decode("ascii")
|
||||
efi_disk = subprocess.check_output([
|
||||
libcalamares.job.configuration["grubProbe"],
|
||||
"-t", "disk", "--device-map=", install_efi_directory])
|
||||
"-t", "disk", "--device-map=", install_efi_directory]).decode("ascii")
|
||||
|
||||
efi_drive_partition = efi_drive.replace("(","").replace(")","").split(",")[1]
|
||||
# Get the first run of digits from the partition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue