From 6755c1ab2f4a2bc5841d61a28bc6a98cee149713 Mon Sep 17 00:00:00 2001
From: Louis <louis@losynix.net>
Date: Fri, 28 Sep 2018 13:52:12 +0200
Subject: [PATCH] scripts/mkimg.base.sh: Fix label to search (grub)

Alpine ISO are labelled with ${profile_abbrev:-$PROFILE} but grub was only
searching for $PROFILE when booting and failed to its rescue shell.
---
 scripts/mkimg.base.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mkimg.base.sh b/scripts/mkimg.base.sh
index 6dfd9db8a986..f6cad827747c 100755
--- a/scripts/mkimg.base.sh
+++ b/scripts/mkimg.base.sh
@@ -165,7 +165,7 @@ build_grub_cfg() {
 
 grub_gen_earlyconf() {
 	cat <<- EOF
-	search --no-floppy --set=root --label "alpine-$PROFILE $RELEASE $ARCH"
+	search --no-floppy --set=root --label "alpine-${profile_abbrev:-$PROFILE} $RELEASE $ARCH"
 	set prefix=(\$root)/boot/grub
 	EOF
 }
-- 
GitLab