From d109e99dbed453f2eb535e381ef807289f1040ac Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 9 May 2024 11:44:43 +0200 Subject: utils: rename cache_probe() to get_cache_dev_path() This method reports the /dev path to cache partition, rename it. Add explicit check if blkid is successful. And add logging to report that device path to cache is not found. --- src/live/ogOperations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/live') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index b7208f6..8c8b67a 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -27,7 +27,7 @@ from src.utils.legacy import * from src.utils.net import ethtool from src.utils.menu import generate_menu from src.utils.fs import * -from src.utils.probe import os_probe, cache_probe +from src.utils.probe import os_probe, get_cache_dev_path from src.utils.disk import * from src.utils.cache import generate_cache_txt, umount_cache, init_cache from src.utils.tiptorrent import * @@ -542,7 +542,7 @@ class OgLiveOperations: def refresh(self, ogRest): self._restartBrowser(self._url_log) - cache = cache_probe() + cache = get_cache_dev_path() disks = get_disks() interface = os.getenv('DEVICE') link = ethtool(interface) -- cgit v1.2.3-18-g5258