Skip to content

Commit

Permalink
More help and have auto-install because it is convenient
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin authored and andy31415 committed Sep 9, 2024
1 parent 068ec67 commit 1098227
Showing 1 changed file with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,30 @@
#
# sudo apt install qemu-system-arm virtinst libvirt-daemon
#

set -e

while getopts "hi" opt; do
case $opt in
h)
echo "Usage: $0 [-h] [-i]"
echo " -h Displays this help message"
echo " -i Attempt to 'sudo apt-get install' required packages"
exit 0
;;
i)
echo "Installing required packages ..."
sudo apt-get install \
genisoimage \
libvirt-daemon \
qemu-system-arm \
qemu-utils \
virtinst \
whois \
;
;;
esac
done

if ! which qemu-system-aarch64 >/dev/null; then
echo "Cannot find 'qemu-system-aarch64'. Did you 'sudo apt-get install qemu-system-arm' ?"
exit 1
Expand Down

0 comments on commit 1098227

Please sign in to comment.