This should no longer be required because the QEMU emulation will set an
appropriate value. This was also quite fragile and required some binary
code in the build container.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
.cgroup = "pakfire/execute-XXXXXX",
};
- // Fetch architectures
- const char* native_arch = pakfire_arch_native();
- const char* arch = pakfire_get_arch(pakfire);
-
// argv is invalid
if (!argv || !argv[0])
return -EINVAL;
}
}
- // Fake architecture
- if (strcmp(arch, native_arch) != 0) {
- r = set_environ(&env, "LD_PRELOAD", "/usr/lib/libpakfire_preload.so");
- if (r)
- goto ERROR;
-
- r = set_environ(&env, "UTS_MACHINE", arch);
- if (r)
- goto ERROR;
- }
-
// Make cgroup name
r = pakfire_cgroup_random_name(env.cgroup);
if (r)