]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: add install_items to dracut.conf
authorHarald Hoyer <harald@redhat.com>
Tue, 15 Nov 2011 16:12:50 +0000 (17:12 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 15 Nov 2011 16:13:40 +0000 (17:13 +0100)
install_items+=" <file>[ <file> ...] "

    Specify additional files to include in the initramfs, separated by
    spaces.

dracut
dracut.conf.5.xml

diff --git a/dracut b/dracut
index de059c88521a800535907df9342cbb84361b7c3f..f989cb8f5edd7fbedafb89dea0c35cf5a7464e46 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -204,7 +204,7 @@ while (($# > 0)); do
         -o|--omit)     push_arg omit_dracutmodules_l "$@" || shift;;
         -d|--drivers)  push_arg drivers_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;;
         --fscks)       push_arg fscks_l              "$@" || shift;;
         --nofscks)     nofscks_l="yes";;
@@ -332,6 +332,12 @@ if (( ${#fscks_l[@]} )); then
     done
 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
 if (( ${#dracutmodules_l[@]} )); then
     dracutmodules=''
index 169e11b52193f0288c88d51b6a7e5d6251b09169..811680ed5a30eba40fe80276f133d12263749be3 100644 (file)
@@ -111,6 +111,14 @@ initramfs.</para>
           <para>Specify additional directories, where to look for firmwares, separated by <constant>:</constant></para>
         </listitem>
       </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>
         <term>
           <envar>do_strip=&quot;<replaceable>{yes|no}</replaceable>&quot;</envar>