Lines 435-440
Link Here
|
435 |
rm -r "${TEMP}/initramfs-luks-temp/" |
435 |
rm -r "${TEMP}/initramfs-luks-temp/" |
436 |
} |
436 |
} |
437 |
|
437 |
|
|
|
438 |
append_tpmcrypt() { |
439 |
if [ -d "${TEMP}/initramfs-tpmcrypt-temp" ] |
440 |
then |
441 |
rm -r "${TEMP}/initramfs-tpmcrypt-temp" |
442 |
fi |
443 |
|
444 |
mkdir -p "${TEMP}/initramfs-tpmcrypt-temp/sbin" |
445 |
mkdir -p "${TEMP}/initramfs-tpmcrypt-temp/bin" |
446 |
mkdir -p "${TEMP}/initramfs-tpmcrypt-temp/lib/" |
447 |
mkdir -p "${TEMP}/initramfs-tpmcrypt-temp/etc/tpmcrypt" |
448 |
mkdir -p "${TEMP}/initramfs-tpmcrypt-temp/var/run/tpmcrypt" |
449 |
mkdir -p "${TEMP}/initramfs-tpmcrypt-temp/var/log/" |
450 |
|
451 |
cd "${TEMP}/initramfs-tpmcrypt-temp" |
452 |
|
453 |
if isTrue ${TPMCRYPT} |
454 |
then |
455 |
if [ -e /usr/sbin/tcsd ] |
456 |
then |
457 |
print_info 1 "Including TrouSers support" |
458 |
cp /usr/sbin/tcsd ${TEMP}/initramfs-tpmcrypt-temp/sbin |
459 |
chmod +x "${TEMP}/initramfs-tpmcrypt-temp/sbin/tcsd" |
460 |
sed '/^system_ps_file/ d' /etc/tcsd.conf > ${TEMP}/initramfs-tpmcrypt-temp/etc/tcsd.conf |
461 |
echo "system_ps_file = /etc/tpmcrypt/tpmcrypt.data" >> ${TEMP}/initramfs-tpmcrypt-temp/etc/tcsd.conf |
462 |
if is_static /bin/tpmcrypt_mount && is_static /sbin/tpmcrypt_keyproviderd |
463 |
then |
464 |
print_info 1 "Not implemented" |
465 |
else |
466 |
print_info 1 "Including TpmCrypt support" |
467 |
cp /usr/bin/tpmcrypt_mount ${TEMP}/initramfs-tpmcrypt-temp/bin/ |
468 |
chmod +x "${TEMP}/initramfs-tpmcrypt-temp/bin/tpmcrypt_mount" |
469 |
cp /usr/sbin/tpmcrypt_keyproviderd ${TEMP}/initramfs-tpmcrypt-temp/sbin/ |
470 |
chmod +x "${TEMP}/initramfs-tpmcrypt-temp/sbin/tpmcrypt_keyproviderd" |
471 |
cp /var/log/tpmcrypt.log ${TEMP}/initramfs-tpmcrypt-temp/var/log/ |
472 |
chmod 660 "${TEMP}/initramfs-tpmcrypt-temp/var/log/tpmcrypt.log" |
473 |
cp -a -L /usr/lib/libtspi.so.1 ${TEMP}/initramfs-tpmcrypt-temp/lib/ |
474 |
cp -a -L /usr/lib/libgmp.so.3 ${TEMP}/initramfs-tpmcrypt-temp/lib/ |
475 |
fi |
476 |
else |
477 |
print_info 1 "No TrouSers found" |
478 |
print_info 1 "Not including TpmCrypt and TrouSers" |
479 |
|
480 |
fi |
481 |
fi |
482 |
|
483 |
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \ |
484 |
|| gen_die "appending TpmCrypt to cpio" |
485 |
|
486 |
cd "${TEMP}" |
487 |
rm -r "${TEMP}/initramfs-tpmcrypt-temp/" |
488 |
} |
489 |
|
438 |
append_firmware() { |
490 |
append_firmware() { |
439 |
if [ -z "${FIRMWARE_FILES}" -a ! -d "${FIRMWARE_DIR}" ] |
491 |
if [ -z "${FIRMWARE_FILES}" -a ! -d "${FIRMWARE_DIR}" ] |
440 |
then |
492 |
then |
Lines 672-677
Link Here
|
672 |
append_data 'evms' "${EVMS}" |
724 |
append_data 'evms' "${EVMS}" |
673 |
append_data 'mdadm' "${MDADM}" |
725 |
append_data 'mdadm' "${MDADM}" |
674 |
append_data 'luks' "${LUKS}" |
726 |
append_data 'luks' "${LUKS}" |
|
|
727 |
append_data 'tpmcrypt' "${TPMCRYPT}" |
675 |
append_data 'multipath' "${MULTIPATH}" |
728 |
append_data 'multipath' "${MULTIPATH}" |
676 |
append_data 'gpg' "${GPG}" |
729 |
append_data 'gpg' "${GPG}" |
677 |
|
730 |
|