From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oRR15-0004XB-GQ for mharc-grub-devel@gnu.org; Fri, 26 Aug 2022 00:32:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRR13-0004WD-T2 for grub-devel@gnu.org; Fri, 26 Aug 2022 00:32:21 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:39901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRR11-0000TI-Tm for grub-devel@gnu.org; Fri, 26 Aug 2022 00:32:21 -0400 Received: by mail-qt1-x82a.google.com with SMTP id r6so477857qtx.6 for ; Thu, 25 Aug 2022 21:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=o7AiYxx765a1kw223xEz0HnR12k3sC96Omxyq2oQA3w=; b=yJckUvZoE/Ag2642S5cCni4ZqPitHKHXkmC5srmTvl+HsCpueeE0Ww4auWtHYooQXt Apx9oowufLTMqCO0jjRiDhouSjdvzrg4BZCu/2B0BvJGApfEwE3lqAQnMCLAgNSGHuK/ +/uQDfvSJ2JZKHhulBZv5RbV7LFL9yEU0mSkjUiX5+4fkPOwK1T/I56o42vo0NvwPEhQ NwHtbGz1pF/k9geFFwjfjUaXRiVbafxvzSXKJ+7eRy81El8pqBh0UTzqsHLyINQhs15/ /0IofpUWmBe2YtOdn2OnIui+XQ52BjGOIIpJaGktST6SZdyOVPBuDoEq1lpAq8UbCvIs sG0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=o7AiYxx765a1kw223xEz0HnR12k3sC96Omxyq2oQA3w=; b=ZavbBmuonInfW7DoS/+SI1dpL/wXHtN5bcpXxuMD7s6wrgT5f+4PuiALgCefqv+OM7 f+JWcRAFAM0prJmFtkULESfmtixUFvJBdvzuNEcVyyqg0MbJLWKB85O/5z0Zdh4at+lN LVOPvAy/IGuqn5pT4m6Ya07Pgz3bvUlWFEIme7i6dvQokEhn/aFW7XzG3u/g3LI2wrjk /RQLy2IjitB55OP4GtX6U1KH3LrS4nCeRFVyqeBE6cSmfWHKdYc+qGi2C0+PVUxuH0j4 pKBtyxc3e7DikWpdP484NcW52lzBukOlWEOeZ/RPL+cWrU0XmDEi59U5zRROc3ktKnHk DGaw== X-Gm-Message-State: ACgBeo0xlR1MBaXrChovoa9obB0KRNUEIz8QvToPw333feVA+Lcqf0UK JaGBETdXOUNgVSI8uTx1Pd5CWXH99WalCQ== X-Google-Smtp-Source: AA6agR71aC+IaYZQKpjEXs9oZwZxzD/5wchhxi/DTRenYXOiVV+p6dVBjjGWuISUTEonFx6YvtlW+g== X-Received: by 2002:ac8:58c6:0:b0:343:292:5980 with SMTP id u6-20020ac858c6000000b0034302925980mr6482593qta.319.1661488338543; Thu, 25 Aug 2022 21:32:18 -0700 (PDT) Received: from localhost.localdomain ([37.218.244.249]) by smtp.gmail.com with ESMTPSA id j7-20020ac85c47000000b0031f0b43629dsm650086qtj.23.2022.08.25.21.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 21:32:18 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Ard Biesheuvel , Glenn Washburn Subject: [PATCH 0/2] EFI chainloader improvement Date: Thu, 25 Aug 2022 23:32:01 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=development@efficientek.com; helo=mail-qt1-x82a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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: Fri, 26 Aug 2022 04:32:22 -0000 This series improves the EFI chainloader. I've noticed for a while now that chainloading would fail when root=memdisk. It didn't really make sense because I was specifying the image to chainload as device+path, so why would it care about what my root was. But I noticed that if I changed the root to the device the image file was located on, then chainloading worked. The second patch fixes this by removing some previous assumptions that I don't believe are valid (eg. that LoadImage needs a valid device path). Glenn Glenn Washburn (2): efi/chainloader: Do not require a valid $root when chainloading docs: Document that extra arguments to chainloader on EFI docs/grub.texi | 7 +++++-- grub-core/loader/efi/chainloader.c | 31 +++++++++++------------------- 2 files changed, 16 insertions(+), 22 deletions(-) -- 2.34.1