Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oQqYL-0003u2-KO for mharc-grub-devel@gnu.org; Wed, 24 Aug 2022 09:36:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQqYI-0003tq-3f for grub-devel@gnu.org; Wed, 24 Aug 2022 09:36:15 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:45450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQqYG-0004Fb-FU for grub-devel@gnu.org; Wed, 24 Aug 2022 09:36:13 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DE9191FB38; Wed, 24 Aug 2022 13:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661348169; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RCLUpucng7Q0w8GXy+P77qN1GgUsPg8tj7jmF4NDNao=; b=Lg6zG6aB2fFY69TWIZb9Uye4jjsciCqMwb1VohI/8qtVcu3//u9Viyv3LfZHzKW/3nUO96 YIBZlKUqNQGlfPbfJq7rXUxm+6+5Hn48cORelWh/nqmpZMuvoU4rLYcXaJzXiZOH4ginNq q8sSDx7Kp9QDgKdD0hllOSAb19uTeAY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661348169; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RCLUpucng7Q0w8GXy+P77qN1GgUsPg8tj7jmF4NDNao=; b=+mH7dhyB13CUiuVwQmAGNNTbE36kvM6jK69HlqBqqZM9r1bx09tfvP96RXwEK64qPv+09P vZKDANrzElbtJBBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BF22313780; Wed, 24 Aug 2022 13:36:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id rYPXK0kpBmP6bgAAMHmgww (envelope-from ); Wed, 24 Aug 2022 13:36:09 +0000 From: Ismael Luceno To: grub-devel@gnu.org Cc: Ismael Luceno Subject: [RESEND PATCH] templates: Set defaults using var substitution Date: Wed, 24 Aug 2022 15:36:07 +0200 Message-Id: <20220824133607.13568-1-iluceno@suse.de> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=195.135.220.29; envelope-from=iluceno@suse.de; helo=smtp-out2.suse.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2022 13:36:15 -0000 Signed-off-by: Ismael Luceno --- 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