systemd / mkosi

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

Impossible to generate a Fedora image from Ubuntu's mkosi #208

Closed q2dg closed 6 years ago

q2dg commented 6 years ago

Hello. When I do in Ubuntu 17.10 this simple command : mkosi -d fedora -o fedora.raw --password 1234 I get this Python error: "FileNotFoundError: [Errno 2]: No such file or directory: 'dnf'

I supose this error is due the fact mkosi wants to execute "under the hood" something like a "dnf --installroot" command and it fails because dnf isn't installed on host machine and, what is worst, it can't be.

There's no solution, then, to be able to create a Fedora image using a Ubuntu host? Thanks!

q2dg commented 6 years ago

Sorry, I've found this paragraph in http://0pointer.net/blog/mkosi-a-tool-for-generating-os-images.html

"Note though that not all distributions are supported at the same feature level currently. Also, as mkosi is based on dnf --installroot, debootstrap, pacstrap and zypper, and those packages are not packaged universally on all distributions, you might not be able to build images for all those distributions on arbitrary host distributions."

So that's the answer Sorry