diff options
author | classabbyamp <void@placeviolette.net> | 2022-09-07 23:41:47 -0400 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-09-08 22:04:34 +0200 |
commit | 1aa10d734b3cfd6fcfa112a9404f7420c649050f (patch) | |
tree | d930b54a184478b3f27a07034a7fde5a5c1cd30a | |
parent | 7c227d263f8c00856b019d9dd66d1fdb26b1fd98 (diff) | |
download | xtools-1aa10d734b3cfd6fcfa112a9404f7420c649050f.tar.gz xtools-1aa10d734b3cfd6fcfa112a9404f7420c649050f.tar.xz xtools-1aa10d734b3cfd6fcfa112a9404f7420c649050f.zip |
xvoidstrap: allow relative dirs, add aarch64 mirror
-rwxr-xr-x | xvoidstrap | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xvoidstrap b/xvoidstrap index 00104ff..34d314e 100755 --- a/xvoidstrap +++ b/xvoidstrap @@ -14,10 +14,8 @@ fi umask 0022 -case "$1" in - /*) CHROOT=$1; shift;; - *) fail 'no absolute chroot dir given';; -esac +CHROOT=$1 +shift [ -d "$CHROOT" ] || fail 'not a directory' @@ -39,6 +37,7 @@ fi xbps-install \ -R ${XVOIDSTRAP_MIRROR:-https://repo-default.voidlinux.org/current} \ -R ${XVOIDSTRAP_MIRROR:-https://repo-default.voidlinux.org/current}/musl \ + -R ${XVOIDSTRAP_MIRROR:-https://repo-default.voidlinux.org/current}/aarch64 \ -S -r "$CHROOT" \ ${@:-base-system lvm2 cryptsetup grub} |