X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=bin%2Fsave-config;fp=bin%2Fsave-config;h=9a7af99768b1c2f5095475a1747ed2ff683598fa;hp=f7ef85dc2818c39cd29101e4496a46e3a9dc9c52;hb=ec19b33413c8a79c9d65be0f2f4bb62436c690b9;hpb=9f910cc9e7acba789a902eb097cfe23603ef06de diff --git a/bin/save-config b/bin/save-config index f7ef85d..9a7af99 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' + if [ -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