Run partprobe when partitions do not appear

This commit is contained in:
Vitaliy Filippov
2022-08-18 02:05:16 +03:00
parent 40d8d65188
commit c0d5e83fb8
4 changed files with 44 additions and 9 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ static int fix_partition_type(std::string dev_by_uuid)
}
script += "\n";
}
return shell_exec({ "/sbin/sfdisk", "--no-reread", "--force", "/dev/"+parent_dev }, script, NULL, NULL);
return shell_exec({ "sfdisk", "--no-reread", "--force", "/dev/"+parent_dev }, script, NULL, NULL);
}
int disk_tool_t::upgrade_simple_unit(std::string unit)