Adds parallel package downloading to debootstrap using aria2c.
| Distro | debootstrap version |
|---|---|
| Ubuntu Focal (20.04) | 1.0.118ubuntu1.11 |
| Ubuntu Noble (24.04) | 1.0.134ubuntu1 |
✅ Working
| #!/bin/bash | |
| usage() { | |
| echo "Usage: $0 [--apply]" | |
| echo "Default is dry-run mode. Use --apply to actually delete files and directories." | |
| exit 1 | |
| } | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "You must run this script as root." |
| #!/bin/bash | |
| usage() { | |
| echo "Usage: $0 [--apply]" | |
| echo "Default is dry-run mode. Use --apply to actually update symlinks." | |
| exit 1 | |
| } | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "You must run this script as root." |
| # Start a QEMU VM with configuration | |
| # THIS IS A TEMPLATE FILE AND SHOULD BE MODIFIED TO SUIT YOUR NEEDS | |
| # DO NOT RUN THIS FILE AS-IS | |
| sudo qemu-system-x86_64 \ | |
| -enable-kvm \ | |
| -smp {number of cores} \ | |
| -m 4G \ | |
| # HDD block device |
| #!/bin/sh | |
| # check file exists | |
| if [ -f "rootfs.qcow2" ]; then | |
| echo -n "Overwrite existing rootfs.qcow2? [y/N] > " | |
| read ans | |
| if [ "$ans" != "y" ]; then | |
| exit 0 | |
| fi | |
| fi |