rsync single file system (#25)

If proc is mounted in rootfs (e.g., via chroot), rsync will try copying kcore
when permitted to cross file system boundaries.
This commit is contained in:
chz^3 2016-10-09 14:09:25 -07:00 committed by XECDesign
parent d1f766d2b8
commit 017d3a4341
2 changed files with 2 additions and 2 deletions

View file

@ -45,4 +45,4 @@ mount -v $ROOT_DEV ${ROOTFS_DIR} -t ext4
mkdir -p ${ROOTFS_DIR}/boot mkdir -p ${ROOTFS_DIR}/boot
mount -v $BOOT_DEV ${ROOTFS_DIR}/boot -t vfat mount -v $BOOT_DEV ${ROOTFS_DIR}/boot -t vfat
rsync ${EXPORT_ROOTFS_DIR}/ ${ROOTFS_DIR}/ -aHAX rsync -aHAXx ${EXPORT_ROOTFS_DIR}/ ${ROOTFS_DIR}/

View file

@ -27,7 +27,7 @@ copy_previous(){
false false
fi fi
mkdir -p ${ROOTFS_DIR} mkdir -p ${ROOTFS_DIR}
rsync -aHAX ${PREV_ROOTFS_DIR}/ ${ROOTFS_DIR}/ rsync -aHAXx ${PREV_ROOTFS_DIR}/ ${ROOTFS_DIR}/
} }
export -f copy_previous export -f copy_previous