refs #1956 gracefully handle error

pull/34/head
Natalia Serrano 2025-05-07 11:06:43 +02:00
parent 7624964ba1
commit 41f0efbf5c
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ def ogBoot (disk, par, nvramperm=False, params=''):
break
if dev:
fstab_part = DiskLib.ogDevToDisk (dev)
if not fstab_part:
SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_NOTOS, f'{disk} {par} ({dev})')
return None
else:
return None
# Montar S.F. de /boot.