From 5fd192bd2f08188c53ba36f0903bbea71af75cf5 Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Mon, 16 Jun 2014 11:15:29 +0200 Subject: Bug #239 - Getting the version number by using dpkg will not work when upgrading to newer version of debian. --- scripts/install/install-image-existing | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/install/install-image-existing') diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing index 5c042d48..d7f2578b 100755 --- a/scripts/install/install-image-existing +++ b/scripts/install/install-image-existing @@ -66,7 +66,7 @@ if [ -z "$CURVER" ]; then fi # get new version string. this is from the squashfs image. -NEWVER=`dpkg -l --root=${CD_SQUASH_ROOT} | grep "^.. vyatta-version " | awk '{print $3}'` +NEWVER=`cat ${CD_SQUASH_ROOT}/opt/vyatta/etc/version | grep "Version:" | awk '{print $2,$3}' | sed 's/ /-/g'` NEWNAME=$NEWVER echo -n "What would you like to name this image? [$NEWNAME]: " -- cgit v1.2.3