diff --git a/install.inc b/install.inc index be8ddb2..3e27a58 100644 --- a/install.inc +++ b/install.inc @@ -42,8 +42,9 @@ function download_version() fi mount_efi "$drive" - mv boot-initrd "$mnt"/"$imagepath"/boot-initrd."$release_version" - mv boot-kernel "$mnt"/"$imagepath"/boot-kernel."$release_version" + mkdir -p "$mnt""$imagepath" + mv boot-initrd "$mnt""$imagepath"/boot-initrd."$release_version" + mv boot-kernel "$mnt""$imagepath"/boot-kernel."$release_version" umount_efi dev_from_partnum "$drive" "$target" diff --git a/install.sh b/install.sh index 1d0f55e..772e173 100755 --- a/install.sh +++ b/install.sh @@ -15,3 +15,4 @@ get_streams get_latest_maas_id download_version "$release_version" "$drive" update_syslinux_menu "$drive" +cleanup_temp diff --git a/update.sh b/update.sh index caf0ed9..92fc253 100755 --- a/update.sh +++ b/update.sh @@ -13,3 +13,4 @@ get_streams get_latest_maas_id download_version "$release_version" "$drive" update_syslinux_menu "$drive" +cleanup_temp