Wind River Support Network

HomeDefectsLINCD-2587
Fixed

LINCD-2587 : ostree: cryptfs-tpm2: error while loading shared libraries: libcryptfs-tpm2.so: cannot open shared object file: No such file or directory

Created: Jul 15, 2020    Updated: Jul 23, 2020
Resolved Date: Jul 20, 2020
Found In Version: 10.20.30.0
Fix Version: 10.20.30.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

$ setup.sh --machines=intel-x86-64 --templates feature/ostree feature/efi-secure-boot feature/encrypted-storage feature/ima --layers wr-ostree --distro wrlinux --accept-eula=yes --dl-layers
$ source environment-setup-x86_64-wrlinuxsdk-linux
$ source oe-init-build-env build
$ bitbake wrlinux-image-std wrlinux-image-small


The target will reboot repeatedly and can not install the expected image.

Boot message:
[snip]
sda: sda1 sda2 sda3 sda4 sda5 sda6
sd 1:0:0:0: [sda] Attached SCSI removable disk
random: fast init done
e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending select for 128.224.179.137
udhcpc: lease of 128.224.179.137 obtained, lease time 600
/etc/udhcpc.d/50default: Adding DNS 128.224.160.11
/etc/udhcpc.d/50default: Adding DNS 147.11.100.30
/etc/udhcpc.d/50default: Adding DNS 147.11.1.11
 sda: sda1 sda2 sda3 sda4 sda5 sda6
Setting name!
partNum is 0
 sda: sda1 sda2 sda3 sda4 sda5 sda6
 sda: sda1
 sda: sda1
The operation has completed successfully.
Setting name!
partNum is 1
Setting name!
partNum is 2
Setting name!
partNum is 3
Setting name!
partNum is 4
Setting name!
partNum is 5
random: crng init done
Disk /dev/sda: 30031872 sectors, 14.3 GiB
Model: Ultra USB 3.0 
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 311FA670-29B4-4469-949A-10A2DEE81F01
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 30031838
Partitions will be aligned on 2048-sector boundaries
Total free space is 4062 sectors (2.0 MiB)

Number Start (sector) End (sector) Size Code Name
 1 4096 528383 256.0 MiB EF00 otaefi
 2 528384 937983 200.0 MiB 8300 otaboot
 3 937984 3805183 1.4 GiB 8300 otaroot
 4 3805184 4214783 200.0 MiB 8300 otaboot_b
 5 4214784 7081983 1.4 GiB 8300 otaroot_b
 6 7081984 30031838 10.9 GiB 8300 fluxdata
 sda: sda1 sda2 sda3 sda4 sda5 sda6
 sda: sda1 sda2 sda3 sda4 sda5 sda6
The operation has completed successfully.
 sda: sda1 sda2 sda3 sda4 sda5 sda6
fatlabel: warning - lowercase labels might not work properly with DOS or Windows
mke2fs 1.45.6 (20-Mar-2020)
/dev/sda2 contains a ext4 file system labelled 'otaboot'
 created on Wed Jul 15 15:48:50 2020
Creating filesystem with 204800 1k blocks and 51200 inodes
Filesystem UUID: 9161ce2a-04cb-4203-8e11-77a6515e1eea
Superblock backups stored on blocks: 
 8193, 24577, 40961, 57345, 73729

Allocating group tables: 0/25 done 
Writing inode tables: 0/25 done 
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: 0/25 done

mke2fs 1.45.6 (20-Mar-2020)
/dev/sda3 contains a ext4 file system labelled 'otaroot'
 created on Wed Jul 15 15:48:50 2020
Creating filesystem with 358400 4k blocks and 89760 inodes
Filesystem UUID: 61a15d91-d983-4f74-8e62-2c516909fe93
Superblock backups stored on blocks: 
 32768, 98304, 163840, 229376, 294912

Allocating group tables: 0/11        done 
Writing inode tables: 0/11          done 
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: 0/11 done

mke2fs 1.45.6 (20-Mar-2020)
/dev/sda4 contains a ext4 file system labelled 'otaboot_b'
 created on Wed Jul 15 15:48:51 2020
Creating filesystem with 204800 1k blocks and 51200 inodes
Filesystem UUID: b1cc16f2-152b-4570-87f2-69634b5289b9
Superblock backups stored on blocks: 
 8193, 24577, 40961, 57345, 73729

Allocating group tables: 0/25 done 
Writing inode tables: 0/25 done 
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: 0/25 done

mke2fs 1.45.6 (20-Mar-2020)
/dev/sda5 contains a ext4 file system labelled 'otaroot_b'
 created on Wed Jul 15 15:48:51 2020
Creating filesystem with 358400 4k blocks and 89760 inodes
Filesystem UUID: 0abacfcb-bb4a-4960-9573-d7859023db72
Superblock backups stored on blocks: 
 32768, 98304, 163840, 229376, 294912

Allocating group tables: 0/11 done 
Writing inode tables: 0/11 done 
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: 0/11 done

/dev/sda6 is already a LUKS partition
Enforce creating the LUKS partition

******************************************************************
The primary key and passphrase previously created will be wiped,
so the data protected by them cannot be restored any more!!!
Make sure you know what to do before confirming current operation.
******************************************************************

Installation confirmed
TPM device /dev/tpm0 detected
mcryptfs-tpm2: error while loading shared libraries: libcryptfs-tpm2.so: cannot open shared object file: No such file or directory
sysrq: Resetting

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machines=intel-x86-64 --templates feature/ostree feature/efi-secure-boot feature/encrypted-storage feature/ima --layers wr-ostree --distro wrlinux --accept-eula=yes --dl-layers



source environment-setup-x86_64-wrlinuxsdk-linux

source oe-init-build-env build

cp /lpg-build/cdc/WASSP_LINUX_MASTER_WR/testcases/wrlinux/wr-testing/bts-dev/test-plan/ostree_security.ini customized_test_plan.ini

 

The following extra variables will be added into conf/local.conf:
Add OSTREE_REMOTE_URL = "http://pek-lpggp5.wrs.com/OSTREE_PUBLIC_REPO/latest_intel-x86-64_2958/ostree_repo/" into local.conf
Add GPG_PATH = "/tmp/tmp.9vTDVASlVv" into local.conf
Add IMAGE_INSTALL_append = " nfs-utils-mount" into local.conf
Add OSTREE_USE_AB = "1" into local.conf

bitbake-layers add-layer /lpg-build/cdc/WASSP_LINUX_MASTER_WR/testcases/wrlinux/wr-testing/bts-dev && echo require templates/feature/bts/template.conf >> conf/local.conf && echo IMAGE_FSTYPES += \" tar.bz2\" >> conf/local.conf &&echo BB_NO_NETWORK_pn-lmbench = \"0\" >> conf/local.conf &&echo ACTIVE_PLAN = \"customized_test_plan.ini\" >> conf/local.conf &&echo IMAGE_FSTYPES_remove = \" live hddimg iso\" >>conf/local.conf

 

bitbake wrlinux-image-std wrlinux-image-small
Live chat
Online