add "install_items" to dracut.conf
parent
204db8a134
commit
c6c6a08850
8
dracut
8
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
|
||||
|
||||
|
|
|
|||
|
|
@ -85,6 +85,14 @@ modules to add to the initramfs.
|
|||
The kernel modules have to be specified without the ".ko" suffix.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<envar>install_items+=" <replaceable><kernel modules></replaceable> "</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+=" <replaceable><filesystem names></replaceable> "</envar>
|
||||
|
|
|
|||
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Reference in New Issue