mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
nspawn: restore cross-architecture booting
The check added by 4c27749b8c breaks
booting an arm64 image on x86 using qemu-bin-fmt, so remove it.
Without it, the image built with mkosi --architecture=aarch64
boots fine in nspawn.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
998db5871f
commit
af262e5fa2
@@ -3397,10 +3397,10 @@ static int inner_child(
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "personality() failed: %m");
|
||||
#endif
|
||||
} else if (arg_architecture >= 0 && arg_architecture != native_architecture())
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
|
||||
"Selected architecture '%s' not supported locally, refusing.",
|
||||
architecture_to_string(arg_architecture));
|
||||
} else if (!arg_quiet && arg_architecture >= 0 && arg_architecture != native_architecture())
|
||||
log_notice("Selected architecture '%s' not supported natively on the local CPU, assuming "
|
||||
"invocation with qemu userspace emulator (or equivalent) in effect.",
|
||||
architecture_to_string(arg_architecture));
|
||||
|
||||
r = setrlimit_closest_all((const struct rlimit *const*) arg_rlimit, &which_failed);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user