Signed-off-by: Marco Amadori <amadorim@vdavda.com>
{
if ! grep -qs nopersistent /proc/cmdline && grep -qs persistent /proc/cmdline
then
{
if ! grep -qs nopersistent /proc/cmdline && grep -qs persistent /proc/cmdline
then
+ # ROOTSNAP and HOMESNAP are defined in ${SNAPSHOT_CONF} file
if [ ! -z "${ROOTSNAP}" ]
then
${DO_SNAPSHOT} --resync-string="${ROOTSNAP}"
if [ ! -z "${ROOTSNAP}" ]
then
${DO_SNAPSHOT} --resync-string="${ROOTSNAP}"
if [ -b "${fromdev}" ]
then
if [ -b "${fromdev}" ]
then
+ log_success_msg "Copying snapshot ${fromdev} to ${todir}..."
+
# look for free mem
if [ -n "${HOMEMOUNTED}" -a "${snap_type}" = "HOME" ]
then
# look for free mem
if [ -n "${HOMEMOUNTED}" -a "${snap_type}" = "HOME" ]
then
log_warning_msg "Unable to find the snapshot ${snap_type} medium"
log_warning_msg "Unable to find the snapshot ${snap_type} medium"
if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}"
then
if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}"
then
- log_warning_msg "Impossible to include the ${snap_type} Snapshot"
+ log_warning_msg "Impossible to include the ${snap_type} Snapshot (i)"
return 1
else
if [ -n "${snapfile}" ]
return 1
else
if [ -n "${snapfile}" ]