I'm trying to mount -o remount
an overlayfs in order to change to an updated lowerdir
:
$ mount -t overlay ovl /mnt -oworkdir=/.work -oupperdir=/upper -olowerdir=/lower
$ mount -t overlay ovl /mnt -oworkdir=/.work -oupperdir=/upper -olowerdir=/lower-new -o remount
The remount seems to work, but no change happens. mount
still shows the old upperdir
:
$ mount
...
ovl on /mnt type overlay (rw,relatime,lowerdir=/lower,upperdir=/upper,workdir=/.work)
I would have expected for the mount parameter to change and for the files coming from lowerdir to be updated accordingly, or for the remount to give an error (with strong preference for the update ;-)