From 074accf1ea7039ccfd09991cc65bc10e4b11e275 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 29 Dec 2011 16:57:36 +0100 Subject: [PATCH] [scripts] mkloopcard.txt: when rsyncing, exclude /dev /proc /sys --- scripts/mkloopcard.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/mkloopcard.txt b/scripts/mkloopcard.txt index eb85b85..c9d4166 100755 --- a/scripts/mkloopcard.txt +++ b/scripts/mkloopcard.txt @@ -121,7 +121,8 @@ umount "${tmp_dir}" || exit 1 echo "Setting up the extfs directory content, mounting on ${tmp_dir}" mount "${ext_part}" "${tmp_dir}" -rsync -a -H -A -X --delete-during "${CHROOT_DIR}"/ "${tmp_dir}"/ || exit 1 +rsync -a -H -A -X --delete-during "${CHROOT_DIR}"/ "${tmp_dir}"/ --exclude "/proc/*" --exclude "/sys/*" \ + --exclude "/dev/pts/*" --exclude "/dev/shm/*" || exit 1 # work out paths to empty and paths to remove oldifs="${IFS}"