[Pkg-cryptsetup-devel] Bug#358452: Probing for LUKS rather than
partition type detection.
Drake Diedrich
dld at google.com
Wed Apr 12 00:02:07 UTC 2006
I was about to file a similar wishlist and found that there was already a
well-evolved set of scripts in this one. Rather than rely on partition
types (luks is a partition type?), I had my init-premount script use
cryptsetup and an encrypted= cmdline, as follows:
export ENCRYPTED=
for x in $(cat /proc/cmdline); do
case $x in
encrypted=*)
ENCRYPTED=${x#encrypted=}
if cryptsetup isLuks ${ENCRYPTED}
then
cryptsetup luksOpen ${ENCRYPTED}
${ROOT#/dev/mapper/}
fi
;;
esac
done
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20060411/4fd24072/attachment-0001.html
More information about the Pkg-cryptsetup-devel
mailing list