forked from Bitmessage/sysdeploy
fix: download path, typos, cq
This commit is contained in:
parent
ffbf818c97
commit
df37ee455a
|
@ -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"
|
||||
|
|
|
@ -15,5 +15,3 @@ get_streams
|
|||
get_latest_maas_id
|
||||
download_version "$release_version" "$drive"
|
||||
update_syslinux_menu "$drive"
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user