Bug#701614: live-boot: persistence not working with luks encrypted image
Package: live-boot
Version: 3.0.1-1
Severity: normal
Dear Maintainer,
persistence not working with luks encrypted image file
patch from bugreport #700902 is applied
test configuration
Partition: Labeled: DEBIAN-HOME
formated as: ext2
contained image file named persistence
size: 210MByte
formated as: luks
contained ext2 filesystem
labeled: persistence
echo "/home" > ./persistence.conf
bootparameter: persistence persistence-encryption=luks,none
during boot no stop to enter passphrase
partition DEBIAN-HOME is mounted to /lib/live/mount/persistence/sda2
image persistent is visible in places, locked and need password to open
will be mounted to /media/persistence/
persistence.conf is present
the attached patch solves the problem
best regards Peter Schaefer
-- Package-specific info:
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-boot depends on:
ii live-boot-initramfs-tools [live-boot-backend] 3.0.1-1
Versions of packages live-boot recommends:
ii live-boot-doc 3.0.1-1
ii live-tools 3.0.18-1
ii rsync 3.0.9-4
ii uuid-runtime 2.20.1-5.3
Versions of packages live-boot suggests:
ii cryptsetup 2:1.4.3-4
pn curlftpfs <none>
pn httpfs2 <none>
pn unionfs-fuse <none>
ii wget 1.14-1
-- no debconf information
diff -Naur a/lib/live/boot/9990-misc-helpers.sh b/lib/live/boot/9990-misc-helpers.sh
--- a/lib/live/boot/9990-misc-helpers.sh 2013-02-24 15:03:59.135585401 +0100
+++ b/lib/live/boot/9990-misc-helpers.sh 2013-02-24 19:18:29.939820346 +0100
@@ -617,7 +617,7 @@
# Load custom keymap
if [ -x /bin/loadkeys -a -r /etc/boottime.kmap.gz ]
then
- loadkeys /etc/boottime.kmap.gz
+ loadkeys -q /etc/boottime.kmap.gz
fi
}
@@ -1017,6 +1017,21 @@
result=$(probe_for_file_name "${overlays}" ${dev})
if [ -n "${result}" ]
then
+ local loopdevice
+ loopdevice=${result##*=}
+ if is_in_comma_sep_list luks ${PERSISTENCE_ENCRYPTION} && is_luks_partition ${loopdevice}
+ then
+ local luksfile
+ luksfile=""
+ if luksfile=$(open_luks_device "${loopdevice}")
+ then
+ result=${result%%=*}
+ result="${result}=${luksfile}"
+ else
+ losetup -d $loopdevice
+ result=""
+ fi
+ fi
ret="${ret} ${result}"
continue
fi
Reply to: