Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1q4Zkp-0007jk-CU for mharc-grub-devel@gnu.org; Thu, 01 Jun 2023 00:17:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4Zko-0007jb-8y for grub-devel@gnu.org; Thu, 01 Jun 2023 00:17:38 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4ZkZ-0006E4-Hr for grub-devel@gnu.org; Thu, 01 Jun 2023 00:17:37 -0400 Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-3f7a546efb1so2579291cf.2 for ; Wed, 31 May 2023 21:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20221208.gappssmtp.com; s=20221208; t=1685593042; x=1688185042; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ravGcSiPqnejU5XICoXrpdH+9kl2CD1ZgSG2KvV0XGw=; b=JCyL+CTKbSbsu9RtkcB0WFkTQM7807mtcAvcNGyolpbgcw3fUTuWqUZy46zic6papb C4Gc6JYXX9SivigGrF19P+QV/A8k2RRypzcn2MDh7s9Oj5VIMzI8BZQeAsa5aEgfoI9R cKHjNJ2mfy3CLFBpC1PDKZWRndizLsYvsf7FBw90slfg/bZF5I7yUPlGl3LRvq8NGHra mCxfHLViMexXP7YoVKSz4J26Zq0xPyOB+mULJ+uNezoNGUWFPXBAaw2VDlITegPaAMdH EOYCSX7FVBtvdRAnZ9QTHVBXElhy8WpO85J0pxvOgMQ8k5jGhzndv9AMLY5CznjVKVAc qFmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685593042; x=1688185042; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ravGcSiPqnejU5XICoXrpdH+9kl2CD1ZgSG2KvV0XGw=; b=ISp3QhauP46g5lO94fEaFoAEP1SgW08In1341l+aqf+6AWyJwExlF9pg3rVcMcQ1ny ezBVEPFctiO0YEeHOj/VwvIFfU3gC/8a3IYUESYYPE0b3vcu8gQ6CHMHExaW1buxfC7F e6Wvq2mx14z7GBwf2d+qGTZJJF/nKdxuceINStZSyHm3QfOrU23wyTquoK4iLn/YRqSP 2LQb244u6GY6BSJkHJHpyxuVGBfj83g560z4h0d2XBsimoSY8CXb7ds+SVXZC+v+k4F5 ZwnG2ISTOBJ+4SbXXbtZ7MoSmyfu4lysKL8VzF9lZcWXRiabU/jT/yo7BvkgpQ4sWamW LCrg== X-Gm-Message-State: AC+VfDzKc8I+qOkuDm4rUH8IgQf0qpVDmQp05XK3Sn0Hjlr//iujhfo0 je+edtafgmZMRYC4VW5bn+dUVAVWRhRTgk2VsVc= X-Google-Smtp-Source: ACHHUZ6EEYea58679qkN+kCWj0sdBMgKG9I/ABWFeE5o1itVmWOe1aRRlgRyrfIsxA2vtMH/ZtHY9g== X-Received: by 2002:ac8:5783:0:b0:3f6:b055:81fe with SMTP id v3-20020ac85783000000b003f6b05581femr8293079qta.60.1685593042005; Wed, 31 May 2023 21:17:22 -0700 (PDT) Received: from localhost.localdomain ([199.58.83.12]) by smtp.gmail.com with ESMTPSA id j29-20020ac84c9d000000b003f38aabb88asm6966908qtv.20.2023.05.31.21.17.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 21:17:21 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Ard Biesheuvel , Glenn Washburn Subject: [PATCH v2 1/2] docs: Document extra arguments to chainloader on EFI Date: Wed, 31 May 2023 23:16:25 -0500 Message-Id: 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::833; envelope-from=development@efficientek.com; helo=mail-qt1-x833.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, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=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: Thu, 01 Jun 2023 04:17:38 -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 e4c5517a6fc5..7ab1e0ab40ef 100644 --- a/docs/grub.texi +++ b/docs/grub.texi @@ -979,7 +979,7 @@ invoke shutdown machinery. 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 @@ -4031,10 +4031,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