- if [ -d /live/rofs ] ; then
- ORIG_DIR="$(find /live/rofs/ -maxdepth 1 -name \*.squashfs | head -1)"
- else # old version
- ORIG_DIR="/GRML"
+ if [ -d /run/live/rootfs ] ; then
+ ORIG_DIR="$(find /run/live/rootfs/ -maxdepth 1 -name \*.squashfs | head -1)"
+ elif [ -d /lib/live/mount/rootfs ] ; then
+ ORIG_DIR="$(find /lib/live/mount/rootfs/ -maxdepth 1 -name \*.squashfs | head -1)"
+ else
+ echo "Error: no rootfs directories found in '/run/live/rootfs' or '/lib/live/mount/rootfs'." >&2
+ bailout; exit 1