aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_initramfs_list.sh
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-04-30 23:56:33 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2006-04-30 23:56:33 +0200
commit46ed981d5d203703a01137cc58c841d34e90c147 (patch)
tree181da1d9eac493d95035c2ac633da70bc67f1a07 /scripts/gen_initramfs_list.sh
parent72ee59b5797e5d6fe32b5cf3473660a50a02db40 (diff)
downloadleg-kernel-46ed981d5d203703a01137cc58c841d34e90c147.tar.gz
kbuild: fix gen_initramfs_list.sh
Create correct dependencies when specifying your own file with list of files etc. to include in initramfs. Reported by: Andre Noll <maan@skl-net.de> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/gen_initramfs_list.sh')
-rw-r--r--scripts/gen_initramfs_list.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh
index 56b3bed1108f..331c079f029b 100644
--- a/scripts/gen_initramfs_list.sh
+++ b/scripts/gen_initramfs_list.sh
@@ -200,7 +200,11 @@ input_file() {
print_mtime "$1" >> ${output}
cat "$1" >> ${output}
else
- grep ^file "$1" | cut -d ' ' -f 3
+ cat "$1" | while read type dir file perm ; do
+ if [ "$type" == "file" ]; then
+ echo "$file \\";
+ fi
+ done
fi
elif [ -d "$1" ]; then
dir_filelist "$1"