systemd / mkosi

💽 Build Bespoke OS Images
https://mkosi.systemd.io/
1.18k stars 319 forks source link

Cross-Architecture support in mkosi: permit creating arm images from x86-64 and suchlike #138

Closed Pillar1989 closed 4 years ago

Pillar1989 commented 7 years ago

Hi I want to use mkosi create armhf rootfs image. Is there any docments about this?

poettering commented 7 years ago

Sorry, but cross-building is something mkosi can't do for you, as it is built around dnf/debootstrap and such, and they don't support that. Sorry!

poettering commented 7 years ago

So, as it turns out I was wrong, dnf actually supports bootstrapping non-native archs, and I think it would make a ton of sense to support this in mkosi. Hence, let's reopen this, and let's make this an RFE issue.

Adding this should be fairly straightforward implementation-wise, given the hard work is already done in dnf/qemu.

poettering commented 7 years ago

https://npmccallum.gitlab.io/post/cross-architecture-roots-with-dnf/

fsateler commented 7 years ago

deboostrap also has support for cross-installing, but it's a bit more involved https://wiki.ubuntu.com/ARM/RootfsFromScratch/QemuDebootstrap

DaanDeMeyer commented 4 years ago

We have an --architecture switch now so I think this can be closed.