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 release_version="$1"
|
||||||
local filename="$2"
|
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
|
if [ ! -f "$streams" ]; then
|
||||||
return 1
|
return 1
|
||||||
|
|
10
syslinux.inc
10
syslinux.inc
|
@ -46,15 +46,8 @@ function install_syslinux()
|
||||||
|
|
||||||
apt -yq install syslinux syslinux-common syslinux-efi
|
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 \
|
dd bs=440 count=1 conv=notrunc \
|
||||||
if=/usr/lib/syslinux/mbr/gptmbr.bin of="$drive"
|
if=/usr/lib/syslinux/mbr/gptmbr.bin of="$drive"
|
||||||
sync
|
|
||||||
sleep 5
|
|
||||||
|
|
||||||
mount_efi "$drive"
|
mount_efi "$drive"
|
||||||
|
|
||||||
|
@ -71,6 +64,9 @@ function install_syslinux()
|
||||||
cp syslinux/syslx64.cfg "$mnt"/EFI/BOOT
|
cp syslinux/syslx64.cfg "$mnt"/EFI/BOOT
|
||||||
|
|
||||||
umount_efi
|
umount_efi
|
||||||
|
|
||||||
|
dev_from_partnum "$drive" 1
|
||||||
|
syslinux "$partition"
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: set ft=sh:
|
# vim: set ft=sh:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user