trustfence: avoid encryption of read-only SQUASHFS
SQUASHFS read-only rootfs cannot be unencrypted on-the-fly so skip encryption if read-only-rootfs is active. Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
parent
f4f84881d7
commit
7c1ab66835
|
|
@ -104,7 +104,10 @@ python () {
|
|||
d.setVar("TRUSTFENCE_ENCRYPT_PARTITIONS", "1");
|
||||
|
||||
# Enable the trustfence initramfs if and only if partition encryption is enabled
|
||||
if (d.getVar("TRUSTFENCE_ENCRYPT_PARTITIONS", True) == "1" and d.getVar("STORAGE_MEDIA", True) == "mmc"):
|
||||
# and not using a read-only rootfs
|
||||
if (d.getVar("TRUSTFENCE_ENCRYPT_PARTITIONS", True) == "1" and \
|
||||
d.getVar("STORAGE_MEDIA", True) == "mmc" and \
|
||||
d.getVar("TRUSTFENCE_READ_ONLY_ROOTFS", True) == "0"):
|
||||
d.setVar("TRUSTFENCE_INITRAMFS_IMAGE", "dey-image-trustfence-initramfs");
|
||||
else:
|
||||
d.setVar("TRUSTFENCE_INITRAMFS_IMAGE", "");
|
||||
|
|
|
|||
Loading…
Reference in New Issue