mirror of
https://github.com/systemd/systemd.git
synced 2025-03-11 20:58:27 +03:00
repart: Don't look for --make-ddi= definitions inside --root=
It doesn't really make sense to go looking for these inside the given root directory. While we should resolve specifiers and such based on the given root directory, let's look up the image definitions on the host system as there's a good chance they're coupled to the repart version we're using so there's all kinds of chances for problems if we use the definitions from the image we're building instead of those from the host.
This commit is contained in:
parent
6c75eff6af
commit
4ae703b2b5
@ -7578,7 +7578,7 @@ static int run(int argc, char *argv[]) {
|
||||
if (!d)
|
||||
return log_oom();
|
||||
|
||||
r = search_and_access(d, F_OK, arg_root, CONF_PATHS_USR_STRV("systemd/repart/definitions"), &dp);
|
||||
r = search_and_access(d, F_OK, NULL, CONF_PATHS_USR_STRV("systemd/repart/definitions"), &dp);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "DDI type '%s' is not defined: %m", arg_make_ddi);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user