commit
1e5e44e01b
@ -106,7 +106,6 @@ def create_systemd_boot_conf(uuid, conf_path, kernel_line):
|
|||||||
with open(conf_path, 'w') as f:
|
with open(conf_path, 'w') as f:
|
||||||
for l in lines:
|
for l in lines:
|
||||||
f.write(l)
|
f.write(l)
|
||||||
f.close()
|
|
||||||
|
|
||||||
|
|
||||||
def create_loader(loader_path):
|
def create_loader(loader_path):
|
||||||
@ -126,7 +125,6 @@ def create_loader(loader_path):
|
|||||||
with open(loader_path, 'w') as f:
|
with open(loader_path, 'w') as f:
|
||||||
for l in lines:
|
for l in lines:
|
||||||
f.write(l)
|
f.write(l)
|
||||||
f.close()
|
|
||||||
|
|
||||||
|
|
||||||
def install_systemd_boot(efi_directory):
|
def install_systemd_boot(efi_directory):
|
||||||
|
@ -264,13 +264,9 @@ def run():
|
|||||||
fs_is_supported = False
|
fs_is_supported = False
|
||||||
|
|
||||||
if os.path.isfile(PATH_PROCFS) and os.access(PATH_PROCFS, os.R_OK):
|
if os.path.isfile(PATH_PROCFS) and os.access(PATH_PROCFS, os.R_OK):
|
||||||
procfile = open(PATH_PROCFS, 'r')
|
with open(PATH_PROCFS, 'r') as procfile:
|
||||||
filesystems = procfile.read()
|
filesystems = procfile.read()
|
||||||
procfile.close()
|
filesystems = filesystems.replace("nodev", "").replace("\t", "").splitlines()
|
||||||
|
|
||||||
filesystems = filesystems.replace("nodev", "")
|
|
||||||
filesystems = filesystems.replace("\t", "")
|
|
||||||
filesystems = filesystems.splitlines()
|
|
||||||
|
|
||||||
# Check if the source filesystem is supported
|
# Check if the source filesystem is supported
|
||||||
for fs in filesystems:
|
for fs in filesystems:
|
||||||
|
Loading…
Reference in New Issue
Block a user