[remaster/*] use mount --bind trick instead of cp to copy packages cache over to chroots

This commit is contained in:
Fabio Erculiani
2010-12-21 18:52:58 +01:00
parent c10f142fcc
commit 83b05d6ee8
14 changed files with 41 additions and 11 deletions

View File

@@ -7,8 +7,7 @@ umount "${CHROOT_DIR}/proc" &> /dev/null
umount "${CHROOT_DIR}/proc" &> /dev/null
umount "${CHROOT_DIR}/proc" &> /dev/null
echo "Merging back packages"
cp "${CHROOT_PKGS_DIR}"/* "${PKGS_DIR}"/ -Ra
rm -rf "${CHROOT_PKGS_DIR}"{,-nonfree,-restricted}/*
echo "Umounting bind to ${CHROOT_PKGS_DIR}"
umount "${CHROOT_PKGS_DIR}" || exit 1
exit 0