diff options
| author | chz^3 <chzchzchz@gmail.com> | 2016-10-09 14:09:25 -0700 |
|---|---|---|
| committer | XECDesign <XECDesign@users.noreply.github.com> | 2016-10-09 22:09:25 +0100 |
| commit | 017d3a434142386de37655d4454fa2ca9c2c78e9 (patch) | |
| tree | fedf641a61dbeaf0bf01a168c6609069a1cd65a3 | |
| parent | d1f766d2b8bca1654a6740ce759b3d7560505788 (diff) | |
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.
| -rwxr-xr-x | export-image/prerun.sh | 2 | ||||
| -rw-r--r-- | scripts/common | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/export-image/prerun.sh b/export-image/prerun.sh index aaf9bfa..e1aa05d 100755 --- a/export-image/prerun.sh +++ b/export-image/prerun.sh @@ -45,4 +45,4 @@ mount -v $ROOT_DEV ${ROOTFS_DIR} -t ext4 mkdir -p ${ROOTFS_DIR}/boot mount -v $BOOT_DEV ${ROOTFS_DIR}/boot -t vfat -rsync ${EXPORT_ROOTFS_DIR}/ ${ROOTFS_DIR}/ -aHAX +rsync -aHAXx ${EXPORT_ROOTFS_DIR}/ ${ROOTFS_DIR}/ diff --git a/scripts/common b/scripts/common index ad00c08..dd4a5f5 100644 --- a/scripts/common +++ b/scripts/common @@ -27,7 +27,7 @@ copy_previous(){ false fi mkdir -p ${ROOTFS_DIR} - rsync -aHAX ${PREV_ROOTFS_DIR}/ ${ROOTFS_DIR}/ + rsync -aHAXx ${PREV_ROOTFS_DIR}/ ${ROOTFS_DIR}/ } export -f copy_previous |
