From a75a309cfbb7d8e77a700c24ec3ec451020f368b Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Sun, 9 Apr 2017 01:04:33 -0400
Subject: [PATCH] debian-installer fix LASTKERNEL calculation

---
 helpers/make-debian-installer | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helpers/make-debian-installer b/helpers/make-debian-installer
index c30245c9f..c18df1a8e 100644
--- a/helpers/make-debian-installer
+++ b/helpers/make-debian-installer
@@ -23,7 +23,7 @@ NETINST=true
 
 find build/pkg-lists -type f | xargs sed -i /media-retriever/d
 
-LASTKERNEL=$(apt-cache showsrc linux-libc-dev|grep ^Version | tac |head -n1|cut -d" " -f2|cut -d. -f1,2,3)
+LASTKERNEL=$(apt-cache show linux-libc-dev|grep ^Version |head -n1|cut -d" " -f2|cut -d. -f1,2,3)
 /bin/sed -i "s/^BASEVERSION.*/BASEVERSION = $LASTKERNEL/g" ./build/config/i386.cfg ./build/config/amd64.cfg
 sed -i "s/^MEDIUM_SUPPORTED.*/MEDIUM_SUPPORTED = cdrom netboot/g" ./build/config/i386.cfg ./build/config/amd64.cfg
 sed -i "/signed/d" ./build/config/amd64.cfg
-- 
GitLab