Skip to content

Commit

Permalink
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]>
  • Loading branch information
araujof authored and poiana committed Mar 23, 2022
1 parent 55700f8 commit 26a3b7a
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
Expand Up @@ -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"/*
Expand Down

0 comments on commit 26a3b7a

Please sign in to comment.