diff options
author | Roland Clobus <rclobus@rclobus.nl> | 2021-01-01 16:51:02 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2021-01-01 16:51:02 +0000 |
commit | 037e93fe37f8b5d974e3e6219fa6ee94ad5cf504 (patch) | |
tree | e69a07c5d4d2ccc5cfc9bcec3766f445c832deeb /scripts/build/binary_manifest | |
parent | 3f7dd00fcb83177e679e9f1449200dee11dc1531 (diff) | |
download | vyos-live-build-037e93fe37f8b5d974e3e6219fa6ee94ad5cf504.tar.gz vyos-live-build-037e93fe37f8b5d974e3e6219fa6ee94ad5cf504.zip |
Preserve timestamps
Diffstat (limited to 'scripts/build/binary_manifest')
-rwxr-xr-x | scripts/build/binary_manifest | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/build/binary_manifest b/scripts/build/binary_manifest index e032cd844..382305611 100755 --- a/scripts/build/binary_manifest +++ b/scripts/build/binary_manifest @@ -50,13 +50,17 @@ case "${LB_INITRAMFS}" in esac # Add filesystem.packages -cp chroot.packages.live "binary/${INITFS}/filesystem.${SUFFIX}" -echo "$(diff chroot.packages.live chroot.packages.install | awk '/^< / { print $2 }')" \ +cp -a chroot.packages.live "binary/${INITFS}/filesystem.${SUFFIX}" +diff chroot.packages.live chroot.packages.install | awk '/^< / { print $2 }' \ > "binary/${INITFS}/filesystem.${SUFFIX}-remove" +if [ ! -s "binary/${INITFS}/filesystem.${SUFFIX}-remove" ] +then + rm "binary/${INITFS}/filesystem.${SUFFIX}-remove" +fi -cp chroot.packages.live ${LB_IMAGE_NAME}-${LB_ARCHITECTURE}.packages +cp -a chroot.packages.live ${LB_IMAGE_NAME}-${LB_ARCHITECTURE}.packages -cp chroot.files ${LB_IMAGE_NAME}-${LB_ARCHITECTURE}.files +cp -a chroot.files ${LB_IMAGE_NAME}-${LB_ARCHITECTURE}.files # Creating stage file Create_stagefile |