From 92ef3d68aa496e9fe7619077426b8902e4eefe6a Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Mon, 19 Feb 2024 11:23:12 +0100 Subject: live: call partprobe on the specific disk otherwise partprobe does its best to find the disk, according to what I see through strace. --- src/live/ogOperations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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': -- cgit v1.2.3-18-g5258