summaryrefslogtreecommitdiff
path: root/setup-disk.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2023-01-26 11:20:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2023-01-26 11:26:43 +0000
commitc5820072a92b4d43d75af40260b2e36c3c7bd68d (patch)
tree966afad61ea8354cbcc7707043415012efb41717 /setup-disk.in
parenta7fb778415a264a0f40e7580217cbd5616fb0cfe (diff)
downloadalpine-conf-c5820072a92b4d43d75af40260b2e36c3c7bd68d.zip
setup-disk: support BOOTLOADER=none
Allow disable bootloader install fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10526
Diffstat (limited to 'setup-disk.in')
-rw-r--r--setup-disk.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 258a494..53ccee6 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -669,6 +669,7 @@ install_mounted_root() {
rm -f "$mnt"/var/lib/apk/installed "$mnt"/lib/apk/db/installed
echo "Installing system on $rootdev:"
case "$BOOTLOADER" in
+ none) ;;
grub) setup_grub "$mnt" "$root" "$modules" "$kernel_opts" "$bootdev" $disks ;;
syslinux) setup_syslinux "$mnt" "$root" "$modules" "$kernel_opts" "$bootdev" ;;
zipl) setup_zipl "$mnt" "$root" "$modules" "$kernel_opts" ;;
@@ -825,6 +826,9 @@ stop_all_raid() {
}
select_bootloader_pkg() {
+ if [ "$BOOTLOADER" = none ]; then
+ return
+ fi
local bootloader="$BOOTLOADER"
if [ "$ARCH" = "ppc64le" ]; then
bootloader=grub-ieee1275