Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.
When building images containing large packages like CUDA or TensorFlow, it's easy to consume around 20-30 GB of temporary disk space (pacstrap directory + airootfs image + iso image). This patch minimizes disk usage by removing the pacstrap directory early (if the -r flag is enabled), making it easier to use a tmpfs for the working directory. I'm happy about feedback if this code snippet should move to another function.