Skip to content

build: Support builds/ in workdir being a symlink outside workdir#2774

Merged
jlebon merged 1 commit intocoreos:mainfrom
cgwalters:build-symlink
Mar 23, 2022
Merged

build: Support builds/ in workdir being a symlink outside workdir#2774
jlebon merged 1 commit intocoreos:mainfrom
cgwalters:build-symlink

Conversation

@cgwalters
Copy link
Copy Markdown
Member

This is the case in the RHCOS pipeline today, and we can support
it in the same way we support src/config being a symlink to
outside the workdir.

Note: This only works for absolute symlinks today.

Side note: At some point we should use virtiofs which AIUI will
just fix this by supporting symlinks natively.

Closes: openshift/os#754

This is the case in the RHCOS pipeline today, and we can support
it in the same way we support `src/config` being a symlink to
outside the workdir.

Note: This only works for absolute symlinks today.

Side note: At some point we should use virtiofs which AIUI will
just fix this by supporting symlinks natively.

Closes: openshift/os#754
@cgwalters
Copy link
Copy Markdown
Member Author

To test this locally, I did:

mv builds/ /path/to/tmpdir/builds-outside-workdir
ln -s /path/to/tmpdir/builds-outside-workdir builds
cosa build --force-image

It failed without this patch, and succeeded with.

@jlebon jlebon enabled auto-merge (rebase) March 23, 2022 16:01
Copy link
Copy Markdown
Member

@miabbott miabbott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for the quick turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RHCOS 4.11 failed to build qemu artifact

3 participants