Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
a90eedef
Commit
a90eedef
authored
Mar 04, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more comments
parent
15907c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
overlay_syncd
recipes-core/overlay-sync/files/overlay_syncd
+9
-0
No files found.
recipes-core/overlay-sync/files/overlay_syncd
View file @
a90eedef
...
...
@@ -4,6 +4,15 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME
=
overlay_syncd
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
()
{
rsync
-av
--exclude
=
mnt
--exclude
=
tmp
--exclude
=
dev
--exclude
=
var
--exclude
=
run /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment