summaryrefslogtreecommitdiffstats
path: root/iso2usb.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-12-24 18:00:18 +0100
committer Eric Hameleers <alien@slackware.com>2015-12-24 18:00:18 +0100
commit47433e5a60cd74da9d3abca82febfd4f84157619 (patch)
tree4e751f19e9931d0f64272cefa5031fc6e0aacc44 /iso2usb.sh
parent8e8b8921cabb2cb56eb27e1e36222f6eada329c5 (diff)
downloadliveslak-47433e5a60cd74da9d3abca82febfd4f84157619.tar.gz
liveslak-47433e5a60cd74da9d3abca82febfd4f84157619.tar.xz
Stamp a VERSION number in the ISO, and to the USB partition.
Diffstat (limited to 'iso2usb.sh')
-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)