mkboot: ensure image target dir is cleaned up
This commit is contained in:
parent
274212e760
commit
74caf0e21f
1 changed files with 1 additions and 0 deletions
|
@ -126,6 +126,7 @@ hdboot)
|
||||||
if [ "$hdboot_t" = "minix" ]
|
if [ "$hdboot_t" = "minix" ]
|
||||||
then
|
then
|
||||||
[ -d /boot/minix/.temp ] || exit 1
|
[ -d /boot/minix/.temp ] || exit 1
|
||||||
|
rm -rf /boot/minix/"$target"/
|
||||||
mv /boot/minix/.temp /boot/minix/"$target"
|
mv /boot/minix/.temp /boot/minix/"$target"
|
||||||
rm -f /boot/minix_latest
|
rm -f /boot/minix_latest
|
||||||
ln -s minix/"$target" /boot/minix_latest
|
ln -s minix/"$target" /boot/minix_latest
|
||||||
|
|
Loading…
Reference in a new issue