Skip to content

Instantly share code, notes, and snippets.

@Tracnac
Created November 3, 2023 08:17
Show Gist options
  • Save Tracnac/424175f0b9305bb3e22c8add1fb24845 to your computer and use it in GitHub Desktop.
Save Tracnac/424175f0b9305bb3e22c8add1fb24845 to your computer and use it in GitHub Desktop.
Void chroot #linux #shell
#!/usr/bin/env bash
if [[ -z "${1}" ]]
then
echo "Usage :"
echo " ${0}" chroot_dir
exit 1
fi
mkdir "${1}"
XBPS_ARCH=x86_64-musl xvoidstrap "${1}" base-voidstrap clang make automake autoconf pkg-config git
echo "sudo xchroot ${1}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment