look for cryptsetup in /bin and /sbin
authorAndrew Gaffney <agaffney@gentoo.org>
Fri, 23 Nov 2007 20:45:30 +0000 (20:45 +0000)
committerAndrew Gaffney <agaffney@gentoo.org>
Fri, 23 Nov 2007 20:45:30 +0000 (20:45 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@563 67a159dc-881f-0410-a524-ba9dfbe2cb84

ChangeLog
gen_initramfs.sh
gen_initrd.sh

index cce3e28d9516d6d03610252c880b1050cfdb731f..78e9a70bf2f8c27421427a696ddee638e04cff1b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  23 Nov 2007; Andrew Gaffney <agaffney@gentoo.org> gen_initramfs.sh,
+  gen_initrd.sh:
+  look for cryptsetup in /bin and /sbin
+
   17 Nov 2007; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh:
   Force dmraid to be built with -j1 for bug #188273
 
index 1b24b257a2f4fd2703ca4bf9bbf1468a4bd91e30..79eed735be622dca6226160d5f71c941a51e68a0 100644 (file)
@@ -408,8 +408,15 @@ append_auxilary() {
                        rm -f ${TEMP}/initramfs-aux-temp/sbin/cryptsetup
                        cp /bin/cryptsetup ${TEMP}/initramfs-aux-temp/sbin/cryptsetup
                        chmod +x "${TEMP}/initramfs-aux-temp/sbin/cryptsetup"
+               elsif is_static /sbin/cryptsetup
+               then
+                       print_info 1 "Including LUKS support"
+                       rm -f ${TEMP}/initramfs-aux-temp/sbin/cryptsetup
+                       cp /sbin/cryptsetup ${TEMP}/initramfs-aux-temp/sbin/cryptsetup
+               chmod +x "${TEMP}/initramfs-aux-temp/sbin/cryptsetup"
+
                else
-                       print_info 1 "LUKS support requires static cryptsetup at /bin/cryptsetup"
+                       print_info 1 "LUKS support requires static cryptsetup at /bin/cryptsetup or /sbin/cryptsetup"
                        print_info 1 "Not including LUKS support"
                fi
        fi
index 2d59bcc131f60ed03f551470b756e910419c880b..e0341ae8c4b41d1d02e7b4e363c0dcaa96beb654 100644 (file)
@@ -216,8 +216,14 @@ create_base_initrd_sys() {
                        rm -f ${TEMP}/initrd-temp/sbin/cryptsetup
                        cp /bin/cryptsetup ${TEMP}/initrd-temp/sbin/cryptsetup
                        chmod +x "${TEMP}/initrd-temp/sbin/cryptsetup"
+               elsif is_static /sbin/cryptsetup
+               then
+                       print_info 1 "Including LUKS support"
+                       rm -f ${TEMP}/initrd-temp/sbin/cryptsetup
+                       cp /sbin/cryptsetup ${TEMP}/initrd-temp/sbin/cryptsetup
+                       chmod +x "${TEMP}/initrd-temp/sbin/cryptsetup"
                else
-                       print_info 1 "LUKS support requires static cryptsetup at /bin/cryptsetup"
+                       print_info 1 "LUKS support requires static cryptsetup at /bin/cryptsetup or /sbin/cryptsetup"
                        print_info 1 "Not including LUKS support"
                fi
        fi