From 4019a7acf0ae5222a752d63f119f91305ab6941e Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Fri, 14 Feb 2025 15:16:16 +0530 Subject: [PATCH] microshift: Create symlink of /usr/local to make is mutable This will allow us to place different scripts which is going to used for self sufficient bundle to `/usr/local/bin` same way it is allowed in the openshift bundles because there also it is symlinked ``` total 136 [...] lrwxrwxrwx. 2 root root 15 Aug 1 2022 local -> ../var/usrlocal ``` --- image-mode/microshift/config/Containerfile.bootc-rhel9 | 1 + 1 file changed, 1 insertion(+) diff --git a/image-mode/microshift/config/Containerfile.bootc-rhel9 b/image-mode/microshift/config/Containerfile.bootc-rhel9 index 9b4522b9..0b8940fa 100644 --- a/image-mode/microshift/config/Containerfile.bootc-rhel9 +++ b/image-mode/microshift/config/Containerfile.bootc-rhel9 @@ -23,3 +23,4 @@ RUN dnf install -y firewalld microshift microshift-release-info cloud-utils-grow # and both are symlink to `var` already RUN rm -fr /opt && ln -sf var/opt /opt && mkdir /var/opt RUN ln -sf var/Users /Users && mkdir /var/Users +RUN rm -fr /usr/local && ln -sf ../var/usrlocal /usr/local && mkdir /var/usrlocal