Otherwise xz will refuse to overwrite it. Explicitly delete it
instead of passing -f to xz because that also forces a lot of
other things, not just file overwrite.
Change-Id: Iec3c73c9ae4775039eb9c3afed91bfaa4ebedb5d
# Check if we need to uncompress the disk image.
# We use xz because it compresses better: to 42M vs 72M (gzip) / 62M (bzip2).
if [ $ROOTFS.xz -nt $ROOTFS ]; then
+ echo "Deleting $ROOTFS" >&2
+ rm -f $ROOTFS
echo "Uncompressing $ROOTFS.xz" >&2
unxz --keep $ROOTFS.xz
fi