Browse Source

dracut: add install_items to dracut.conf

install_items+=" <file>[ <file> ...] "

    Specify additional files to include in the initramfs, separated by
    spaces.
master
Harald Hoyer 13 years ago
parent
commit
0ec40e08d5
  1. 8
      dracut
  2. 8
      dracut.conf.5.xml

8
dracut

@ -204,7 +204,7 @@ while (($# > 0)); do
-o|--omit) push_arg omit_dracutmodules_l "$@" || shift;; -o|--omit) push_arg omit_dracutmodules_l "$@" || shift;;
-d|--drivers) push_arg drivers_l "$@" || shift;; -d|--drivers) push_arg drivers_l "$@" || shift;;
--filesystems) push_arg filesystems_l "$@" || shift;; --filesystems) push_arg filesystems_l "$@" || shift;;
-I|--install) push_arg install_items "$@" || shift;; -I|--install) push_arg install_items_l "$@" || shift;;
--fwdir) push_arg fw_dir_l "$@" || shift;; --fwdir) push_arg fw_dir_l "$@" || shift;;
--fscks) push_arg fscks_l "$@" || shift;; --fscks) push_arg fscks_l "$@" || shift;;
--nofscks) nofscks_l="yes";; --nofscks) nofscks_l="yes";;
@ -332,6 +332,12 @@ if (( ${#fscks_l[@]} )); then
done done
fi fi


if (( ${#install_items_l[@]} )); then
while pop install_items_l val; do
push install_items $val
done
fi

# these options override the stuff in the config file # these options override the stuff in the config file
if (( ${#dracutmodules_l[@]} )); then if (( ${#dracutmodules_l[@]} )); then
dracutmodules='' dracutmodules=''

8
dracut.conf.5.xml

@ -111,6 +111,14 @@ initramfs.</para>
<para>Specify additional directories, where to look for firmwares, separated by <constant>:</constant></para> <para>Specify additional directories, where to look for firmwares, separated by <constant>:</constant></para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term>
<envar>install_items+=&quot;&#160;<replaceable>&lt;file&gt;</replaceable>[ <replaceable>&lt;file&gt;</replaceable>&nbsp;...]&nbsp;&quot;</envar>
</term>
<listitem>
<para>Specify additional files to include in the initramfs, separated by spaces.</para>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term> <term>
<envar>do_strip=&quot;<replaceable>{yes|no}</replaceable>&quot;</envar> <envar>do_strip=&quot;<replaceable>{yes|no}</replaceable>&quot;</envar>

Loading…
Cancel
Save