Skip to content

Commit a4604ca

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 ce8b1b9 commit a4604ca

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
@@ -520,6 +520,9 @@ _build() {
520520

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

0 commit comments

Comments
 (0)