Commit a90eedef authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

more comments

parent 15907c4a
...@@ -4,6 +4,15 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin ...@@ -4,6 +4,15 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=overlay_syncd NAME=overlay_syncd
DESC="overlay sync" DESC="overlay sync"
# Possible problem with overlayfs:
# when using overlays deleting existing in the lower layer dirs can cause error (hopefully it gets fixed someday):
# example:
# * /mnt/sda1 exists in lower layer: /tmp/rootfs.ro/tmp
# * upper layer is mounted to /
# # rmdir /mnt/sda1
# # mkdir /mnt/sda1
# mkdir: cannot create directory '/mnt/sda1': Operation not supported
sync_files () { sync_files () {
rsync -av --exclude=mnt --exclude=tmp --exclude=dev --exclude=var --exclude=run /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/ rsync -av --exclude=mnt --exclude=tmp --exclude=dev --exclude=var --exclude=run /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment