modification de l'initramfs pour DMCrypt et ecryptfs
This commit is contained in:
@@ -8,12 +8,14 @@ SRC_URI:append = " \
|
||||
file://dmverity \
|
||||
file://cryptfs \
|
||||
file://cryptfs_tpm2 \
|
||||
file://ecryptfs \
|
||||
"
|
||||
|
||||
PACKAGES:append = " \
|
||||
initramfs-module-verity \
|
||||
initramfs-module-cryptfs \
|
||||
initramfs-module-cryptfs-tpm2 \
|
||||
initramfs-module-ecryptfs \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
@@ -23,6 +25,7 @@ do_install:append() {
|
||||
install -d ${D}/${sysconfdir}/cryptfs
|
||||
install -m 0644 ${WORKDIR}/cryptfs_tpm2 ${D}/${sysconfdir}/cryptfs/tpm2
|
||||
install -m 0755 ${WORKDIR}/cryptfs ${D}/init.d/95-cryptfs
|
||||
install -m 0755 ${WORKDIR}/ecryptfs ${D}/init.d/96-ecryptfs
|
||||
}
|
||||
|
||||
SUMMARY:initramfs-module-verity = "initramfs support for dm-verity filesystems"
|
||||
@@ -56,3 +59,14 @@ RDEPENDS:initramfs-module-cryptfs-tpm2 = " \
|
||||
FILES:initramfs-module-cryptfs-tpm2 = " \
|
||||
${sysconfdir}/cryptfs/tpm2 \
|
||||
"
|
||||
|
||||
|
||||
SUMMARY:initramfs-module-ecryptfs = "encrypted directory with support for tpm 2.0"
|
||||
RDEPENDS:initramfs-module-ecryptfs = " \
|
||||
${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'libtss2 libtss2-mu libtss2-tcti-device', '', d)} \
|
||||
tpm2-tools \
|
||||
keyutils \
|
||||
"
|
||||
FILES:initramfs-module-ecryptfs = " \
|
||||
/init.d/96-ecryptfs \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user