# 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
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
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