fix: detect current _linux_series

This commit is contained in:
Hervy Qurrotul Ainur Rozi 2022-07-09 17:57:51 +07:00 committed by Leah Neukirchen
parent 5fabad111d
commit f7d1d3ce53
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ if [ -n "$LINUX_VERSION" ]; then
_linux_series="$LINUX_VERSION"
PACKAGE_LIST="$PACKAGE_LIST $LINUX_VERSION"
else # Otherwise find latest stable version from linux meta-package
_linux_series=$(XBPS_ARCH=$BASE_ARCH $XBPS_QUERY_CMD -r "$ROOTFS" ${XBPS_REPOSITORY:=-R} -x linux|head -1)
_linux_series=$(XBPS_ARCH=$BASE_ARCH $XBPS_QUERY_CMD -r "$ROOTFS" ${XBPS_REPOSITORY:=-R} -x linux | grep 'linux[0-9._]\+')
fi
_kver=$(XBPS_ARCH=$BASE_ARCH $XBPS_QUERY_CMD -r "$ROOTFS" ${XBPS_REPOSITORY:=-R} -p pkgver ${_linux_series})