--- /dev/null
+#!/bin/sh
+#
+mkdir -p sqfs
+mkdir cdsqfs
+mount -o loop -t squashfs cdrom/casper/filesystem.squashfs cdsqfs
+if [ $? -ne 0 ] ; then
+ echo "Error mounting squashfs ..."
+ rm -rf cdsqfs
+ exit 1
+fi
+echo "Copying ISO squashfs to sqfs ..."
+rsync -avx -P cdsqfs/. sqfs/.
+#
+umount cdsqfs/
+if [ $? -ne 0 ] ; then
+ umount cdsqfs/
+ if [ $? -ne 0 ] ; then
+ echo "Could not umount cdsqfs ..."
+ exit 1
+ fi
+fi
+rmdir cdsqfs