diff options
Diffstat (limited to 'meta')
-rwxr-xr-x | meta/recipes-core/volatile-binds/files/mount-copybind | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/volatile-binds/files/mount-copybind b/meta/recipes-core/volatile-binds/files/mount-copybind index fddf520053..e32e675308 100755 --- a/meta/recipes-core/volatile-binds/files/mount-copybind +++ b/meta/recipes-core/volatile-binds/files/mount-copybind | |||
@@ -42,14 +42,14 @@ if [ -d "$mountpoint" ]; then | |||
42 | if ! mount -t overlay overlay -olowerdir="$mountpoint",upperdir="$spec",workdir="$overlay_workdir" "$mountpoint" > /dev/null 2>&1; then | 42 | if ! mount -t overlay overlay -olowerdir="$mountpoint",upperdir="$spec",workdir="$overlay_workdir" "$mountpoint" > /dev/null 2>&1; then |
43 | 43 | ||
44 | if [ "$specdir_existed" != "yes" ]; then | 44 | if [ "$specdir_existed" != "yes" ]; then |
45 | cp -pPR "$mountpoint"/. "$spec/" | 45 | cp -aPR "$mountpoint"/. "$spec/" |
46 | fi | 46 | fi |
47 | 47 | ||
48 | mount -o "bind$options" "$spec" "$mountpoint" | 48 | mount -o "bind$options" "$spec" "$mountpoint" |
49 | fi | 49 | fi |
50 | elif [ -f "$mountpoint" ]; then | 50 | elif [ -f "$mountpoint" ]; then |
51 | if [ ! -f "$spec" ]; then | 51 | if [ ! -f "$spec" ]; then |
52 | cp -pP "$mountpoint" "$spec" | 52 | cp -aP "$mountpoint" "$spec" |
53 | fi | 53 | fi |
54 | 54 | ||
55 | mount -o "bind$options" "$spec" "$mountpoint" | 55 | mount -o "bind$options" "$spec" "$mountpoint" |