update/sw-patch
Chris Friesen 5435387623 Add support for symlinks instead of bindmounts for version control
We have been using bind mounts to select K8s versions, but they are not
well supported by Puppet and suffer from fragility since you cannot
remove a bind mount while an executable is still running from it.  They
also need to be re-created when creating an OSTree hotfix or when
applying software patches.

Symlinks suffer from no such issues, they just need to be created in
a filesystem that is not managed by OSTree.

Accordingly, make the current bindmount-related code conditional on
the bindmount directory actually being present.  That way the code
will not complain when we switch to using symlinks.

Story: 2011047
Task: 49917

TEST PLAN:

PASS: Run the modified code snippet standalone on system where
/usr/local/kubernetes/current/ exists, ensure it attempts to
run the two mount commands.

PASS: Run the modified code snippet standalone on system where
/usr/local/kubernetes/current/ does not exist, ensure it does not
attempt to run the two mount commands.

Change-Id: I1dfea974ae9532cf316bb1fac701ae93f5507681
2024-04-22 12:20:46 -06:00
..
bin Update package extraction from CentOS for Debian 2022-09-13 10:44:38 -04:00
cgcs-patch Add support for symlinks instead of bindmounts for version control 2024-04-22 12:20:46 -06:00
debian Debian: Add gir1.2-ostree-1.0 deb package 2023-03-28 19:09:31 +00:00
scripts Update test-patches restart script 2023-08-14 09:17:32 -07:00