grub: skip OS guess if partition cannot be mounted

otherwise, _get_os_entries() fails when it finds a swap partition:

  (2025-01-23 17:44:30) ogClient: [ERROR] - Error generating /mnt/nvme0n1p4/EFI/grub/Boot/grub.cfg: Unable to mount /dev/nvme0n1p3 into /mnt/nvme0n1p3
master v1.3.2-28
OpenGnSys Support Team 2025-01-24 15:00:38 +01:00
parent 30e0e1dca3
commit 574822907d
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ def _get_os_entries(esp_mountpoint):
continue
if not mount_mkdir(p.padev, mountpoint):
raise OgError(f'Unable to mount {p.padev} into {mountpoint}')
continue
try:
os_family = get_os_family(mountpoint)