Run partprobe in add_partition() if /dev/disk/by-partuuid symlink is not present

This commit is contained in:
Vitaliy Filippov
2024-10-12 18:07:53 +03:00
parent d27a8bdabc
commit 4e8a1a8895
2 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -377,7 +377,7 @@ int fix_partition_type(std::string dev_by_uuid)
script += "\n";
}
std::string out;
return shell_exec({ "sfdisk", "--no-reread", "--force", parent_dev }, script, &out, NULL);
return shell_exec({ "sfdisk", "--no-reread", "--no-tell-kernel", "--force", parent_dev }, script, &out, NULL);
}
std::string csum_type_str(uint32_t data_csum_type)