From: Cong Wang Date: Tue, 15 May 2012 06:19:57 +0000 (+0800) Subject: check install files passed by cmdline X-Git-Tag: 019~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd4be59fb2574b8cbcdf22a86a6cafb7b71db503;p=thirdparty%2Fdracut.git check install files passed by cmdline We should not trust cmdline passed by users, always check the install files passed from cmdline. This restores the old behaviour which was changed by: commit c6c6a08850c7e4ee211696895f7ca3864be85052 Author: Harald Hoyer Date: Tue Feb 7 18:26:30 2012 +0100 add "install_items" to dracut.conf Reported-by: Dave Young Signed-off-by: Cong Wang Cc: Harald Hoyer --- diff --git a/dracut.sh b/dracut.sh index 315b965e7..bf9e79f19 100755 --- a/dracut.sh +++ b/dracut.sh @@ -770,7 +770,7 @@ done if [[ $kernel_only != yes ]]; then for item in $install_items; do - dracut_install -o "$item" + dracut_install "$item" done unset item