Questions tagged [overlayfs]

For questions concerning the Overlay Filesystem, which was included in Linux kernel 3.18.

121 questions
72
votes
2 answers

Linux Filesystem Overlay - what is workdir used for? (OverlayFS)

OverlayFS has a workdir option, beside two other directories lowerdir and upperdir, which needs to be an empty directory. Unfortunately the kernel documentation of overlayfs does not talk much about the purpose of this option. The "workdir" needs…
12
votes
1 answer

How to modify a lower file through an OverlayFS directory?

I want Linux's OverlayFS to behave like AUFS when writing to a lower file. I want it to write through to the lower directory. For example, suppose I have two files named L/lower and U/upper. mount -t overlay -o lowerdir=L,upperdir=U,workdir=W…
7
votes
1 answer

OverlayFS Seamlessly Edit File in Lower Directory

I'm trying to set up a PXEboot environment in which the base system (served over NFS to the PXE clients) is read only, and the root filesystem is an overlayfs filesystem with the read-only NFS base system as the lowerdir and a tmpfs as the…
4
votes
1 answer

overlayfs with a lot of directories

Say I have an arbitrary number of directories, labeled by numbers. I also have the directory merge. I can do mount -t overlay -olowerdir=1:2:50 overlay merge to get the contents of 1, 2, and 50 in merge. What is the best way to 'add' more…
Dorse
  • 39
2
votes
0 answers

OverlayFS: overlay everything except special dirs

How do I use OverlayFS to overlay my complete system except some special dirs? As far as I understand from reading the docs this is how I would overlay my complete system: (I'd like the overlay to only exist in RAM) mount -t overlay overlay…
Legatio
  • 175
2
votes
2 answers

Can overlayFS support more than two layers?

As far as i read documentation the overlayFS supports two layers - upper and lower. But is there possibility to increase it to three layers?
sibislaw
  • 159
1
vote
1 answer

OverlayFS over read only rootfs fail

I need to keep one system as much intact as possible. Only soldering of HW stuff is allowed :-). I need to install a test software package and this package must not stay there in the future. I have a following situation: mmcblck partition mounted…
Georgi
  • 51
1
vote
1 answer

Why is my overlayfs command not working?

The commands below should be creating a root overlay, such that any modifications to root will appear in /tmp/upper However as you can see it does not appear to be working. Can anyone suggest what I am doing wrong? I am following the syntax here:…
Duke Dougal
  • 1,025
  • 4
  • 18
  • 28