From e9fca8fb9fef917f4402eecb1b9b802d82a46550 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Thu, 7 Jan 2016 21:19:52 +0000 Subject: [PATCH] fixed broken file copy for files in multi level directories Thanks to @marmarek for the report and help fixing! --- vm-systemd/bind-dirs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-systemd/bind-dirs.sh b/vm-systemd/bind-dirs.sh index b91b566..adbfc95 100755 --- a/vm-systemd/bind-dirs.sh +++ b/vm-systemd/bind-dirs.sh @@ -100,7 +100,7 @@ bind_dirs() { fi elif [ -f "$fso_ro" ]; then if [ ! -f "$fso_rw" ]; then - cp --archive --recursive "$fso_ro" "$fso_rw" + cp --archive --recursive --parents "$fso_ro" "$rw_dest_dir" fi else true "$fso_ro is neither a directory nor a file or does not exist, skipping."