]> Zhao Yanbai Git Server - minix.git/commitdiff
mkboot: ensure image target dir is cleaned up
authorArun Thomas <arun@minix3.org>
Thu, 16 Feb 2012 22:08:22 +0000 (23:08 +0100)
committerArun Thomas <arun@minix3.org>
Thu, 16 Feb 2012 22:08:22 +0000 (23:08 +0100)
tools/mkboot

index 0389cb70742841dd7bfd8cf772b5eea9adca0ab3..3c48fdeeed4725f7e8e87b9bb1708d7596c87841 100755 (executable)
@@ -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