add "install_items" to dracut.conf

master
Harald Hoyer 2012-02-07 18:26:30 +01:00
parent 204db8a134
commit c6c6a08850
3 changed files with 12 additions and 5 deletions

8
dracut
View File

@ -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


View 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>

View 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 "