Received: from list by lists.gnu.org with archive (Exim 4.71) id 1b6tfU-0007XI-B3 for mharc-grub-devel@gnu.org; Sun, 29 May 2016 01:53:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6mSA-0003UF-1R for grub-devel@gnu.org; Sat, 28 May 2016 18:11:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6mS6-0001GZ-Pz for grub-devel@gnu.org; Sat, 28 May 2016 18:11:29 -0400 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]:34287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6mS6-0001GV-JK for grub-devel@gnu.org; Sat, 28 May 2016 18:11:26 -0400 Received: by mail-pa0-x241.google.com with SMTP id x1so584643pav.1 for ; Sat, 28 May 2016 15:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:date:subject; bh=r/969Oi79abN1PQFniOcvAvJWYBW3qrib5njtU5wng8=; b=GxIiYmk7qUjMFcTAiAyDP8O8bxq+WKdVuZ8E39L+e/haiEajuN0q1HueNOpbv53jtW 5ukmjFjkl+zn5z4m9N9p+JWIJ6H1oonduGV/3YWWYom+r62/AuVrudazrrW7MXP3HLDH mw3ntMlhUvRNzP1m7RCWCTQMri6VzFgNgzrlD0fxyu3dsrcPpoQT5qOtrjfjg6UomclE qZPdmg5Cl6EeAJuZ2fQ2REpqkJzzAKjmDILHO2Wnr/zMw977+RHzXuAGRJTI1+QoouU7 hnErJ4FX7ovVAHvH6cWxhI2TeY7lfvhp3hqq4Sp4JFMBRTuO3Clh0kVOumrocYag20VM 33Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:from:date:subject; bh=r/969Oi79abN1PQFniOcvAvJWYBW3qrib5njtU5wng8=; b=K3vqXgBXCQTo6ODk5tdvHEmRex9HBhFeyNNLtPfvl8EozRBEv00h5C/HHyIIoEqX7l 9YE2/Lw3nNfrXwhpIN/8KHN+X59Sf8IIzXJTVo88S/FtILbbkkbWSL6QwMgzeQCA3rfn FI4TDrKf7rLIXChxr6CMwmJ24R3KeQOF/QyJzn+r1I8oXhDAnQ3Ecw3g7hGRoOJU9dkz Ese4JOcYPfHcDNKzz3dTWB5xReggtN7PWL3navUMpHGHVLGgfvQIX+PFNzh6VZJaBq5d OoZWoLzWCMqAODNCuyhWhAYG69JIFGuhuXQYKZuW/lxXePUNjnrXZ0gC0CX6WkksXTPM M+qQ== X-Gm-Message-State: ALyK8tJ2jMEA2zvYIaPch9flOOZszh/YsGnRaoNP/NII9O/R3jU27A3VYEDBraPsxKgPOA== X-Received: by 10.66.193.199 with SMTP id hq7mr33079709pac.6.1464473485445; Sat, 28 May 2016 15:11:25 -0700 (PDT) Received: from localhost (27-32-189-129.static.tpgi.com.au. [27.32.189.129]) by smtp.gmail.com with ESMTPSA id c82sm22742042pfd.42.2016.05.28.15.11.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 May 2016 15:11:24 -0700 (PDT) Message-ID: <574a178c.5508620a.b98a.5789@mx.google.com> From: Andrew Worsley Subject: [PATCH 1/2] Extend grub-install usage information in man page X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::241 X-Mailman-Approved-At: Sun, 29 May 2016 01:53:42 -0400 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sat, 28 May 2016 22:11:31 -0000 X-Original-Date: Sat, 7 May 2016 23:39:03 +1000 X-List-Received-Date: Sat, 28 May 2016 22:11:31 -0000 The usage information appears in it's generated man page. The current usage is very brief and results in a very inadequate man page. This adds a very minimal additional detail useful for novice and causal users. --- util/grub-install.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/util/grub-install.c b/util/grub-install.c index 6c89c2b..b7306ee 100644 --- a/util/grub-install.c +++ b/util/grub-install.c @@ -359,10 +359,28 @@ help_filter (int key, const char *text, void *input __attribute__ ((unused))) install to. */ struct argp argp = { options, argp_parser, N_("[OPTION] [INSTALL_DEVICE]"), - N_("Install GRUB on your drive.")"\v" + N_("Install GRUB on the INSTALL_DEVICE drive." + " Firstly it installs all modules and the generated boot menu script grub.cfg" + " into the specified boot directory on INSTALL_DEVICE. When booting grub" + " will read the grub.cfg script and load any modules it requests. These modules" + " provide grub with extra functionalty such as graphics or the ability to read" + " other filesystems on different devices. This allows grub to finally load the" + " selected operating system. Secondly it will generate a core.img binary" + " that can read the file system of the INSTALL_DEVICE and load" + " files from it. This allows core.img to read and load the modules and scripts" + " from /boot/grub. Then the grub-setup command is invoked to store core.img" + " so that it is run by the system dependant boot process.") + + "\v" N_("INSTALL_DEVICE must be system device filename.\n" - "%s copies GRUB images into %s. On some platforms, it" - " may also install GRUB into the boot sector."), + "%s copies GRUB images into the boot directory %s. On some platforms, it" + " may also install GRUB into the boot sector. On legacy BIOS systems this" + " is typically \"embedded\" in the 32K of blocks directly after the MBR" + " or another dedicated partition. On EFI systems this may be a dedicated" + " FAT partition or HFS+ partition for MAC based systems." + " " + " For more details run \"info grub Installation\"" + ), NULL, help_filter, NULL }; -- 2.1.4