Blame 0054-dracut-install-add-help-documentation.patch

Harald Hoyer b38677
From b14b039e9066f51c3c4cee2123f23f7822dd8e13 Mon Sep 17 00:00:00 2001
Harald Hoyer b38677
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer b38677
Date: Thu, 14 Apr 2016 11:47:50 +0200
Harald Hoyer b38677
Subject: [PATCH] dracut-install: add --help documentation
Harald Hoyer b38677
Harald Hoyer b38677
---
Harald Hoyer b38677
 install/dracut-install.c | 73 +++++++++++++++++++++++-------------------------
Harald Hoyer b38677
 1 file changed, 35 insertions(+), 38 deletions(-)
Harald Hoyer b38677
Harald Hoyer b38677
diff --git a/install/dracut-install.c b/install/dracut-install.c
Harald Hoyer b38677
index f414f30..bef08da 100644
Harald Hoyer b38677
--- a/install/dracut-install.c
Harald Hoyer b38677
+++ b/install/dracut-install.c
Harald Hoyer b38677
@@ -17,7 +17,7 @@
Harald Hoyer b38677
    along with this program; If not, see <http://www.gnu.org/licenses/>.
Harald Hoyer b38677
 */
Harald Hoyer b38677
 
Harald Hoyer b38677
-#define PROGRAM_VERSION_STRING "1"
Harald Hoyer b38677
+#define PROGRAM_VERSION_STRING "2"
Harald Hoyer b38677
 
Harald Hoyer b38677
 #ifndef _GNU_SOURCE
Harald Hoyer b38677
 #define _GNU_SOURCE
Harald Hoyer b38677
@@ -719,49 +719,46 @@ static void item_free(char *i)
Harald Hoyer b38677
 
Harald Hoyer b38677
 static void usage(int status)
Harald Hoyer b38677
 {
Harald Hoyer b38677
-        /*                                                                     */
Harald Hoyer b38677
+              /*                                                                                */
Harald Hoyer b38677
         printf("Usage: %s -D DESTROOTDIR [OPTION]... -a SOURCE...\n"
Harald Hoyer b38677
                "or: %s -D DESTROOTDIR [OPTION]... SOURCE DEST\n"
Harald Hoyer b38677
+               "or: %s -D DESTROOTDIR [OPTION]... -m KERNELMODULE [KERNELMODULE …]\n"
Harald Hoyer b38677
                "\n"
Harald Hoyer b38677
                "Install SOURCE to DEST in DESTROOTDIR with all needed dependencies.\n"
Harald Hoyer b38677
                "\n"
Harald Hoyer b38677
-               "  -D --destrootdir    Install all files to DESTROOTDIR as the root\n"
Harald Hoyer b38677
-               "  -a --all            Install all SOURCE arguments to DESTROOTDIR\n"
Harald Hoyer b38677
-               "  -o --optional       If SOURCE does not exist, do not fail\n"
Harald Hoyer b38677
-               "  -d --dir            SOURCE is a directory\n"
Harald Hoyer b38677
-               "  -l --ldd            Also install shebang executables and libraries\n"
Harald Hoyer b38677
-               "  -L --logdir <DIR>   Log files, which were installed from the host to <DIR>\n"
Harald Hoyer b38677
-               "  -R --resolvelazy    Only install shebang executables and libraries\n"
Harald Hoyer b38677
-               "                      for all SOURCE files\n"
Harald Hoyer b38677
-               "  -H --hostonly       Mark all SOURCE files as hostonly\n\n"
Harald Hoyer b38677
-               "  -f --fips           Also install all '.SOURCE.hmac' files\n"
Harald Hoyer b38677
-               "  -v --verbose        Show more output\n"
Harald Hoyer b38677
-               "     --debug          Show debug output\n"
Harald Hoyer b38677
-               "     --version        Show package version\n"
Harald Hoyer b38677
-               "  -h --help           Show this help\n"
Harald Hoyer b38677
+               "  KERNELMODULE can have the format:\n"
Harald Hoyer b38677
+               "     <absolute path> with a leading /\n"
Harald Hoyer b38677
+               "     =<kernel subdir>[/<kernel subdir>…] like '=drivers/hid'\n"
Harald Hoyer b38677
+               "     <module name>\n"
Harald Hoyer b38677
                "\n"
Harald Hoyer b38677
-               "Example:\n"
Harald Hoyer b38677
-               "# mkdir -p /var/tmp/test-root\n"
Harald Hoyer b38677
-               "# %s -D /var/tmp/test-root --ldd -a sh tr\n"
Harald Hoyer b38677
-               "# tree /var/tmp/test-root\n"
Harald Hoyer b38677
-               "/var/tmp/test-root\n"
Harald Hoyer b38677
-               "|-- lib64 -> usr/lib64\n"
Harald Hoyer b38677
-               "`-- usr\n"
Harald Hoyer b38677
-               "    |-- bin\n"
Harald Hoyer b38677
-               "    |   |-- bash\n"
Harald Hoyer b38677
-               "    |   |-- sh -> bash\n"
Harald Hoyer b38677
-               "    |   `-- tr\n"
Harald Hoyer b38677
-               "    `-- lib64\n"
Harald Hoyer b38677
-               "        |-- ld-2.15.90.so\n"
Harald Hoyer b38677
-               "        |-- ld-linux-x86-64.so.2 -> ld-2.15.90.so\n"
Harald Hoyer b38677
-               "        |-- libc-2.15.90.so\n"
Harald Hoyer b38677
-               "        |-- libc.so\n"
Harald Hoyer b38677
-               "        |-- libc.so.6 -> libc-2.15.90.so\n"
Harald Hoyer b38677
-               "        |-- libdl-2.15.90.so\n"
Harald Hoyer b38677
-               "        |-- libdl.so -> libdl-2.15.90.so\n"
Harald Hoyer b38677
-               "        |-- libdl.so.2 -> libdl-2.15.90.so\n"
Harald Hoyer b38677
-               "        |-- libtinfo.so.5 -> libtinfo.so.5.9\n"
Harald Hoyer b38677
-               "        `-- libtinfo.so.5.9\n", program_invocation_short_name, program_invocation_short_name,
Harald Hoyer b38677
+               "  -D --destrootdir  Install all files to DESTROOTDIR as the root\n"
Harald Hoyer b38677
+               "  -a --all          Install all SOURCE arguments to DESTROOTDIR\n"
Harald Hoyer b38677
+               "  -o --optional     If SOURCE does not exist, do not fail\n"
Harald Hoyer b38677
+               "  -d --dir          SOURCE is a directory\n"
Harald Hoyer b38677
+               "  -l --ldd          Also install shebang executables and libraries\n"
Harald Hoyer b38677
+               "  -L --logdir <DIR> Log files, which were installed from the host to <DIR>\n"
Harald Hoyer b38677
+               "  -R --resolvelazy  Only install shebang executables and libraries\n"
Harald Hoyer b38677
+               "                     for all SOURCE files\n"
Harald Hoyer b38677
+               "  -H --hostonly     Mark all SOURCE files as hostonly\n\n"
Harald Hoyer b38677
+               "  -f --fips         Also install all '.SOURCE.hmac' files\n"
Harald Hoyer b38677
+               "\n"
Harald Hoyer b38677
+               "  --module,-m       Install kernel modules, instead of files\n"
Harald Hoyer b38677
+               "  --kerneldir       Specify the kernel module directory\n"
Harald Hoyer b38677
+               "  --firmwaredirs    Specify the firmware directory search path with : separation\n"
Harald Hoyer b38677
+               "  --silent          Don't display error messages for kernel module install\n"
Harald Hoyer b38677
+               "  -o --optional     If kernel module does not exist, do not fail\n"
Harald Hoyer b38677
+               "  -p --mod-filter-path      Filter kernel modules by path regexp\n"
Harald Hoyer b38677
+               "  -P --mod-filter-nopath    Exclude kernel modules by path regexp\n"
Harald Hoyer b38677
+               "  -s --mod-filter-symbol    Filter kernel modules by symbol regexp\n"
Harald Hoyer b38677
+               "  -S --mod-filter-nosymbol  Exclude kernel modules by symbol regexp\n"
Harald Hoyer b38677
+               "  -N --mod-filter-noname    Exclude kernel modules by name regexp\n"
Harald Hoyer b38677
+               "\n"
Harald Hoyer b38677
+               "  -v --verbose      Show more output\n"
Harald Hoyer b38677
+               "     --debug        Show debug output\n"
Harald Hoyer b38677
+               "     --version      Show package version\n"
Harald Hoyer b38677
+               "  -h --help         Show this help\n"
Harald Hoyer b38677
+               "\n",
Harald Hoyer b38677
+               program_invocation_short_name, program_invocation_short_name,
Harald Hoyer b38677
                program_invocation_short_name);
Harald Hoyer b38677
         exit(status);
Harald Hoyer b38677
 }