A new user interface for you! Read more...

File F01-savedeviceuuid of Package yast2-installation-usbfix

#!/bin/sh
log "Starting F01-savedeviceuuid..."
log "======================"

import_install_inf

#================================================
# saves the current main device uuid to install.inf 
# for later comparison
#------------------------------------------------
UUID=$(blkid -o udev /dev/$Device | grep ID_FS_UUID= | cut -d\= -f2)

log "Detected UUID: $UUID"

if [ ! -z ${UUID} ]; then
	echo "DeviceUUID: $UUID" >> /etc/install.inf
	import_install_inf
	log "\tSaved device UUID: $DeviceUUID"
else
	log "\tcouldn't determine UUID for $Device"

fi