Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mount /lib/modules as overlay filesystem #1860

Merged

Conversation

arnaldo2792
Copy link
Contributor

Issue number:
N / A

Description of changes:
Related to #1799 , that PR is quite big. I'm taking some of the commits in that PR as their individual PR. The commit in this PR is variant independent, since it changes a package used among all variants.

Mount /lib/modules as overlay filesystem

The /lib/modules directory must have write access in order for us to add kernel modules at runtime. With this commit, an overlay filesystem will be mounted in /lib/modules/ so that kernel modules can be added at runtime.

Testing done:

  • Build an aws-dev Bottlerocket image
  • Confirmed that there is a writable overlay filesystem in /lib/modules

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

The /lib/modules directory must have write access in order for us to add
kernel modules at runtime. With this commit, an overlay filesystem will
be mounted in /lib/modules/ so that kernel modules can be added at
runtime.

Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
@arnaldo2792 arnaldo2792 requested review from bcressey and cbgbt December 9, 2021 01:14
@arnaldo2792 arnaldo2792 merged commit 5a960b8 into bottlerocket-os:develop Dec 10, 2021
@arnaldo2792 arnaldo2792 deleted the lib-modules-overlay branch December 10, 2021 20:29
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.

3 participants