]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
add hostonly to dracut.conf
authorHarald Hoyer <harald@redhat.com>
Mon, 31 Aug 2009 09:39:21 +0000 (11:39 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 1 Sep 2009 13:42:26 +0000 (15:42 +0200)
dracut
dracut.conf

diff --git a/dracut b/dracut
index 7e5f2d41ea080e700979c296077b83fe627f9050..1d74316d0a1955eeaf4216fa464f14a55fcdcba1 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -80,7 +80,7 @@ while (($# > 0)); do
        -v|--verbose) beverbose="yes";;
        -c|--conf) conffile="$2"; shift;;
        -l|--local) allowlocal="yes" ;;
-       -H|--hostonly) hostonly="-h" ;;
+       -H|--hostonly) hostonly_l="yes" ;;
        -i|--include) include_src="$2"; include_target="$3"; shift 2;;
        -I|--install) install_items="$2"; shift;;
        -*) printf "\nUnknown option: %s\n\n" "$1" >&2; usage; exit 1;;
@@ -110,12 +110,15 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
 [[ $drivers_dir_l ]] && drivers_dir=$drivers_dir_l
 [[ $fw_dir_l ]] && fw_dir=$fw_dir_l
 [[ $do_strip_l ]] && do_strip=$do_strip_l
+[[ $hostonly_l ]] && hostonly=$hostonly_l
 [[ $dracutbasedir ]] || dracutbasedir=/usr/share/dracut
 [[ $fw_dir ]] || fw_dir=/lib/firmware
 [[ $do_strip ]] || do_strip=yes
 # eliminate IFS hackery when messing with fw_dir
 fw_dir=${fw_dir//:/ }
 
+[[ $hostonly = yes ]] && hostonly="-h"
+
 [[ $allowlocal && -f "$(dirname $0)/dracut-functions" ]] && dsrc="$(dirname $0)" || dsrc=$dracutbasedir
 
 if [[ -f $dsrc/dracut-functions ]]; then
index 8e8e90f5a2fe13821f017a9c1ac64c9a2d797314..f4e4daa827039808553493c2a36aaa9edb7aa6f8 100644 (file)
@@ -8,3 +8,6 @@
 
 # Additional kernel modules to install
 #drivers=""
+
+# build initrd only to boot current hardware
+#hostonly="-h"