mirror of https://git.48k.eu/ogclient
utils: fix mount error messages for os probe operations
Replace unexistent mountpoint variable to report a failed mount operation before an OS probe from a partition. Improve the semantics of the error message replacing 'at' with 'into'. Remove the period at the end of the log message.master
parent
a97fd4acad
commit
474183ab71
|
@ -109,7 +109,7 @@ def boot_os_at(disk, part):
|
|||
device = get_partition_device(disk, part)
|
||||
mountpoint = device.replace('dev', 'mnt')
|
||||
if not mount_mkdir(device, mountpoint):
|
||||
raise RuntimeError(f'Cannot probe OS family. Unable to mount {device} at {esp_mountpoint}.')
|
||||
raise RuntimeError(f'Cannot probe OS family. Unable to mount {device} into {mountpoint}')
|
||||
|
||||
is_uefi = is_uefi_supported()
|
||||
if is_uefi:
|
||||
|
|
|
@ -106,7 +106,7 @@ def copy_windows_efi_bootloader(disk, partition):
|
|||
device = get_partition_device(disk, partition)
|
||||
mountpoint = device.replace('dev', 'mnt')
|
||||
if not mount_mkdir(device, mountpoint):
|
||||
raise RuntimeError(f'Cannot probe OS family. Unable to mount {device} at {esp_mountpoint}')
|
||||
raise RuntimeError(f'Cannot probe OS family. Unable to mount {device} into {mountpoint}')
|
||||
|
||||
os_family = get_os_family(mountpoint)
|
||||
is_uefi = is_uefi_supported()
|
||||
|
|
Loading…
Reference in New Issue