mklive.sh: fail on unsupported archs

This commit is contained in:
Michal Vasilek 2022-12-27 19:27:14 +01:00 committed by Michael Aldridge
parent 771a5b4b39
commit 581249eb2f
1 changed files with 6 additions and 0 deletions

View File

@ -317,6 +317,12 @@ while getopts "a:b:r:c:C:T:Kk:l:i:I:S:s:o:p:v:h" opt; do
done
shift $((OPTIND - 1))
XBPS_REPOSITORY="$XBPS_REPOSITORY --repository=https://repo-default.voidlinux.org/current --repository=https://repo-default.voidlinux.org/current/musl"
case $BASE_ARCH in
x86_64*|i686*) ;;
*) >&2 echo architecture $BASE_ARCH not supported by mklive.sh; exit 1;;
esac
# Configure dracut to use overlayfs for the writable overlay.
BOOT_CMDLINE="$BOOT_CMDLINE rd.live.overlay.overlayfs=1 "