summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-19 11:23:12 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-19 11:56:25 +0100
commit92ef3d68aa496e9fe7619077426b8902e4eefe6a (patch)
tree29ae81eae21c748a337a936f6b3b71aa9659f06f
parentdbda6abd2280f8e7cd7421a8c902d54b89ff02b5 (diff)
live: call partprobe on the specific disk
otherwise partprobe does its best to find the disk, according to what I see through strace.
-rw-r--r--src/live/ogOperations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 202a35b..c97975a 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -353,7 +353,7 @@ class OgLiveOperations:
cxt.add_partition(pa)
cxt.write_disklabel()
- subprocess.run('partprobe')
+ subprocess.run(['partprobe', f'/dev/{diskname}'])
for part in partlist:
if part["filesystem"] == 'EMPTY':