# Returns download URL. get_download_url() { case"$(uname -m)"in aarch64) echo"https://partner-images.canonical.com/core/groovy/current/ubuntu-groovy-core-cloudimg-arm64-root.tar.gz" ;; armv7l|armv8l) echo"https://partner-images.canonical.com/core/groovy/current/ubuntu-groovy-core-cloudimg-armhf-root.tar.gz" ;; i686) # Ubuntu groovy does not provide tarballs for x86 32bit. ;; x86_64) echo"https://partner-images.canonical.com/core/groovy/current/ubuntu-groovy-core-cloudimg-amd64-root.tar.gz" ;; esac }
# Define here additional steps which should be executed # for configuration. distro_setup() { # Hint: $PWD is the distribution rootfs directory. #echo "hello world" > ./etc/motd
# Run command within proot'ed environment with # run_proot_cmd function. # Uncomment this to do system upgrade during installation. #run_proot_cmd apt update #run_proot_cmd apt upgrade -yq : }