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 c6c6a08850
	Author: Harald Hoyer <harald@redhat.com>
	Date:   Tue Feb 7 18:26:30 2012 +0100

	    add "install_items" to dracut.conf

Reported-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Harald Hoyer <harald@redhat.com>
This commit is contained in:
Cong Wang 2012-05-15 14:19:57 +08:00 committed by Harald Hoyer
parent a6d3be9dd5
commit bd4be59fb2

View File

@ -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