dbhi / qus

qemu-user-static (qus) and containers, non-invasive minimal working setups

Home Page:https://dbhi.github.io/qus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add branch/version with packages from Fedora

umarcor opened this issue · comments

Fedora packages are updated faster than Debian packages, but the list of supported architectures is shorter (arm32v6 is missing): https://kojipkgs.fedoraproject.org/packages/qemu/4.0.0/5.fc31/x86_64/

It would be interesting to publish images with Fedora binaries too. In order to do this, several changes are required:

  • Introduce image versioning. Currently all the images/manifests are 'rolling'.
  • Adapt run.sh to support two source URL and filename formats.

Extract binaries from Fedora packages:

sudo apt-get install rpm2cpio cpio

curl -fsSL "$PACKAGE_URI" | rpm2cpio - | cpio -dimv "*usr/bin*qemu-*-static"
mv ./usr/bin/* ./
rm -rf ./usr/bin