PEP and Unused Import
This commit is contained in:
parent
bc66502fda
commit
9f8a8f6a64
@ -215,7 +215,7 @@ def prepare_bootloader(fw_type):
|
|||||||
boot_p = boot_device[-1:]
|
boot_p = boot_device[-1:]
|
||||||
device = boot_device[:-1]
|
device = boot_device[:-1]
|
||||||
|
|
||||||
if (not boot_p or not device):
|
if not boot_p or not device:
|
||||||
return ("EFI directory \"{!s}\" not found!",
|
return ("EFI directory \"{!s}\" not found!",
|
||||||
"Boot partition: \"{!s}\"",
|
"Boot partition: \"{!s}\"",
|
||||||
"Boot device: \"{!s}\"".format(efi_directory, boot_p, device))
|
"Boot device: \"{!s}\"".format(efi_directory, boot_p, device))
|
||||||
|
@ -26,7 +26,7 @@ def run():
|
|||||||
|
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
returnCode = chroot_call(["update-initramfs", "-k", "all", "-u"])
|
return_code = chroot_call(["update-initramfs", "-k", "all", "-u"])
|
||||||
|
|
||||||
if returnCode != 0:
|
if return_code != 0:
|
||||||
return "Failed to run update-initramfs on the target", "The exit code was {}".format(returnCode)
|
return "Failed to run update-initramfs on the target", "The exit code was {}".format(return_code)
|
||||||
|
@ -26,7 +26,6 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
from collections import namedtuple
|
|
||||||
|
|
||||||
from libcalamares import *
|
from libcalamares import *
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user