From 574822907def961c0031d1e864baa51123e21d54 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 24 Jan 2025 15:00:38 +0100 Subject: [PATCH] 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 --- src/utils/grub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/grub.py b/src/utils/grub.py index c82e1da..38ad1f4 100644 --- a/src/utils/grub.py +++ b/src/utils/grub.py @@ -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)