X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=bin%2Flive-snapshot;h=08e5fd654adf08609dc9d7a411da83fc58b3f3a1;hb=52dcef518bdb95605670b8dc12257057bf7a2dc0;hp=18b067bda71924b5b3abea8501b7e5d45c189397;hpb=52575f3515b9a6a86a358238cf687a26ad799414;p=live-boot-grml.git diff --git a/bin/live-snapshot b/bin/live-snapshot index 18b067b..08e5fd6 100755 --- a/bin/live-snapshot +++ b/bin/live-snapshot @@ -4,7 +4,7 @@ # # This program mounts a device (fallback to /tmpfs under $MOUNTP # and saves the /live/cow (or a different directory) filesystem in it -# for reuse in another live-initramfs session. +# for reuse in another live-boot session. # Look at the manpage for more informations. # # Copyright (C) 2006-2008 Marco Amadori @@ -40,7 +40,11 @@ fi . /usr/share/initramfs-tools/scripts/live-helpers LIVE_CONF="/etc/live.conf" -. "${LIVE_CONF}" + +if [ -r "${LIVE_CONF}" ] +then + . "${LIVE_CONF}" +fi export USERNAME USERFULLNAME HOSTNAME @@ -443,10 +447,10 @@ Do_snapshot () grep -F -v -f "${EXCLUDE_LIST}" | \ tr '\n' '\0' | \ tr '\1' '\n' | \ - $COPY_CMD || exit 1 + eval $COPY_CMD || exit 1 else cat "${TMP_FILELIST}" | \ - $COPY_CMD || exit 1 + eval $COPY_CMD || exit 1 fi cd "${OLDPWD}" ;;