Mellanox / bfb-build

BFB (BlueField boot stream and OS installer) build environment
46 stars 25 forks source link

cryptsetup: ERROR: Couldn't resolve device overlay #3

Closed liayan closed 1 year ago

liayan commented 1 year ago

Hello team,

I am trying build through branch DOCA_1.5.1_BSP_3.9.3_Ubuntu_20.04 in an arm64 environment, build command is IMAGE_TYPE=prod ./bfb-build ubuntu 20.04 However, it ends with the error:

Step 70/70 : CMD ["/root/workspace/create_bfb", "-k", "5.15.0-1003.28.ga8d758d-bluefield"]
 ---> Running in 77d8938543f8
Removing intermediate container 77d8938543f8
 ---> a6822ec69016
Successfully built a6822ec69016
Successfully tagged bfb_runtime_ubuntu22.04:latest
Work directory: /root/workspace/bfb
update-initramfs: Generating /boot/initrd.img-5.15.0-1003.28.ga8d758d-bluefield
cryptsetup: ERROR: Couldn't resolve device overlay
cryptsetup: WARNING: Couldn't determine root device
W: Couldn't identify type of root file system for fsck hook
mkdir -p /root/workspace/bfb
cd /root/workspace/bfb
rm -rf initramfs
Rebuilding /root/workspace/bfb/dump-initramfs-v0
99863 blocks
mkdir -p ubuntu
xz: (stdin): Cannot allocate memory
tar: ./ubuntu/image.tar.xz: Cannot write: Broken pipe
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Could anyone give it a quick look? Thanks. Also wondering if crysetup is necessary, can we just disable it?

liayan commented 1 year ago

it seems xz: (stdin): Cannot allocate memory is the real problem. And it could work in my x86 environment. Does anyone know the problem?

liayan commented 1 year ago

Turns out my system was running out of memory.

root@xryan:~# free -m total used free shared buff/cache available Mem: 30677 2300 1739 0 26636 27990 Swap: 8191 48 8143