Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refator(image): commented and moved symlinks inside SKIP_DRIVER_LOADE…
Browse files Browse the repository at this point in the history
…R check

Signed-off-by: Frederico Araujo <[email protected]>
araujof committed Mar 22, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 811b1bf commit 42f3d0e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker/ubi/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -16,13 +16,15 @@
# limitations under the License.
#

rm -fr /usr/src/kernels/ && rm -fr /usr/src/debug/
rm -fr /lib/modules && ln -s $HOST_ROOT/lib/modules /lib/modules
rm -fr /boot && ln -s $HOST_ROOT/boot /boot

# Set the SKIP_DRIVER_LOADER variable to skip loading the driver

if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then

# Required by dkms to find the required dependencies on RedHat UBI
rm -fr /usr/src/kernels/ && rm -fr /usr/src/debug/
rm -fr /lib/modules && ln -s $HOST_ROOT/lib/modules /lib/modules
rm -fr /boot && ln -s $HOST_ROOT/boot /boot

echo "* Setting up /usr/src links from host"

for i in "$HOST_ROOT/usr/src"/*

0 comments on commit 42f3d0e

Please sign in to comment.