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
|
fi
|
||||||
|
|
||||||
mount_efi "$drive"
|
mount_efi "$drive"
|
||||||
mv boot-init "$mnt"/boot-initrd."$release_version"
|
mv boot-initrd "$mnt"/"$imagepath"/boot-initrd."$release_version"
|
||||||
mv boot-kernel "$mnt"/boot-kernel."$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"
|
||||||
|
|
|
@ -15,5 +15,3 @@ 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"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
. syslinux.inc
|
. syslinux.inc
|
||||||
. drive.inc
|
. drive.inc
|
||||||
|
imagepath='/os/focal-maas'
|
||||||
|
|
||||||
function update_syslinux_menu()
|
function update_syslinux_menu()
|
||||||
{
|
{
|
||||||
local drive="$1"
|
local drive="$1"
|
||||||
declare -A versions
|
declare -A versions
|
||||||
declare -a files
|
declare -a files
|
||||||
local imagepath='/os/focal-maas'
|
|
||||||
|
|
||||||
files=('boot-kernel.', 'boot-initrd.')
|
files=('boot-kernel.', 'boot-initrd.')
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ function update_syslinux_menu()
|
||||||
|
|
||||||
find_newest "$drive"
|
find_newest "$drive"
|
||||||
|
|
||||||
|
> "$mnt"/items.cfg
|
||||||
if [ -n "$newest" ]; then
|
if [ -n "$newest" ]; then
|
||||||
echo "DEFAULT cloud-init-$newest" >> "$mnt"/items.cfg
|
echo "DEFAULT cloud-init-$newest" >> "$mnt"/items.cfg
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user