mirror of https://git.48k.eu/ogclient
live: call partprobe on the specific disk
otherwise partprobe does its best to find the disk, according to what I see through strace.master
parent
dbda6abd22
commit
92ef3d68aa
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue