I create a overlayfs by this:
sudo mount -t overlay overlay -olowerdir=lower1:lower2,upperdir=upper,workdir=worker merge
- Can I just copy the files to the
upperdirectory or delete the files in it? - When I copy a new file (same name in
lower2) tolower1, how can I update it inmerge?
Now, I update it by following steps, is this legal?
xxfile inlower2/dir/xxcp xx(new file) tolower1/dir/xxrm merge/dir/xxrm upper/dir/xxmerge/dir/xx fileis same withlower1/dir/xx