live: call partprobe on the specific disk

otherwise partprobe does its best to find the disk, according to what I see
through strace.
master
OpenGnSys Support Team 2024-02-19 11:23:12 +01:00
parent dbda6abd22
commit 92ef3d68aa
1 changed files with 1 additions and 1 deletions

View File

@ -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':