From d6f44ad9ca11c8b854935be69fda9f8f6e04082f Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 9 Nov 2016 14:41:18 +0100 Subject: iso2usb.sh: show a bit more version information during a refresh cycle. --- iso2usb.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'iso2usb.sh') diff --git a/iso2usb.sh b/iso2usb.sh index 3d80891..407332a 100644 --- a/iso2usb.sh +++ b/iso2usb.sh @@ -51,6 +51,10 @@ export PATH="/usr/sbin:/sbin:/usr/bin:/bin" OLDPERSISTENCE="" OLDWAIT="" OLDLUKS="" +OLDVERSION="" + +# Version information stored in the ISO file: +VERSION="" # Seconds to add to the initrd as wait-for-root value: WAIT=5 @@ -470,6 +474,9 @@ if [ ! -z "$PROG_MISSING" ] ; then exit 1 fi +# Retrieve the version information from the ISO: +VERSION=$(isoinfo -d -i ${SLISO} 2>/dev/null |grep Application |cut -d: -f2-) + if [ $REFRESH -eq 0 ]; then # We are creating a USB stick from scratch, # i.e. not refreshing the Live content. @@ -483,7 +490,8 @@ else # Confirm refresh: cat </dev/null |grep Application |cut -d: -f2-) if [ -n "$VERSION" ]; then echo "$VERSION" > ${USBMNT}/.isoversion fi -- cgit v1.2.3