wok-6.x rev 20159

syslinux/taziso/isoinfo: add mbr info
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 27 12:41:02 2017 +0100 (2017-12-27)
parents a686b7799fe9
children 7547eb83cc06
files syslinux/stuff/iso2exe/taziso
line diff
     1.1 --- a/syslinux/stuff/iso2exe/taziso	Wed Dec 27 11:28:03 2017 +0100
     1.2 +++ b/syslinux/stuff/iso2exe/taziso	Wed Dec 27 12:41:02 2017 +0100
     1.3 @@ -1312,6 +1312,20 @@
     1.4  	isoinfo -d -i "$ISO" > /tmp/isoinfo$$
     1.5  	if [ -x "$(which iso2exe)" ]; then
     1.6  		echo "----"
     1.7 +		blkid "$ISO" | while read args; do
     1.8 +			set -- $args
     1.9 +			while [ -n "$2" ]; do
    1.10 +				case "$2" in
    1.11 +				*UUID*|PT*) echo $2;;
    1.12 +				esac
    1.13 +				shift
    1.14 +			done
    1.15 +		done
    1.16 +		if ! fdisk -l "$ISO" | grep -q 'valid partition'; then
    1.17 +			fdisk -l "$ISO" | grep heads
    1.18 +			fdisk -l "$ISO" | sed 's/^ *[^ ]* *//;s/  */ /g;$!d'
    1.19 +		fi
    1.20 +		echo "----"
    1.21  		iso2exe -l "$ISO"
    1.22  	fi >> /tmp/isoinfo$$
    1.23  	if [ "$1" ]; then