diff options
Diffstat (limited to '')
-rw-r--r-- | iso2usb.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |