Skip to content

Commit

Permalink
sle15: Before loading the newly built modules make sure nothing is lo…
Browse files Browse the repository at this point in the history
…aded

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]>
  • Loading branch information
e4t committed Nov 28, 2024
1 parent 6a5963c commit 616a428
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sle15/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ _build() {

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

Expand Down

0 comments on commit 616a428

Please sign in to comment.