Blame 0004-dracut.sh-add-N-option-for-no-hostonly.patch

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