mklive: use xbps-query cmd and proper arch

fixes mistake in 6a56ad6
This commit is contained in:
classabbyamp 2024-12-21 12:44:09 -05:00
parent 76018f0a95
commit be5844985f
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ install_packages() {
if [ -f "$ROOTFS"/etc/default/libc-locales ]; then
sed -e "s/\#\(${LOCALE}.*\)/\1/g" -i "$ROOTFS"/etc/default/libc-locales
fi
if xbps-query -r "$ROOTFS" dkms >/dev/null 2>&1; then
if XBPS_ARCH=$BASE_ARCH "$XBPS_QUERY_CMD" -r "$ROOTFS" dkms >/dev/null 2>&1; then
# dkms modules alphabetically before dkms can't configure
# if dkms hasn't configured beforehand to create /var/lib/dkms
chroot "$ROOTFS" env -i xbps-reconfigure dkms