From 1ca3992f719f3a1f581c9253f061d76338137e7a Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Mon, 12 Aug 2024 10:46:40 +0200 Subject: src: remove call to restoreImageCustom script remove call to custom version of legacy script, display warning. --- src/live/ogOperations.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/live') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 98528a7..2ae44aa 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -500,8 +500,9 @@ class OgLiveOperations: logging.info(f'Request to restore image {name}.img via {ctype} from {repo}') if shutil.which('restoreImageCustom'): - restoreImageCustom(repo, name, disk, partition, ctype) - elif 'UNICAST' in ctype: + logging.warning(f'Ignoring restoreImageCustom, use postconfiguration scripts instead.') + + if 'UNICAST' in ctype: cache = 'DIRECT' not in ctype self._restore_image_unicast(repo, name, partdev, cache) elif ctype == 'TIPTORRENT': -- cgit v1.2.3-18-g5258