1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-13 13:17:43 +03:00

repart: Take --root into account in read only filesystems shortcut

This commit is contained in:
Daan De Meyer 2022-10-02 21:37:31 +02:00 committed by Yu Watanabe
parent 59fde24c60
commit f0e6cb196e

View File

@ -3361,7 +3361,7 @@ static int partition_populate_directory(Partition *p, char **ret_root, char **re
if (strv_length(p->copy_files) == 2 && strv_length(p->make_directories) == 0 && streq(p->copy_files[1], "/")) {
_cleanup_free_ char *s = NULL;
s = strdup(p->copy_files[0]);
s = path_join(arg_root, p->copy_files[0]);
if (!s)
return log_oom();