check install files passed by cmdline
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 15 May 2012 06:19:57 +0000 (14:19 +0800)
committerHarald Hoyer <harald@redhat.com>
Wed, 16 May 2012 09:43:25 +0000 (11:43 +0200)
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 <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>
dracut.sh

index 315b965..bf9e79f 100755 (executable)
--- 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