[systemd-devel] Add ARCH parameter to /etc/os-release

Tollef Fog Heen tfheen at err.no
Thu Apr 18 01:06:20 PDT 2013


]] Koen Kooi 

> But it does answer the "can I nspawn into this rootfs?" question for
> different architectures like powerpc vs x86 :)

No, it doesn't.  You'll have false negatives, think about binfmt_misc
combined with qemu user emulation for instance.

The right way to see if you can do that is to try.  Just like you
shouldn't use access(2) and then open(2) it, you should just open it and
handle failure.

-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


More information about the systemd-devel mailing list