[SCM] live-boot branch, tmp-persistent-custom, updated. debian/3.0_a25-1-30-g5fc05fe
Tails developers
amnesia at boum.org
Thu Feb 16 14:58:06 UTC 2012
The following commit has been merged in the tmp-persistent-custom branch:
commit 778def645b94a2567a275068b004d544d15877d0
Author: Tails developers <amnesia at boum.org>
Date: Sat Feb 11 21:35:35 2012 +0100
Close unused LUKS devices in all cases.
Previously LUKS partitions whose fs had the incorrect partition label
would be left open when using persistent-storage=partition.
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 344db73..1ea2f17 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -409,11 +409,11 @@ find_persistent_media ()
done
fi
+ overlay_on_dev=""
+ snapshot_on_dev=""
if echo ${PERSISTENT_STORAGE} | grep -qe "\<file\>"
then
devfstype="$(get_fstype ${dev})"
- overlay_on_dev=""
- snapshot_on_dev=""
backing="${persistent_backing}/$(basename ${dev})"
mkdir -p "${backing}"
if is_supported_fs ${devfstype} && try_mount "${dev}" "${backing}" "rw" "${devfstype}"
@@ -441,15 +441,17 @@ find_persistent_media ()
done
done
fi
- if [ -z "${overlay_on_dev}" ]
+ if [ -z "${overlay_on_dev}" ] && [ -z "${snapshot_on_dev}" ]
then
umount ${backing} > /dev/null 2>&1 || true
- if [ -z "${snapshot_on_dev}" ] && [ -n "${luks_device}" ] && /sbin/cryptsetup status "${luks_device}" 1> /dev/null
- then
- /sbin/cryptsetup luksClose "${luks_device}"
- fi
fi
fi
+ if [ -z "${overlay_on_dev}" ] && [ -z "${snapshot_on_dev}" ] && \
+ [ -n "${luks_device}" ] && \
+ /sbin/cryptsetup status "${luks_device}" 1> /dev/null 2>&1
+ then
+ /sbin/cryptsetup luksClose "${luks_device}"
+ fi
done
}
--
live-boot
More information about the debian-live-changes
mailing list