summaryrefslogtreecommitdiffstats
path: root/iso2usb.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--iso2usb.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/iso2usb.sh b/iso2usb.sh
index fe06678..d791c98 100644
--- a/iso2usb.sh
+++ b/iso2usb.sh
@@ -147,7 +147,7 @@ fi
# Are all the required not-so-common add-on tools present?
PROG_MISSING=""
-for PROGN in blkid cpio extlinux fdisk gdisk mkdosfs sgdisk ; do
+for PROGN in blkid cpio extlinux fdisk gdisk iso-info mkdosfs sgdisk ; do
if ! PATH="/sbin:$PATH" which $PROGN 1>/dev/null 2>/dev/null ; then
PROG_MISSING="${PROG_MISSING}-- $PROGN\n"
fi
@@ -267,6 +267,12 @@ cp ${EFIMNT}/EFI/BOOT/bootx64.efi ${USBMNT}/EFI/BOOT
echo "--- Copying files from ISO to USB... takes some time."
rsync -a ${RVERBOSE} ${ISOMNT}/* ${USBMNT}/
+# Write down the version of the ISO image:
+VERSION=$(iso-info ${SLISO} |grep Application |cut -d: -f2- 2>/dev/null)
+if [ -n "$VERSION" ]; then
+ echo "$VERSION" > ${USBMNT}/.isoversion
+fi
+
# Create a temporary extraction directory for the initrd:
mkdir -p /mnt
IMGDIR=$(mktemp -d -p /mnt -t alienimg.XXXXXX)