Skip to content

Commit f7d1d3c

Browse files
Hervy Qurrotul Ainur Rozileahneukirchen
authored andcommitted
fix: detect current _linux_series
1 parent 5fabad1 commit f7d1d3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mklive.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ if [ -n "$LINUX_VERSION" ]; then
374374
_linux_series="$LINUX_VERSION"
375375
PACKAGE_LIST="$PACKAGE_LIST $LINUX_VERSION"
376376
else # Otherwise find latest stable version from linux meta-package
377-
_linux_series=$(XBPS_ARCH=$BASE_ARCH $XBPS_QUERY_CMD -r "$ROOTFS" ${XBPS_REPOSITORY:=-R} -x linux|head -1)
377+
_linux_series=$(XBPS_ARCH=$BASE_ARCH $XBPS_QUERY_CMD -r "$ROOTFS" ${XBPS_REPOSITORY:=-R} -x linux | grep 'linux[0-9._]\+')
378378
fi
379379

380380
_kver=$(XBPS_ARCH=$BASE_ARCH $XBPS_QUERY_CMD -r "$ROOTFS" ${XBPS_REPOSITORY:=-R} -p pkgver ${_linux_series})

0 commit comments

Comments
 (0)