Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make /usr/local/bin writeable/mutable for MicroShift #1017

Closed
anjannath opened this issue Feb 14, 2025 · 1 comment
Closed

make /usr/local/bin writeable/mutable for MicroShift #1017

anjannath opened this issue Feb 14, 2025 · 1 comment
Assignees

Comments

@anjannath
Copy link
Member

Currently the CI job e2e-microshift is failing on the self-sufficient bundle PR #980, with the following error:

$ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i id_ecdsa_crc [email protected] -- 'sudo cp /home/core/systemd-units/* /etc/systemd/system/ && sudo cp /home/core/systemd-scripts/* /usr/local/bin/'
Warning: Permanently added '192.168.126.11' (ED25519) to the list of known hosts.
cp: cannot create regular file '/usr/local/bin/crc-cluster-status.sh': Read-only file system
cp: cannot create regular file '/usr/local/bin/crc-dnsmasq.sh': Read-only file system
cp: cannot create regular file '/usr/local/bin/crc-pullsecret.sh': Read-only file system
cp: cannot create regular file '/usr/local/bin/crc-routes-controller.sh': Read-only file system
cp: cannot create regular file '/usr/local/bin/crc-systemd-common.sh': Read-only file system 

we need to make the /usr/local/bin` directory mutable to be able to copy the scripts files into it, we can do it similar to what was done for the shared folder mount directory in PR #1002

We can alternatively create the scripts on /opt and set the expected Se Linux label (bin_t) to the script files but this feels messy as required label might get updated, while /usr/local/bin will always have the proper labels for executable files and can be inherited by the scripts we put there.

@anjannath
Copy link
Member Author

fixed in #1018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants