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

POC: mount /lib/modules/$(uname...) from a read-only share #93

Open
moul opened this issue Oct 2, 2015 · 2 comments
Open

POC: mount /lib/modules/$(uname...) from a read-only share #93

moul opened this issue Oct 2, 2015 · 2 comments

Comments

@moul
Copy link
Contributor

moul commented Oct 2, 2015

  • Today we have a script that syncs current kernel modules to disk from our mirrors
  • The idea is to mount the directory containing the kernel modules on /lib/modules instead of syncing

Pros:

  • /lib/modules is always up to date with the kernel (dynamically mounted based on the current kernel)
  • can be done from the initrd, so before every init scripts, so no more hacks on init scripts for the first boot
  • save space on user disks
  • avoid conserve multiple kernels when switching bootscript often

Cons:

  • having a new mountpoint may be disappointing for people
  • it may be more difficult to build kernel moduels, we should find a hack as creating a symlink to /usr/src/linux on /lib/modules/${KERNELVERS}/modules/build

I like this solution and as usual it can be disabled using flags in initrd, so people can use the old method (mirror syncing) if they prefer

@ElNounch
Copy link
Contributor

A PoC using CephFs, mounting a partial mirror of http://mirror.scaleway.com/ on /media/scaleway read-only.
master...ElNounch:PoC_ceph
Act as an helper to scaleway/image-tools#170

@moul
Copy link
Contributor Author

moul commented Mar 21, 2016

As said in scaleway/image-tools#170 (comment), thank you, you're awesome!

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

No branches or pull requests

2 participants