[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RESEND PATCH] templates: Set defaults using var substitution
From: |
Ismael Luceno |
Subject: |
[RESEND PATCH] templates: Set defaults using var substitution |
Date: |
Wed, 24 Aug 2022 15:36:07 +0200 |
Signed-off-by: Ismael Luceno <iluceno@suse.de>
---
util/grub.d/10_linux.in | 6 ++----
util/grub.d/20_linux_xen.in | 6 ++----
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index c6a1ec935bfc..321e590da192 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -43,13 +43,11 @@ case ${GRUB_DEVICE} in
;;
esac
-if [ "x${GRUB_CMDLINE_LINUX_RECOVERY}" = "x" ] ; then
- GRUB_CMDLINE_LINUX_RECOVERY=single
-fi
+: ${GRUB_CMDLINE_LINUX_RECOVERY:=single}
# Default to disabling partition uuid support to maintian compatibility with
# older kernels.
-GRUB_DISABLE_LINUX_PARTUUID=${GRUB_DISABLE_LINUX_PARTUUID-true}
+: ${GRUB_DISABLE_LINUX_PARTUUID=true}
# 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.
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
index 626aed40cbfd..554db9083936 100644
--- a/util/grub.d/20_linux_xen.in
+++ b/util/grub.d/20_linux_xen.in
@@ -43,13 +43,11 @@ case ${GRUB_DEVICE} in
;;
esac
-if [ "x${GRUB_CMDLINE_LINUX_RECOVERY}" = "x" ] ; then
- GRUB_CMDLINE_LINUX_RECOVERY=single
-fi
+: ${GRUB_CMDLINE_LINUX_RECOVERY:=single}
# Default to disabling partition uuid support to maintian compatibility with
# older kernels.
-GRUB_DISABLE_LINUX_PARTUUID=${GRUB_DISABLE_LINUX_PARTUUID-true}
+: ${GRUB_DISABLE_LINUX_PARTUUID=true}
# 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.
--
2.37.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [RESEND PATCH] templates: Set defaults using var substitution,
Ismael Luceno <=