add "install_items" to dracut.conf
parent
204db8a134
commit
c6c6a08850
8
dracut
8
dracut
|
|
@ -367,7 +367,7 @@ fi
|
||||||
|
|
||||||
if (( ${#install_items_l[@]} )); then
|
if (( ${#install_items_l[@]} )); then
|
||||||
while pop install_items_l val; do
|
while pop install_items_l val; do
|
||||||
push install_items $val
|
install_items+=" $val "
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -716,10 +716,8 @@ while pop include_src src && pop include_target tgt; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
while pop install_items items; do
|
for item in $install_items; do
|
||||||
for item in $items; do
|
dracut_install -o "$item"
|
||||||
dracut_install "$item"
|
|
||||||
done
|
|
||||||
done
|
done
|
||||||
unset item
|
unset item
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,14 @@ modules to add to the initramfs.
|
||||||
The kernel modules have to be specified without the ".ko" suffix.</para>
|
The kernel modules have to be specified without the ".ko" suffix.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<envar>filesystems+=" <replaceable><filesystem names></replaceable> "</envar>
|
<envar>filesystems+=" <replaceable><filesystem names></replaceable> "</envar>
|
||||||
|
|
|
||||||
|
|
@ -6,3 +6,4 @@ add_dracutmodules+=" rpmversion "
|
||||||
stdloglvl=3
|
stdloglvl=3
|
||||||
prefix=/run/initramfs
|
prefix=/run/initramfs
|
||||||
realinitpath="/usr/lib/systemd/systemd"
|
realinitpath="/usr/lib/systemd/systemd"
|
||||||
|
install_items+=" vi /etc/virc ps grep cat rm "
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue