[scripts] mkloopcard.txt: when rsyncing, exclude /dev /proc /sys

This commit is contained in:
Fabio Erculiani 2011-12-29 16:57:36 +01:00
parent 376ffc6417
commit 074accf1ea

View File

@ -121,7 +121,8 @@ umount "${tmp_dir}" || exit 1
echo "Setting up the extfs directory content, mounting on ${tmp_dir}" echo "Setting up the extfs directory content, mounting on ${tmp_dir}"
mount "${ext_part}" "${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 # work out paths to empty and paths to remove
oldifs="${IFS}" oldifs="${IFS}"