OverlayFS doesn't work on 3.18 #389

Closed
ajf opened this Issue Dec 27, 2014 · 3 comments

Comments

Projects
None yet
4 participants

ajf commented Dec 27, 2014

Upstream kernel changed "overlayfs" to "overlay" for the filesystem type with this commit:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ef94b1864d1ed5be54376404bb23d22ed0481feb

LXC uses "overlayfs", so LXC doesn't work with a vanilla 3.18 Linux kernel. Changing 'overlayfs' to 'overlay' in bdev.c seems to fix the issue.

Contributor

CameronNemo commented Dec 29, 2014

We need to have it use overlayfs if it is available, so just changing the fs name to overlay is not enough. Perhaps checking the available filesystems through /proc/filesystems in order to determine whether overlay or overlayfs should be used is a good idea?

ajf commented Jan 2, 2015

Yeah, that sounds reasonable, it's how docker detects whether or not overlayfs is available.

@stgraber stgraber added the Bug label Jan 26, 2015

Owner

stgraber commented Jan 26, 2015

We have support for this in lxc-start-ephemeral and Serge is testing a patch to get it in for the wider bdev support now.

@stgraber stgraber added this to the lxc-1.1 milestone Jan 26, 2015

@hallyn hallyn closed this in 38b3491 Jan 26, 2015

hallyn added a commit that referenced this issue Jan 30, 2015

Use 'overlay' as fs name when needed
Close #389

We will probably also want to switch the order of the mount attempts, as
the new overlay fs should quickly become the more common scenario.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>

z-image pushed a commit to z-image/lxc that referenced this issue Oct 16, 2016

Use 'overlay' as fs name when needed
Close #389

We will probably also want to switch the order of the mount attempts, as
the new overlay fs should quickly become the more common scenario.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment