diff options
author | Daniel Schaal <farbing@web.de> | 2013-08-16 23:16:15 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-08-19 11:13:04 +0200 |
commit | b7c770e18602020e42f2666034baa9ae4a33662f (patch) | |
tree | fe70dc07067b287398441f48e53b4e76319742e4 /dracut.sh | |
parent | 324ea606da753d38408698518bfe6be1ff23750c (diff) | |
download | dracut-b7c770e18602020e42f2666034baa9ae4a33662f.tar.gz dracut-b7c770e18602020e42f2666034baa9ae4a33662f.tar.bz2 dracut-b7c770e18602020e42f2666034baa9ae4a33662f.zip |
dracut.sh: Fix [no-]early-microcode parameter and add documentation.
[no-]early-microcode was missing from getopt argument list.
Let arguments passed by command line override config files.
Diffstat (limited to 'dracut.sh')
-rwxr-xr-x | dracut.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -346,6 +346,8 @@ TEMP=$(unset POSIXLY_CORRECT; getopt \ --long printsize \ --long regenerate-all \ --long noimageifnotneeded \ + --long early-microcode \ + --long no-early-microcode \ -- "$@") if (( $? != 0 )); then @@ -388,8 +390,8 @@ while :; do --kernel-only) kernel_only="yes"; no_kernel="no";; --no-kernel) kernel_only="no"; no_kernel="yes";; --print-cmdline) print_cmdline="yes"; hostonly_l="yes"; kernel_only="yes"; no_kernel="yes";; - --early-microcode) early_microcode="yes";; - --no-early-microcode) early_microcode="no";; + --early-microcode) early_microcode_l="yes";; + --no-early-microcode) early_microcode_l="no";; --strip) do_strip_l="yes";; --nostrip) do_strip_l="no";; --hardlink) do_hardlink_l="yes";; @@ -665,6 +667,8 @@ stdloglvl=$((stdloglvl + verbosity_mod_l)) [[ $show_modules_l ]] && show_modules=$show_modules_l [[ $nofscks_l ]] && nofscks="yes" [[ $ro_mnt_l ]] && ro_mnt="yes" +[[ $early_microcode_l ]] && early_microcode=$early_microcode_l +[[ $early_microcode ]] || early_microcode=no # eliminate IFS hackery when messing with fw_dir fw_dir=${fw_dir//:/ } |