Help generating a bootable Ubuntu bionic #2187
-
Hi all I am trying to generate an Ubuntu bionic bootable on bare-metal and testable with qemu. Files:
File mkosi.conf:
File mkosi.repart/00-esp.conf:
File mkosi.repart/10-root.conf:
Files in mkosi.skeleton/etc/apt/ : We are using internal ubuntu mirrors rather than the official ones, therefore declaring those in our sources.list. The host is also pointing to those mirrors when executing mkosi. mkosi command executed : mkosi --force --directory='path to mkosi files' --output utl-infra qemu The image building by mkosi is successful, but when qemu tries launching the image it systematical fails finding a suitable root device.
Could someone please tell me what is wrong or missing in my config/commands (Packages installed, Partitions, Bootloader, Format, ... ?) Thank you very much for your help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Our default compression for Ubuntu initrds is zstd and the bionic 18 kernel cannot decompress those. Given that bionic is EOL, we're not going to add a workaround in mkosi for this. You can fork mkosi and change |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the quick feedback. Will I get same compression issues with more recent versions of Ubuntu (focal, jammy, ...) ? |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your help |
Beta Was this translation helpful? Give feedback.
Our default compression for Ubuntu initrds is zstd and the bionic 18 kernel cannot decompress those. Given that bionic is EOL, we're not going to add a workaround in mkosi for this. You can fork mkosi and change
config_default_compression()
to returnCompression.xz
if the distribution is ubuntu and the release is bionic.