fix: download path, typos, cq

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

View File

@ -42,8 +42,8 @@ function download_version()
fi
mount_efi "$drive"
mv boot-init "$mnt"/boot-initrd."$release_version"
mv boot-kernel "$mnt"/boot-kernel."$release_version"
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"

View File

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

View File

@ -2,13 +2,13 @@
. syslinux.inc
. drive.inc
imagepath='/os/focal-maas'
function update_syslinux_menu()
{
local drive="$1"
declare -A versions
declare -a files
local imagepath='/os/focal-maas'
files=('boot-kernel.', 'boot-initrd.')
@ -16,6 +16,7 @@ function update_syslinux_menu()
find_newest "$drive"
> "$mnt"/items.cfg
if [ -n "$newest" ]; then
echo "DEFAULT cloud-init-$newest" >> "$mnt"/items.cfg
fi