X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=bin%2Fsave-config;h=fea435acb61596c211abfa5b317ba152e023aeb9;hp=f7ef85dc2818c39cd29101e4496a46e3a9dc9c52;hb=c69610b1c7dd37023e247037be6638d86c394bad;hpb=b429b30939d16d777bf90f89d6f89da4ce1696b4 diff --git a/bin/save-config b/bin/save-config index f7ef85d..fea435a 100755 --- a/bin/save-config +++ b/bin/save-config @@ -18,12 +18,14 @@ LC_ALL=C [[ $UID != 0 ]] && runas='sudo' # important for /etc - if [ -d /live/overlay ] ; then + 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 (neither /live/overlay nor /live/image)." >&2 + echo "Error: no overlay directories found (like /lib/live/mount/overlay or /live/overlay)." >&2 bailout; exit 1 fi