postinstall: add logging to report this stage

log that image restoration has entered OS configuration stage.
master
OpenGnSys Support Team 2024-08-06 18:50:56 +02:00 committed by Alejandro Sirgo Rica
parent 9ee5f4adaa
commit 9be639ae78
1 changed files with 2 additions and 0 deletions

View File

@ -228,6 +228,8 @@ def configure_os(disk, partition):
device = get_partition_device(disk, partition)
mountpoint = device.replace('dev', 'mnt')
logging.info(f'Configuring OS at {device}...')
if not mount_mkdir(device, mountpoint):
raise OgError(f'Cannot probe OS family. Unable to mount {device} into {mountpoint}')