fix: syslinux install order
This commit is contained in:
parent
c4544b24a5
commit
dda63f7ce1
|
@ -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
|
||||
|
|
10
syslinux.inc
10
syslinux.inc
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user