{/* Choices:
- Directory name
- Stage archive */}
host/.# As root, in any directory:
CHROOT_DIR=host
STAGE_ARCHIVE=https://distfiles.gentoo.org/releases/amd64/autobuilds\
/20250601T163943Z/stage3-amd64-musl-20250601T163943Z.tar.xz
TIME=061312182025 # MMDDhhmmYYYY
mkdir -- "$CHROOT_DIR"
cd -- "$CHROOT_DIR"
wget -- "$STAGE_ARCHIVE"
# If the machine's date is not set correctly (e.g. a live USB)
date -- "$TIME"
tar --extract --preserve-permissions --file stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner