]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] initramfs: handle more than one source dir or file list
authorThomas Chou <thomas@wytron.com.tw>
Sat, 25 Nov 2006 19:09:18 +0000 (11:09 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 25 Nov 2006 21:28:33 +0000 (13:28 -0800)
commit011c81d7f544f4d4b6527d38515dc89a29ae1a24
tree1134141b627cbf3c469f7067054ee4680fe58b36
parent449c6a27da1b4a3f163ecc9d1406939665a6ebcf
[PATCH] initramfs: handle more than one source dir or file list

Fix bug 7401.

Handle more than one source dir or file list to the initramfs gen scripts.

The Kconfig help for INITRAMFS_SOURCE claims that you can specify multiple
space-separated sources in order to allow unprivileged users to build an
image.  There are two bugs in the current implementation that prevent this
from working.

First, we pass "file1 dir2" to the gen_initramfs_list.sh script, which it
obviously can't open.

Second, gen_initramfs_list.sh -l outputs multiple definitions for
deps_initramfs -- one for each argument.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Cc: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
scripts/gen_initramfs_list.sh
usr/Makefile