From 0ec40e08d5649cc3f42d1b8af1ac49a28d1e6765 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 15 Nov 2011 17:12:50 +0100 Subject: [PATCH] dracut: add install_items to dracut.conf install_items+=" [ ...] " Specify additional files to include in the initramfs, separated by spaces. --- dracut | 8 +++++++- dracut.conf.5.xml | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/dracut b/dracut index de059c885..f989cb8f5 100755 --- a/dracut +++ b/dracut @@ -204,7 +204,7 @@ while (($# > 0)); do -o|--omit) push_arg omit_dracutmodules_l "$@" || shift;; -d|--drivers) push_arg drivers_l "$@" || shift;; --filesystems) push_arg filesystems_l "$@" || shift;; - -I|--install) push_arg install_items "$@" || shift;; + -I|--install) push_arg install_items_l "$@" || shift;; --fwdir) push_arg fw_dir_l "$@" || shift;; --fscks) push_arg fscks_l "$@" || shift;; --nofscks) nofscks_l="yes";; @@ -332,6 +332,12 @@ if (( ${#fscks_l[@]} )); then done fi +if (( ${#install_items_l[@]} )); then + while pop install_items_l val; do + push install_items $val + done +fi + # these options override the stuff in the config file if (( ${#dracutmodules_l[@]} )); then dracutmodules='' diff --git a/dracut.conf.5.xml b/dracut.conf.5.xml index 169e11b52..811680ed5 100644 --- a/dracut.conf.5.xml +++ b/dracut.conf.5.xml @@ -111,6 +111,14 @@ initramfs. Specify additional directories, where to look for firmwares, separated by : + + + install_items+=" <file>[ <file> ...] " + + + Specify additional files to include in the initramfs, separated by spaces. + + do_strip="{yes|no}" -- 2.47.3