From: Harald Hoyer Date: Tue, 7 Feb 2012 17:26:30 +0000 (+0100) Subject: add "install_items" to dracut.conf X-Git-Tag: 015~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6c6a08850c7e4ee211696895f7ca3864be85052;p=thirdparty%2Fdracut.git add "install_items" to dracut.conf --- diff --git a/dracut b/dracut index 0ee2d7311..86fcaf3e4 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 b5bcdae52..e24078bdf 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 11c78caec..04cadc84f 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 "