I would like to build a system image, but the build script seems to be specific to Debian-based distributions. If I try to run the mkimage script, for example, I get
+ set -e
+ DEPS='mmdebstrap genext2fs e2fsprogs binfmt-support git mount arch-test qemu-user-static parted'
++ dpkg-query --showformat '${db:Status-Status}\n' --show mmdebstrap genext2fs e2fsprogs binfmt-support git mount arch-test qemu-user-static parted
++ sort -u
dpkg-query: no packages found matching mmdebstrap
dpkg-query: no packages found matching genext2fs
dpkg-query: no packages found matching e2fsprogs
dpkg-query: no packages found matching binfmt-support
dpkg-query: no packages found matching git
dpkg-query: no packages found matching mount
dpkg-query: no packages found matching arch-test
dpkg-query: no packages found matching qemu-user-static
dpkg-query: no packages found matching parted
+ '[' '' '!=' installed ']'
+ echo 'Not all dependencies of this script are installed.'
Not all dependencies of this script are installed.
+ echo 'Run the following command to install them:'
Run the following command to install them:
+ echo
+ echo ' sudo apt install mmdebstrap genext2fs e2fsprogs binfmt-support git mount arch-test qemu-user-static parted'
sudo apt install mmdebstrap genext2fs e2fsprogs binfmt-support git mount arch-test qemu-user-static parted
+ exit 1
even with mmdebstrap on my path (cloned from its git repo), since none of my RPM packages are found with dpkg-query. I know one way to do this would be to set up a Debian or Ubuntu VM, but that seems overkill for this problem. A container may be the way to do it, but I don’t have much experience with them.
Is there a straightforward way to do this in Fedora?