./run.sh --image-url https://repo.turris.cz/hbs/medkit/omnia-medkit-latest.tar.gz
or (which will auto detect the correct url to use from version number)
./run.sh --turris-version 5.0.3
also by changing to script, there are some improvements that can be done like:
check if script run as root, otherwise append sudo to commands that need it.
change git clone to git clone --depth 1 (as the history is not needed)
verify last commit by running git verify-commit after git clone command (require always signing commits, currently only some of them are signed, see "Verified button in: https://github.com/jose1711/qemu_turrisos/commits/master")
install missing deps required to run the script, (different commands on different Linux OS)
For debian based systems (debian/ubuntu/mint/popos/etc...) below command can be used (install only required packages):
apt update && apt install -y --no-install-recommends bash wget iproute2 procps iptables file qemu-system-arm git ipxe-qemu ca-certificates
for rpm based systems (fedora/etc..)
dnf update -y && dnf install -y bash wget iproute procps iptables file qemu-system-arm git
(location of needed commands that require above packages can get by: which bash wget ip sysctl iptables file qemu-system-arm git)
https://github.com/jose1711/qemu_turrisos#quick-how-to can be changed to script file like
run.sh
Which can be called like:./run.sh --image-url https://repo.turris.cz/hbs/medkit/omnia-medkit-latest.tar.gz
or (which will auto detect the correct url to use from version number)./run.sh --turris-version 5.0.3
also by changing to script, there are some improvements that can be done like:
sudo
to commands that need it.git clone
togit clone --depth 1
(as the history is not needed)git verify-commit
aftergit clone
command (require always signing commits, currently only some of them are signed, see "Verified button in: https://github.com/jose1711/qemu_turrisos/commits/master")apt update && apt install -y --no-install-recommends bash wget iproute2 procps iptables file qemu-system-arm git ipxe-qemu ca-certificates
for rpm based systems (fedora/etc..)dnf update -y && dnf install -y bash wget iproute procps iptables file qemu-system-arm git
(location of needed commands that require above packages can get by:
which bash wget ip sysctl iptables file qemu-system-arm git
)