[SCM] Debian Live initramfs hook branch, master, updated. 1.157.1-1-10-g949ecdf

Daniel Baumann daniel at debian.org
Mon Apr 13 13:11:38 UTC 2009


The following commit has been merged in the master branch:
commit 949ecdf2bc53965123ff6cd785a5ab27df082948
Author: Daniel Baumann <daniel at debian.org>
Date:   Mon Apr 13 15:00:38 2009 +0200

    Adding support for persistency on luks.

diff --git a/scripts/live-helpers b/scripts/live-helpers
index 59bdb4f..ff76da6 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -327,6 +327,13 @@ find_cow_device ()
 				break
 			fi
 
+			# Checking for a luks device
+			if is_luks ${devname}
+			then
+				cryptsetup luksOpen ${devname} $(basename ${devname})
+				devname="/dev/mapper/$(basename ${devname})"
+			fi
+
 			if [ "$(/lib/udev/vol_id -l ${devname} 2>/dev/null)" = "${pers_label}" ]
 			then
 				echo "${devname}"

-- 
Debian Live initramfs hook



More information about the debian-live-changes mailing list