]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-test-unpriv: fix the overlayfs mount error
authorPo-Hsu Lin <po-hsu.lin@canonical.com>
Wed, 8 Nov 2017 09:13:58 +0000 (04:13 -0500)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 10 Nov 2017 10:07:18 +0000 (11:07 +0100)
This patch fixes the missing workdir issue for the overlayfs mount command in
the lxc-test-unpriv test.

link: https://bugs.launchpad.net/bugs/1730915
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
src/tests/lxc-test-unpriv

index 6afe11adad5f5de6f9c87c4029c674c803572b73..bf40ebce384f5747442afc3054cc5ab9fa740f37 100755 (executable)
@@ -39,8 +39,8 @@ if modprobe -q overlayfs; then
 
         mount -t tmpfs none ${MOUNTDIR}
 
-        mkdir "${MOUNTDIR}/lowerdir" "${MOUNTDIR}/upperdir" "${MOUNTDIR}/overlayfs"
-        mount -t overlayfs -o lowerdir="${MOUNTDIR}/lowerdir",upperdir="${MOUNTDIR}/upperdir" none "${MOUNTDIR}/overlayfs"
+        mkdir ${MOUNTDIR}/{lowerdir,upperdir,workdir,overlayfs}
+        mount -t overlayfs -o lowerdir="${MOUNTDIR}/lowerdir",upperdir="${MOUNTDIR}/upperdir",workdir="${MOUNTDIR}/workdir" none "${MOUNTDIR}/overlayfs"
 
         CORRECT_LINK_TARGET="${MOUNTDIR}/overlayfs/dummy_file"
         exec 9> "${CORRECT_LINK_TARGET}"