aboutsummaryrefslogtreecommitdiffstats
path: root/main/grub/alpine-use-uuid.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/grub/alpine-use-uuid.patch')
-rw-r--r--main/grub/alpine-use-uuid.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/grub/alpine-use-uuid.patch b/main/grub/alpine-use-uuid.patch
new file mode 100644
index 0000000000..cf5750bdf5
--- /dev/null
+++ b/main/grub/alpine-use-uuid.patch
@@ -0,0 +1,12 @@
+diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
+index 60f36be..dbef9bf 100644
+--- a/util/grub.d/10_linux.in
++++ b/util/grub.d/10_linux.in
+@@ -55,7 +55,6 @@ esac
+ # btrfs may reside on multiple devices. We cannot pass them as value of root= parameter
+ # and mounting btrfs requires user space scanning, so force UUID in this case.
+ if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
+- || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
+ || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
+ LINUX_ROOT_DEVICE=${GRUB_DEVICE}
+ else