Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oRR16-0004ZQ-VK for mharc-grub-devel@gnu.org; Fri, 26 Aug 2022 00:32:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRR15-0004X6-FK for grub-devel@gnu.org; Fri, 26 Aug 2022 00:32:23 -0400 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:44013) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRR13-0000Tk-Uc for grub-devel@gnu.org; Fri, 26 Aug 2022 00:32:23 -0400 Received: by mail-qt1-x829.google.com with SMTP id a4so463924qto.10 for ; Thu, 25 Aug 2022 21:32:21 -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:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=HOUZdnohCnX7AVKlhoT+DgPp4F7xUQaHyp2He6/Uukk=; b=ugoygifk9KZqUcN0QBhQF7xh7u+b2VbOV+XHukmiL2hl0+uZdluDFCsH3g2bQWbiue 7vPXk5A5YH7uXkHv78Xg1KlakllC81nn+aawin0ZjqWFjrJJVErVBto+oGFDhoqXPJsc mj4uSLKaLvWFY3t5aE22Ub9dFsD0rRrGqREZeyEkhORiDXmFupSbz5gvSbaZHCZr3R8b Fyvt1A9+y1YSpe+9ZiTyWTkIHHIipuradgxGhbjmMxOzOATh8tJ+Md2q/FBhI2qOtP+2 yvKQJKm+Dn4875dzZJT/p61H92EdtxVQApuNmdrC37dZFdbUu6XDZKNGXiLpuHhnWffI g8hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=HOUZdnohCnX7AVKlhoT+DgPp4F7xUQaHyp2He6/Uukk=; b=aipZ/m2R37WnMuy4Xzca5HKBLwsXx1Vw1akfvFxt5lfQUKDqDWAogbgdeb90LYaSpg /jYONbbpV+ApBsOo/k2j7IgGd1+yREw7GQcSKrhXWdrjvjeYPCWI0V2CHnZV2fY/VbdJ bLKSK5nIu9pTtQk7iEIZ5/HddiYJIfo0VS8n73TSTyQISSw6yVlQIQXn2j5EClIbpkI0 p8jPoIRAE8DXd/vTXGiMvAqgHUtYkaiIW2ppNlqZFvBbakU8G+uWHeQPtq5uQIi1/tST KON6nLU+P3FFpI0AAB/mcaJEp49IK1VRu0LBWfBKRxyyTCk6w/FhSxmBbONG3NyvocZN AL1g== X-Gm-Message-State: ACgBeo38i29vP7A9GB6My7NrKMQ+EscacsT1xLWJBXho6RCWErPQ2Gjz UEtPm6U2do37lGE3UrGyirY4bSKl9gEXDA== X-Google-Smtp-Source: AA6agR7wIT7o/D5em+phHjI28C1DxQCjE2pvq6hHR87rRQ2aGtnYDbffIAbSGulSzRN7xLseaRIjUw== X-Received: by 2002:ac8:5cc8:0:b0:344:79c3:9d9c with SMTP id s8-20020ac85cc8000000b0034479c39d9cmr6355087qta.638.1661488340785; Thu, 25 Aug 2022 21:32:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 21:32:20 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Ard Biesheuvel , Glenn Washburn Subject: [PATCH 2/2] docs: Document that extra arguments to chainloader on EFI Date: Thu, 25 Aug 2022 23:32:03 -0500 Message-Id: <04edeb1d7fd0ee1d748f5243ea87c0908554e0e6.1661487848.git.development@efficientek.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=development@efficientek.com; helo=mail-qt1-x829.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:23 -0000 Extra arguments given to chainloader on EFI platforms will be sent to the chainloaded application. Also, minor edit in the chainloading section to note that chainloading can be a jump via the firmware and not necessarily in real mode (which does not exist on some achitectures). Signed-off-by: Glenn Washburn --- docs/grub.texi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/grub.texi b/docs/grub.texi index a463f9e354..34a00dd5a9 100644 --- a/docs/grub.texi +++ b/docs/grub.texi @@ -965,7 +965,7 @@ information. Operating systems that do not support Multiboot and do not have specific support in GRUB (specific support is available for Linux, FreeBSD, NetBSD and OpenBSD) must be chain-loaded, which involves loading another boot -loader and jumping to it in real mode. +loader and jumping to it in real mode or via the firmware. The @command{chainloader} command (@pxref{chainloader}) is used to set this up. It is normally also necessary to load some GRUB modules and set the @@ -4011,10 +4011,13 @@ a list of commands that could use more documentation: @node chainloader @subsection chainloader -@deffn Command chainloader [@option{--force}] file +@deffn Command chainloader [@option{--force}] file [args...] Load @var{file} as a chain-loader. Like any other file loaded by the filesystem code, it can use the blocklist notation (@pxref{Block list syntax}) to grab the first sector of the current partition with @samp{+1}. +On EFI platforms, any arguments after @var{file} will be sent to the loaded +image. + If you specify the option @option{--force}, then load @var{file} forcibly, whether it has a correct signature or not. This is required when you want to load a defective boot loader, such as SCO UnixWare 7.1. -- 2.34.1