From 26a3b7a01e8bf764ae9f4e9993ea73a28e1f55ab Mon Sep 17 00:00:00 2001 From: Frederico Araujo Date: Tue, 22 Mar 2022 11:25:25 -0400 Subject: [PATCH] refator(image): commented and moved symlinks inside SKIP_DRIVER_LOADER check Signed-off-by: Frederico Araujo --- docker/ubi/docker-entrypoint.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/ubi/docker-entrypoint.sh b/docker/ubi/docker-entrypoint.sh index 48970f90..8c4e1fd1 100755 --- a/docker/ubi/docker-entrypoint.sh +++ b/docker/ubi/docker-entrypoint.sh @@ -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"/*