Wind River Support Network

HomeDefectsLIN1019-2890
Fixed

LIN1019-2890 : ostree: Corrupted file object for ostree fsck --repo=/sysroot/ostree/repo on cgl rootfs

Created: Oct 10, 2019    Updated: Dec 25, 2019
Resolved Date: Dec 16, 2019
Found In Version: 10.19.45.1
Fix Version: 10.19.45.3
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: Userspace

Description

setup.sh --machines=intel-x86-64 --distros=wrlinux-cgl --dl-layers --templates feature/ostree --layers wr-ostree --accept-eula=yes . ./oe-init-build-env build echo PREFERRED_PROVIDER_virtual/kernel = "linux-yocto" >> conf/local.conf bitbake wrlinux-image-glibc-std wrlinux-image-glibc-cgl ovmf

In conf/local.conf :
#jhu2 append as below:
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
BB_NUMBER_THREADS ?= "24"
PARALLEL_MAKE ?= "-j 24"
OSTREE_REMOTE_URL = "http://<ostree-server>/path"
IMAGE_ROOTFS_EXTRA_SPACE = "2048000"

dd cgl wic image into one Udisk, then boot target.

root@intel-x86-64:~# cat /ostree/repo/config
[core]
repo_version=1
mode=bare
add-remotes-config-dir=false

[upgrade]
skip-boot-diff=2
branch=wrlinux-image-glibc-cgl
remote=wrlinux

[remote "wrlinux"]
url=http://128.224.162.201/wrl1019_ostree_git_10_10_cgl/ostree_repo/
root@intel-x86-64:~#
root@intel-x86-64:~#
root@intel-x86-64:~#
root@intel-x86-64:~# df -lh
Filesystem      Size  Used Avail Use% Mounted on
none            3.9G     0  3.9G   0% /dev
/dev/sdb3       1.2G  968M  160M  86% /sysroot
/dev/sdb2        45M   29M   13M  70% /boot
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           3.9G  9.1M  3.9G   1% /run
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           3.9G     0  3.9G   0% /tmp
/dev/sdb1        42M  634K   41M   2% /boot/efi
/dev/sdb6        30M   29M     0 100% /var
tmpfs           3.9G  420K  3.9G   1% /var/volatile
tmpfs           785M     0  785M   0% /run/user/0
root@intel-x86-64:~#
root@intel-x86-64:~#
root@intel-x86-64:~# blkid
/dev/sda1: UUID="5e56e575-90fe-4af5-a17f-96689957e4ea" TYPE="ext4" PARTUUID="a876b12d-9bb8-1940-8e9c-640b1ef8c696"
/dev/sdb1: SEC_TYPE="msdos" LABEL_FATBOOT="otaefi" LABEL="otaefi" UUID="49E0-8CFE" TYPE="vfat" PARTLABEL="otaefi" PARTUUID="c7fbc0aa-dbf7-4351-b9f1-3b142675d095"
/dev/sdb2: LABEL="otaboot" UUID="cbeee5ee-39e6-48fe-a17f-5988626650b6" TYPE="ext4" PARTLABEL="otaboot" PARTUUID="d416298e-3c6c-444d-b761-8c13c9eaa1cd"
/dev/sdb3: LABEL="otaroot" UUID="179f2fa0-76d6-4b85-ac46-89a7c3768864" TYPE="ext4" PARTLABEL="otaroot" PARTUUID="88be829d-722e-4abf-b2ab-f8434c435bd7"
/dev/sdb4: LABEL="otaboot_b" UUID="43fbfa5a-7352-4c1d-8a85-a8272a1ead0b" TYPE="ext4" PARTLABEL="otaboot_b" PARTUUID="33f7f9a1-d61f-4596-8e70-477595d9603a"
/dev/sdb5: LABEL="otaroot_b" UUID="be064aa5-16f0-4c62-9a2b-71568701fbe1" TYPE="ext4" PARTLABEL="otaroot_b" PARTUUID="8daadf59-74eb-4a8d-ba92-26eeee605600"
/dev/sdb6: LABEL="fluxdata" UUID="f5aa681d-e65c-4bb9-9709-5f940e2b7321" TYPE="ext4" PARTLABEL="fluxdata" PARTUUID="50e8b599-8b34-4fb6-aa3d-642ab4ff448a"
root@intel-x86-64:~#
root@intel-x86-64:~# ostree admin status
* wrlinux 81f125e07b01ed5625f1e843679b891396b99087cdb130850060708e3c16a87c.0
    origin refspec: wrlinux-image-glibc-cgl
root@intel-x86-64:~#
root@intel-x86-64:~#
root@intel-x86-64:~#
root@intel-x86-64:~# ostree fsck --repo=/sysroot/ostree/repo
Validating refs...
Validating refs in collections...
Enumerating objects...
Verifying content integrity of 1 commit objects...

error: In commits 81f125e07b01ed5625f1e843679b891396b99087cdb130850060708e3c16a87c: fsck content object a6f7dbe56db44ea21ed77919809c02c60266459942140d71bc146c694d102239: Corrupted file object; checksum expected='a6f7dbe56db44ea21ed77919809c02c60266459942140d71bc146c694d102239' actual='4108bcc358f7b3a89559cc8bd30a54fba9eae55283f0da2bb76fe5187ea299fb'
root@intel-x86-64:~#

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machines=intel-x86-64 --distros=wrlinux-cgl --dl-layers --templates feature/ostree --layers wr-ostree --accept-eula=yes . ./oe-init-build-env build echo PREFERRED_PROVIDER_virtual/kernel = "linux-yocto" >> conf/local.conf bitbake  wrlinux-image-glibc-std wrlinux-image-glibc-cgl ovmf
 
In conf/local.conf :
#jhu2 append as below:
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
BB_NUMBER_THREADS ?= "24"
PARALLEL_MAKE ?= "-j 24"
OSTREE_REMOTE_URL = "http://128.224.162.201/wrl1018_ostree_dvd_9_26_default/"
IMAGE_ROOTFS_EXTRA_SPACE = "2048000"

dd cgl wic image into one Udisk, then boot target.
Live chat
Online