Can't mount / as an overlayfs (maybe rightfully)
Hi everybody,
I was toying with overlayfs and mount namespaces. I was trying to mount one filesystem with it's /usr, /var, etc over the rootfs. The idea is to have several applications or versions of the same application as filesystems, and mount one or another. Let's say a kind of package manager. Nothing new, I think. So I created a tmpfs with three dirs (upper, work, lower), a new mount namespace, and mounted them over the rootfs: Quote:
What am I doing wrong? Maybe it's just not possible, but I would love to know why. TIA, |
Here's Kernel docs on overlayfs https://www.kernel.org/doc/Documenta.../overlayfs.txt
I didn't read anything that specifically mentioned you couldn't overlay on rootfs. |
All times are GMT -5. The time now is 08:44 PM. |