mkboot: ensure image target dir is cleaned up

This commit is contained in:
Arun Thomas 2012-02-16 23:08:22 +01:00
parent 274212e760
commit 74caf0e21f

View file

@ -126,6 +126,7 @@ hdboot)
if [ "$hdboot_t" = "minix" ]
then
[ -d /boot/minix/.temp ] || exit 1
rm -rf /boot/minix/"$target"/
mv /boot/minix/.temp /boot/minix/"$target"
rm -f /boot/minix_latest
ln -s minix/"$target" /boot/minix_latest