Ask Your Question

SameekshaSChepe's profile - activity

2020-01-13 06:26:15 -0600 asked a question disk-image-create: use mounted file system

Hi,

I am using disk-image-create with AWS codebuild. The build fails for disk space, hence AWS elastic file system is attached to the codebuild. The EFS is available at /efs when the build runs.

However the disk-image-create process uses /tmp itself for intermediate processing. In turn it fails to copy a large file to /data.

I expect disk-image-create to use the /efs path throughout its processing. The source code is copied to /efs and build process is running from the same.

I have changed the disk image target location as follows

  • local_loop:

    name: image0

    directory: /efs/ambientos/images

Also set the following variables

export DIB_TARGET_ROOT=/efs/ambientos/images

export DIB_TMP_HOOKS_PATH=/efs/tmp

Any pointers to fix the build failure due to intermediate disk space issue are appreciated.

2020-01-13 06:26:15 -0600 asked a question Use mounted file system for disk-image-create

Hello,

We are trying to use disk-image-create in AWS codebuild. The codebuild has mounted AWS elastic file system on /efs. We want to use the /efs for the build since the build process runs out of disk space on /. I have updated the DIB block device config to use the /efs for final image build as follows

  • local_loop:

    name: image0

    directory: /efs/images

Also set the following variables as a part of try-outs to use /efs/tmp for the temporary processing

export DIB_TARGET_ROOT=/efs/images

export DIB_TMP_HOOKS_PATH=/efs/tmp

Still the install.d files get executed under /tmp (and NOT /efs/tmp as I expected). The execution fails to copy some large files to /data directory. The source code is copied to /efs and build runs from /efs.

Any pointers to make the disk-image-create use /efs throughout its processing will be appreciated.