Skip to content

Commit 616a428

Browse files
committed
sle15: Before loading the newly built modules make sure nothing is loaded
The module build process may load modules which are installed on the container host itself. Make sure these are unloaded before loading our brand new modules. Signed-off-by: Egbert Eich <[email protected]>
1 parent 6a5963c commit 616a428

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sle15/nvidia-driver

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@ _build() {
519519

520520
_load() {
521521
_mount_rootfs
522+
# Something in the build process may have decided to load drivers that happened to be installed.
523+
# Make sure they are uninstalled.
524+
lsmod | grep -q nvidia && { _unload_driver || exit 1; } || true
522525
_load_driver || exit 1
523526
_write_kernel_update_hook
524527

0 commit comments

Comments
 (0)