diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-05-06 13:20:29 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-05-06 18:32:54 +0200 |
commit | 170d7e1be98f7b2caf924abfdbbacf30438361ad (patch) | |
tree | 5ad34f4adade88fb2f98733b9663d348aa52f6de /src | |
parent | 8171ddd15fb31672188bbe1a1953e9eb176291a7 (diff) |
live: umount all partitions before partition setup
If new partition layout is specified, unmount cache and any other partition
under /mnt.
Diffstat (limited to 'src')
-rw-r--r-- | src/live/ogOperations.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 00079eb..a72a842 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -312,6 +312,9 @@ class OgLiveOperations: self._ogbrowser_clear_logs() self._restartBrowser(self._url_log) + umount_all() + umount_cache() + diskname = get_disks()[int(disk)-1] cxt = fdisk.Context(f'/dev/{diskname}', details=True) @@ -331,8 +334,6 @@ class OgLiveOperations: continue if ogRest.terminated: break - if part["code"] == 'CACHE': - umount_cache() pa = fdisk.Partition(start_follow_default=True, end_follow_default=False, |