fix: syslinux install order

This commit is contained in:
Peter Šurda 2021-03-03 12:30:15 +01:00
parent c4544b24a5
commit dda63f7ce1
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
2 changed files with 4 additions and 8 deletions

View File

@ -37,7 +37,7 @@ function file_url()
{
local release_version="$1"
local filename="$2"
local baseurl="https://images.maas.io/ephemeral-v3/stable/"
local baseurl="https://images.maas.io/ephemeral-v3/stable"
if [ ! -f "$streams" ]; then
return 1

View File

@ -46,15 +46,8 @@ function install_syslinux()
apt -yq install syslinux syslinux-common syslinux-efi
sleep 5
dev_from_partnum "$drive" 1
syslinux "$partition"
sync
sleep 5
dd bs=440 count=1 conv=notrunc \
if=/usr/lib/syslinux/mbr/gptmbr.bin of="$drive"
sync
sleep 5
mount_efi "$drive"
@ -71,6 +64,9 @@ function install_syslinux()
cp syslinux/syslx64.cfg "$mnt"/EFI/BOOT
umount_efi
dev_from_partnum "$drive" 1
syslinux "$partition"
}
# vim: set ft=sh: