#! /bin/sh . ./settings00.sh #umount -R $STRAPROOT/dev #umount -R $STRAPROOT/proc #umount -R $STRAPROOT/sys cat /proc/mounts | awk '{print $2}' | grep "^$STRAPROOT" | sort -r | xargs umount rm -f $STRAPBALL rm -f $STRAPBALL_PLAIN cd $STRAPROOT tar --xattrs -cpf $STRAPBALL_PLAIN . xz -z -k --thread=0 $STRAPBALL_PLAIN rm -f $STRAPBALL_PLAIN # Extract on target: # cd $STRAPROOT # tar --xattrs -xapf $STRAPBALL echo you may continue the process with deblive01.sh to produce the live-image