fix: make image directory, cleanup

This commit is contained in:
Peter Šurda 2021-03-02 20:00:26 +01:00
parent df37ee455a
commit f41bf09a62
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
3 changed files with 5 additions and 2 deletions

View File

@ -42,8 +42,9 @@ function download_version()
fi fi
mount_efi "$drive" mount_efi "$drive"
mv boot-initrd "$mnt"/"$imagepath"/boot-initrd."$release_version" mkdir -p "$mnt""$imagepath"
mv boot-kernel "$mnt"/"$imagepath"/boot-kernel."$release_version" mv boot-initrd "$mnt""$imagepath"/boot-initrd."$release_version"
mv boot-kernel "$mnt""$imagepath"/boot-kernel."$release_version"
umount_efi umount_efi
dev_from_partnum "$drive" "$target" dev_from_partnum "$drive" "$target"

View File

@ -15,3 +15,4 @@ get_streams
get_latest_maas_id get_latest_maas_id
download_version "$release_version" "$drive" download_version "$release_version" "$drive"
update_syslinux_menu "$drive" update_syslinux_menu "$drive"
cleanup_temp

View File

@ -13,3 +13,4 @@ get_streams
get_latest_maas_id get_latest_maas_id
download_version "$release_version" "$drive" download_version "$release_version" "$drive"
update_syslinux_menu "$drive" update_syslinux_menu "$drive"
cleanup_temp