lh_binary_rootfs: Remove

mksquashfs has a nasty habit of segfaulting when creating an image where
an image already exists. This can happen, for example, if you are
performing multiple runs of lh_binary and the build breaks for some reason.

This is almost certainly a bug in mksquashfs; I will look into finding a
suitable testcase.
This commit is contained in:
Chris Lamb 2008-03-23 04:08:46 +00:00
parent 32f6dcd3a3
commit 31dca28f67
1 changed files with 3 additions and 0 deletions

View File

@ -215,6 +215,9 @@ case "${LH_CHROOT_FILESYSTEM}" in
rm -f binary/${INITFS}/filesystem.squashfs
fi
# Remove stale squashfs image
rm -f chroot/filesystem.squashfs
if [ "${LH_QUIET}" = "enabled" ] && [ "${LH_DISTRIBUTION}" != "etch" ] && [ "${LH_DISTRIBUTION}" != "testing" ]
then
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -no-progress"