+ [[ $UID != 0 ]] && runas='sudo' # important for /etc
+
+ if [ -d /lib/live/mount/overlay ] ; then # since around December 2012
+ CHANGE_DIR='/lib/live/mount/overlay'
+ elif [ -d /live/overlay ] ; then # until around December 2012
+ CHANGE_DIR='/live/overlay'
+ elif [ -d /live/image ] ; then # old version
+ CHANGE_DIR='/live/image'
+ else
+ echo "Error: no overlay directories found (like /lib/live/mount/overlay or /live/overlay)." >&2
+ bailout; exit 1
+ fi