summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-01-07 16:18:22 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2021-01-07 16:18:22 +0100
commit4fb73a652e33ce85f38770ce341785ae1c0890cd (patch)
tree32bf215898fb09511635a67e31e4b84ac519e5f7
parent869d8382ea8253f9255ec91593cfbf378bb0effa (diff)
downloadalpine-conf-4fb73a652e33ce85f38770ce341785ae1c0890cd.zip
setup-disk: dont try install syslinux on unsupported arches
syslinux only works on x86 and x86_64
-rw-r--r--setup-disk.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 2b75009..463010f 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -8,7 +8,6 @@ MBR=${MBR:-"/usr/share/syslinux/mbr.bin"}
ROOTFS=${ROOTFS:-ext4}
BOOTFS=${BOOTFS:-ext4}
VARFS=${VARFS:-ext4}
-BOOTLOADER=${BOOTLOADER:-syslinux}
DISKLABEL=${DISKLABEL:-dos}
KERNELOPTS=${KERNELOPTS:-quiet}
@@ -17,6 +16,9 @@ SYSROOT=${SYSROOT:-/mnt}
# machine arch
ARCH=$(apk --print-arch)
+case "$ARCH" in
+ x86*) BOOTLOADER=${BOOTLOADER:-syslinux};;
+esac
in_list() {
local i="$1"