Skip to content

Instantly share code, notes, and snippets.

@tiebingzhang
Created June 11, 2021 17:23
Show Gist options
  • Save tiebingzhang/563d50704a613de7da8e70f273736cae to your computer and use it in GitHub Desktop.
Save tiebingzhang/563d50704a613de7da8e70f273736cae to your computer and use it in GitHub Desktop.
unionfs/overlayfs fuse on older kernels (e.g. centos 6)

build it

sudo yum install gcc fuse-devel wget unzip
wget "https://github.com/rpodgorny/unionfs-fuse/archive/refs/heads/master.zip"
unzip master.zip
cd unionfs-fuse-master/
make
sudo make install

mount it

mkdir  ./overlay
# assume you already have a "lower" and "upper" directory
unionfs -o cow  ./top/=RW:./lower/ ./overlay/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment