← Back to issue list

support project directory with remounted path

View original Github issue

Metadata

Project
rockcraft
Number
#583
Type
issue
State
open
Author
henrymao-zz
Labels
Created
2024-06-12 02:10:16+00:00
Updated
2024-06-12 02:11:55+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Mounted path are not accessible at rockcraft packaging time. In the following example, "debs" in project directory is mounted from another directory. Contents in "debs" are not visible in rockcraft shell, and not accessible during image packing. ``` #sudo mount --bind ../../target/debs/jammy/ debs #rockcraft stage --shell rockcraft-docker-lldp-on-amd64-for-amd64-3099612 ../project# ls debs rockcraft-docker-lldp-on-amd64-for-amd64-3099612 ../project# exit exit #mount | grep debs /dev/xvda1 on /home/ubuntu/sonic-buildimage/dockers/docker-lldp/debs type ext4 (rw,relatime,discard,errors=remount-ro) sudo mount --bind ../../target/debs/jammy/ debs ``` Below is another failure log: ``` Building my-part :: + ls mounted original rockcraft.yaml :: rockcraft.yaml :: :: mounted: :: :: original: :: myfile :: + cp mounted/myfile /root/parts/my-part/install/myfile :: cp: cannot stat 'mounted/myfile': No such file or directory 'override-build' in part 'my-part' failed with code 1. Recommended resolution: Review the scriptlet and make sure it's correct. Failed to execute rockcraft in instance. Full execution log: '/home/cris/.local/state/rockcraft/log/rockcraft-20240606-160506.454710.log' cris@cris-laptop:/tmp/tmp.d7zfXGzS4A $ ls mounted/ myfile ``` ### Why it needs to get done Mounted path are useful to handle large amount of files produced in earlier phases of build.

Evaluation history

No evaluation history available.