Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iMpBP-0004cK-AM for mharc-grub-devel@gnu.org; Tue, 22 Oct 2019 04:06:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43542) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMpBM-0004Xb-SC for grub-devel@gnu.org; Tue, 22 Oct 2019 04:06:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMpBL-0002XS-L0 for grub-devel@gnu.org; Tue, 22 Oct 2019 04:06:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39938) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iMpBL-0002WK-53 for grub-devel@gnu.org; Tue, 22 Oct 2019 04:06:19 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DD279C065113 for ; Tue, 22 Oct 2019 08:06:16 +0000 (UTC) Received: by mail-wm1-f69.google.com with SMTP id g13so120398wme.0 for ; Tue, 22 Oct 2019 01:06:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TBu4cP3TwJ6S9+VTSwY40FMYKDA7vHo5OByxsgN4LPA=; b=a36Tdxxu6ZVqCW+v+ST8xi0SjFGyagbfpi1AYUehvkB30EamW8QMOc3YrOzDqGa018 ukH9wmdGcSHVisQX60f1nXN/jm1l6ff4JSZOba2WKyNS8Z3YIkPhbvvOgdoXsPgSo0ZB 9s8gPHQBhmghDGjQAitFYTnIpxTHXXM6uIiS7sYZIbSy9QE+pOM86fDukCRIDIYQBb7E fHwFbBVsIf0G+5jayg3FZRddaM3Oy67Ze7UOShv8JNDkxdsB4+nc3daRLdzWIo7l8xa7 ykBjMFj5EnsmkwDNylOTLBP0eF37b5uND/mH2J2XrG7eGFh9xFM2LZNaetqKw2unsg7z CvLw== X-Gm-Message-State: APjAAAVcZnO5+xD3z8OxoBSAL/oOGllzxoztbk6dlc40HWzrOqgU6u1l YLVMgEnPYQ7EVm7u2h7djHK8ZDIitoMcOlBd8OKsU7PBXTMiABSCmi0dD/yLrIfsZMKYgOemac9 ZsAPRISb3VZA= X-Received: by 2002:a05:600c:2049:: with SMTP id p9mr1690018wmg.17.1571731575606; Tue, 22 Oct 2019 01:06:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIhlPqt/D5GuLg1V5Zn1+Rixz7fdvb9J2+pQN2fwxffYY4BYVkFuizbsaQtxsLG+nB8wKzmw== X-Received: by 2002:a05:600c:2049:: with SMTP id p9mr1689991wmg.17.1571731575400; Tue, 22 Oct 2019 01:06:15 -0700 (PDT) Received: from [192.168.1.13] ([90.168.169.92]) by smtp.gmail.com with ESMTPSA id s14sm4136992wmh.18.2019.10.22.01.06.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Oct 2019 01:06:14 -0700 (PDT) Subject: Re: [PATCH v2] Add GRUB_DISABLE_UUID To: Daniel Kiper Cc: Nicholas Vinson , grub-devel@gnu.org, Peter Jones , Vladimir Serbinenko References: <20190930145912.20375-1-javierm@redhat.com> <20191002120955.5qkvrjqsnpmmwcyy@tomti.i.net-space.pl> <85453966-4f9d-39c0-ccb7-310dfd23d537@gmail.com> <422ba861-a9fc-2f0e-751b-b23326491ce9@redhat.com> <20191021142657.rvdo5ggx3gtvp6ec@tomti.i.net-space.pl> From: Javier Martinez Canillas Message-ID: <0706fec2-e865-3345-43a2-18a60ad2b2db@redhat.com> Date: Tue, 22 Oct 2019 10:06:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20191021142657.rvdo5ggx3gtvp6ec@tomti.i.net-space.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2019 08:06:22 -0000 Hello Daniel, On 10/21/19 4:26 PM, Daniel Kiper wrote: > On Fri, Oct 04, 2019 at 12:57:44PM +0200, Javier Martinez Canillas wrote: >> Hello Nicolas, >> >> Thanks a lot for the feedback. >> >> On 10/3/19 4:29 AM, Nicholas Vinson wrote: >> >> [snip] >> >>>>> >>>>> +if [ "x${GRUB_DISABLE_UUID}" = "xtrue" ]; then >>>>> + if [ "x${GRUB_DISABLE_LINUX_UUID}" != "xfalse" ]; then >>>>> + GRUB_DISABLE_LINUX_UUID="true" >>>>> + fi >>>>> + if [ "x${GRUB_DISABLE_LINUX_PARTUUID}" != "xfalse" ]; then >>>>> + GRUB_DISABLE_LINUX_PARTUUID="true" >>>>> + fi >>>>> +fi >>> >>> I don't think this logic is exactly consistent with >>> 51be3372ec8ba07ef68a409956ea0eefa89fe7c5. That commit assumes any value >>> other than 'true' is false. It also sets the default values for >> >> I'm not sure how we could make it more consistent with the mentioned commit >> while only setting it to 'true' if the user haven't explicitly set the var >> as Dan asked in the previous version of the patch. > > It seems to me that it can be easily fixed, e.g.: > > if [ -z "${GRUB_DISABLE_LINUX_UUID}" ]; then > GRUB_DISABLE_LINUX_UUID="true" > fi > > Same for GRUB_DISABLE_LINUX_PARTUUID. > > Does it make sense? > Right, that makes sense. Thanks. > Daniel > Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat