From 322d45eeaf84b53edd4a2481ef06a3c0a1a29ec0 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 23 Mar 2008 04:08:46 +0000 Subject: 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. --- helpers/lh_binary_rootfs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs index 109e508..f07609d 100755 --- a/helpers/lh_binary_rootfs +++ b/helpers/lh_binary_rootfs @@ -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" -- cgit v1.0