summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rwxr-xr-xhooks/casper6
-rw-r--r--scripts/casper-helpers10
3 files changed, 23 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index a2ea3c4..506b8a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+casper (1.81+debian-4) unstable; urgency=low
+
+ * Added patch from Serkan Sakar <serkan.sakar@gmx.net> to allow local keymap
+ for use with encryption.
+
+ -- Daniel Baumann <daniel@debian.org> Wed, 11 Apr 2007 09:04:00 +0200
+
casper (1.81+debian-3) unstable; urgency=low
* Added depends to eject.
diff --git a/hooks/casper b/hooks/casper
index 0ca7ecb..b2d1062 100755
--- a/hooks/casper
+++ b/hooks/casper
@@ -75,6 +75,12 @@ manual_add_modules ohci1394
# integrity check
copy_exec /usr/lib/casper/casper-md5check /bin
+# allow to load custom keymap for using encryption
+if [ -x /bin/loadkeys ] && [ -r /etc/console/boottime.kmap.gz ]; then
+ copy_exec /bin/loadkeys /bin
+ cp /etc/console/boottime.kmap.gz $DESTDIR/etc/
+fi
+
cp /usr/share/initramfs-tools/scripts/casper-functions $DESTDIR/scripts
cp /usr/share/initramfs-tools/scripts/casper-helpers $DESTDIR/scripts
diff --git a/scripts/casper-helpers b/scripts/casper-helpers
index 17f7d62..6bfb791 100644
--- a/scripts/casper-helpers
+++ b/scripts/casper-helpers
@@ -108,6 +108,15 @@ fs_size ()
echo "${size}"
}
+
+load_keymap()
+{
+ # Load custom keymap
+ if [ -x /bin/loadkeys -a -r /etc/boottime.kmap.gz ]; then
+ loadkeys /etc/boottime.kmap.gz
+ fi
+}
+
setup_loop() {
local fspath=$1
local module=$2
@@ -130,6 +139,7 @@ setup_loop() {
else
# Loop AES encryption
while true; do
+ load_keymap
echo -n "Enter passphrase for ${fspath}: " >&6
read -s passphrase
echo "${passphrase}" > /tmp/passphrase