diff --git a/dracut b/dracut index 0ee2d731..86fcaf3e 100755 --- 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 diff --git a/dracut.conf.5.xml b/dracut.conf.5.xml index b5bcdae5..e24078bd 100644 --- a/dracut.conf.5.xml +++ b/dracut.conf.5.xml @@ -85,6 +85,14 @@ modules to add to the initramfs. The kernel modules have to be specified without the ".ko" suffix. + + + install_items+=" <kernel modules> " + + + Specify a space-separated list of files, which are added to the initramfs image. + + filesystems+=" <filesystem names> " diff --git a/dracut.conf.d/fedora.conf.example b/dracut.conf.d/fedora.conf.example index 11c78cae..04cadc84 100644 --- a/dracut.conf.d/fedora.conf.example +++ b/dracut.conf.d/fedora.conf.example @@ -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 "