Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nRAGB-0000Li-IO for mharc-grub-devel@gnu.org; Mon, 07 Mar 2022 05:06:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRAG5-0000BM-Mb for grub-devel@gnu.org; Mon, 07 Mar 2022 05:06:31 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:22624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRAG3-0003Vt-4e for grub-devel@gnu.org; Mon, 07 Mar 2022 05:06:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646647586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/OEdK/ykpkGu7mYR20cfiMtntZCV1g3ppwY57vZKPFs=; b=ATzEKOhJ1Co4lfaB6rr/vsoGAnDo0nJ8Hb2ZsUqaiZKIZxmrBnuxZ3xH4DfAY+n7mqFZGo IS4BJLOaGjVCsw7Y5RkXcP9UZS89bIENAWVOZgPILSSzcJsC5SZssSHX0TuqdYdXbfawYP GWpD6W29sY/UCtGgtbBxiPawVMSEQ9U= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-185-WSRXzqilMgejEa3K-MVdSw-1; Mon, 07 Mar 2022 05:06:24 -0500 X-MC-Unique: WSRXzqilMgejEa3K-MVdSw-1 Received: by mail-wm1-f71.google.com with SMTP id t2-20020a7bc3c2000000b003528fe59cb9so6488521wmj.5 for ; Mon, 07 Mar 2022 02:06:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=/OEdK/ykpkGu7mYR20cfiMtntZCV1g3ppwY57vZKPFs=; b=XKW94XFOV+qNZyDo/A+hrTNYUovZ1BEborDO5Hfn4ai4tVKD165W0Sr3bUzkGUKKbO 0B85GGKNo/QJ2OAdufyBGHv8Xurodl9xgkbMrKxyxq/2PzSsf2beikKy/47u4ZbEzhK2 PZm2r8McnaEdHhkGbdCXteCFWWtBIfpmOBrMoLs8UaYX1RaysI/abNkixdKY6uyWNmRP j7IAroLyUE6yPK5VGpMlKQmpfnG3SO2+7k9NAaXemein9cVi+VycPn+ZFIx33snNBRxo bqXq7sIoeD9QBmXfi22UWrTkevi6wF7vqc7S5gl+v01kX2JCneMrXPomBjFJqtp+iQVZ 84UA== X-Gm-Message-State: AOAM533rIE1TwKD1zDSWrFVaFge1IYXT/XnOASXmzOJEJ3VWqD91mF8r XGu0EQbX7yxxhbQNAQoswxyYod1OmP3DhHgB0Z4Y3h2UaXioqh4waZPFHdRBEsWGfws9LtmhFwc WNESDb26zI2A40sLLfSmdRJW+CtlxUL6zBWeDp4ApR+aeMdveRjgDkNBLoW32cUc= X-Received: by 2002:a5d:608d:0:b0:1f0:4b94:4f54 with SMTP id w13-20020a5d608d000000b001f04b944f54mr7398822wrt.479.1646647583281; Mon, 07 Mar 2022 02:06:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzStEiL7+ydc9JQsTbayfENnfWbCEMbAJFSW0KBPSPWgT6QDtQXXmpZRIAObEGzKaWOci+MpA== X-Received: by 2002:a5d:608d:0:b0:1f0:4b94:4f54 with SMTP id w13-20020a5d608d000000b001f04b944f54mr7398803wrt.479.1646647583064; Mon, 07 Mar 2022 02:06:23 -0800 (PST) Received: from t590.redhat.com (82-64-217-13.subs.proxad.net. [82.64.217.13]) by smtp.gmail.com with ESMTPSA id r186-20020a1c2bc3000000b0037bdd94a4e5sm12654976wmr.39.2022.03.07.02.06.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 02:06:22 -0800 (PST) From: =?UTF-8?q?Renaud=20M=C3=A9trich?= To: grub-devel@gnu.org Subject: [PATCH v5 0/3] search: new --efidisk-only option on EFI systems Date: Mon, 7 Mar 2022 11:06:17 +0100 Message-Id: <20220307100620.34309-1-rmetrich@redhat.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=rmetrich@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.129.124; envelope-from=rmetrich@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: Mon, 07 Mar 2022 10:06:31 -0000 When using 'search' on EFI systems, we sometimes want to exclude devices that are not EFI disks (e.g. md, lvm). This is typically used when wanting to chainload when having a software raid (md) for EFI partition: with no option, 'search --file /EFI/redhat/shimx64.efi' sets root envvar to 'md/boot_efi' which cannot be used for chainloading since there is no effective EFI device behind. This set of patches also refactor handling of --no-floppy option. Changes in this version compared to reviewed one (PATCH v3, by Daniel): - split --no-floppy refactoring (patch 2/3) - fixed unitialized declaration of stack variable 'flags' (patch 2/3) - documented --efidisk-only option (patch 3/3)