diff options
Diffstat (limited to 'src/live')
-rw-r--r-- | src/live/ogOperations.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 7958e9e..d4817f6 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -23,6 +23,7 @@ from src.live.partcodes import GUID_MAP from src.live.parttypes import get_parttype from src.utils.image import * +from src.utils.postinstall import configure_os from src.utils.net import ethtool from src.utils.menu import generate_menu from src.utils.fs import * @@ -455,14 +456,14 @@ class OgLiveOperations: return result def image_restore(self, request, ogRest): - disk = request.getDisk() - partition = request.getPartition() + disk = int(request.getDisk()) + partition = int(request.getPartition()) name = request.getName() repo = request.getRepo() ctype = request.getType() profile = request.getProfile() cid = request.getId() - partdev = get_partition_device(int(disk), int(partition)) + partdev = get_partition_device(disk, partition) self._ogbrowser_clear_logs() self._restartBrowser(self._url_log) @@ -477,7 +478,7 @@ class OgLiveOperations: elif ctype == 'TIPTORRENT': self._restore_image_tiptorrent(repo, name, partdev) - configureOs(disk, partition) + configure_os(disk, partition) self.refresh(ogRest) |