]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
add "install_items" to dracut.conf
authorHarald Hoyer <harald@redhat.com>
Tue, 7 Feb 2012 17:26:30 +0000 (18:26 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 7 Feb 2012 18:28:58 +0000 (19:28 +0100)
dracut
dracut.conf.5.xml
dracut.conf.d/fedora.conf.example

diff --git a/dracut b/dracut
index 0ee2d7311c4a3edf558b5ee2fe80e1c344dbcd61..86fcaf3e4607f4bfda6db9915b9c060ca528afb8 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -367,7 +367,7 @@ fi
 
 if (( ${#install_items_l[@]} )); then
     while pop install_items_l val; do
-        push install_items $val
+        install_items+=" $val "
     done
 fi
 
@@ -716,10 +716,8 @@ while pop include_src src && pop include_target tgt; do
     fi
 done
 
-while pop install_items items; do
-    for item in $items; do
-        dracut_install "$item"
-    done
+for item in $install_items; do
+    dracut_install -o "$item"
 done
 unset item
 
index b5bcdae525616bb4ac4fb1b9bcf5ce4aaa51c554..e24078bdfa6afbf7dfd55aea281c7223b0e16a79 100644 (file)
@@ -85,6 +85,14 @@ modules to add to the initramfs.
 The kernel modules have to be specified without the &quot;.ko&quot; suffix.</para>
         </listitem>
       </varlistentry>
+      <varlistentry>
+        <term>
+          <envar>install_items+=&quot;&nbsp;<replaceable>&lt;kernel modules&gt;</replaceable>&nbsp;&quot;</envar>
+        </term>
+        <listitem>
+          <para>Specify a space-separated list of files, which are added to the initramfs image.</para>
+        </listitem>
+      </varlistentry>
       <varlistentry>
         <term>
           <envar>filesystems+=&quot;&nbsp;<replaceable>&lt;filesystem names&gt;</replaceable>&nbsp;&quot;</envar>
index 11c78caec3ea221dad22f67892e700f4121b577e..04cadc84f41096418a20f44862f5deb0e669ca9d 100644 (file)
@@ -6,3 +6,4 @@ add_dracutmodules+=" rpmversion "
 stdloglvl=3
 prefix=/run/initramfs
 realinitpath="/usr/lib/systemd/systemd"
+install_items+=" vi /etc/virc ps grep cat rm "