From 81ee4b02dd8ac8adde7755aaff965a16edbf3ab9 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Mon, 9 May 2022 12:40:46 +0200 Subject: live: generate cache.txt file in refresh Generates a cache.txt file if a cache partition is detected. OpenGnsys stores information about stored images in its 'cache' partition via a text file. The file is stored in a samba shared directory, mounted at '/opt/opengnsys/log/' in a live client. The file name is '{ip}.cache.txt'. Previously, the generation of this file was delegated to external bash scripts. --- src/live/ogOperations.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/live') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 51f5f2e..853d661 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -20,6 +20,7 @@ from src.utils.menu import generate_menu from src.utils.fs import mount_mkdir, umount, get_usedperc from src.utils.probe import os_probe, cache_probe from src.utils.disk import get_disks +from src.utils.cache import generate_cache_txt OG_SHELL = '/bin/bash' @@ -351,6 +352,7 @@ class OgLiveOperations: parsed['partition_setup'].append(part_setup) generate_menu(parsed['partition_setup']) + generate_cache_txt() self._restartBrowser(self._url) return parsed -- cgit v1.2.3-18-g5258