7620760
From 472189da152be23b8a7d0dabc0a3e80ea61e866b Mon Sep 17 00:00:00 2001
7620760
From: Harald Hoyer <harald@redhat.com>
7620760
Date: Sat, 21 Jul 2012 13:03:56 +0200
7620760
Subject: [PATCH] dracut.sh: add -N option for --no-hostonly
7620760
7620760
---
7620760
 dracut.8.asc | 2 +-
7620760
 dracut.sh    | 6 +++---
7620760
 2 files changed, 4 insertions(+), 4 deletions(-)
7620760
7620760
diff --git a/dracut.8.asc b/dracut.8.asc
7620760
index 24af936..0902b3b 100644
7620760
--- a/dracut.8.asc
7620760
+++ b/dracut.8.asc
7620760
@@ -308,7 +308,7 @@ If chrooted to another root other than the real root device, use "--fstab" and
7620760
 provide a valid _/etc/fstab_.
7620760
 ====
7620760
 
7620760
-**--no-hostonly**::
7620760
+**-N, --no-hostonly**::
7620760
     Disable Host-Only mode
7620760
 
7620760
 **--fstab**::
7620760
diff --git a/dracut.sh b/dracut.sh
7620760
index ffdcbcc..d8b3354 100755
7620760
--- a/dracut.sh
7620760
+++ b/dracut.sh
7620760
@@ -126,7 +126,7 @@ Creates initial ramdisk images for preloading modules
7620760
                          Useful when running dracut from a git checkout.
7620760
   -H, --hostonly        Host-Only mode: Install only what is needed for
7620760
                          booting the local host instead of a generic host.
7620760
-  --no-hostonly         Disables Host-Only mode
7620760
+  -N, --no-hostonly     Disables Host-Only mode
7620760
   --fstab               Use /etc/fstab to determine the root device.
7620760
   --add-fstab [FILE]    Add file to the initramfs fstab
7620760
   --mount "[DEV] [MP] [FSTYPE] [FSOPTS]"
7620760
@@ -244,7 +244,7 @@ set -- "${@/--include/++include}"
7620760
 set -- "${@/%-i/++include}"
7620760
 
7620760
 TEMP=$(unset POSIXLY_CORRECT; getopt \
7620760
-    -o "a:m:o:d:I:k:c:L:fvqlHhM" \
7620760
+    -o "a:m:o:d:I:k:c:L:fvqlHhMN" \
7620760
     --long kver: \
7620760
     --long add: \
7620760
     --long force-add: \
7620760
@@ -356,7 +356,7 @@ while :; do
7620760
                            && dracutbasedir="$(readlink -f ${0%/*})"
7620760
                        ;;
7620760
         -H|--hostonly) hostonly_l="yes" ;;
7620760
-        --no-hostonly) hostonly_l="no" ;;
7620760
+        -N|--no-hostonly) hostonly_l="no" ;;
7620760
         --fstab)       use_fstab_l="yes" ;;
7620760
         -h|--help)     long_usage; exit 1 ;;
7620760
         -i|--include)  push include_src "$2"