Skip to content

[SMAGENT-968] Ensure the /lib/modules symlink to /host/lib/modules is set correctly#1177

Merged
bertocci merged 1 commit intodevfrom
lib_modules_fix
Jul 16, 2018
Merged

[SMAGENT-968] Ensure the /lib/modules symlink to /host/lib/modules is set correctly#1177
bertocci merged 1 commit intodevfrom
lib_modules_fix

Conversation

@bertocci
Copy link

If /lib/modules exists in the base image, the symlink will get created at
/lib/modules/modules. This removes any existing empty directory but will
fail if we try to remove a non-empty /lib/modules. (Punting on how to
handle non-empty base image dirs for now)

I'm propagating the changes from draios/agent-rhel#3. They aren't needed immediately for the debian base image, but it doesn't hurt, protects against future changes, and keeps the dockerfiles uniform.

If /lib/modules exists in the base image, the symlink will get created at
/lib/modules/modules. This removes any existing empty directory but will
fail if we try to remove a non-empty /lib/modules. (Punting on how to
handle non-empty base image dirs for now)
@bertocci bertocci self-assigned this Jul 13, 2018
@bertocci bertocci merged commit 1f99ebc into dev Jul 16, 2018
@bertocci bertocci deleted the lib_modules_fix branch July 16, 2018 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants