Adding casper 1.81+debian-4. debian/1.81+debian-4
authorDaniel Baumann <daniel@debian.org>
Sun, 23 Sep 2007 12:46:31 +0000 (14:46 +0200)
committerDaniel Baumann <daniel@debian.org>
Sun, 23 Sep 2007 12:46:31 +0000 (14:46 +0200)
debian/changelog
hooks/casper
scripts/casper-helpers

index a2ea3c4..506b8a7 100644 (file)
@@ -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.
index 0ca7ecb..b2d1062 100755 (executable)
@@ -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
 
index 17f7d62..6bfb791 100644 (file)
@@ -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