From: Thomas Chou Date: Wed, 6 Oct 2010 07:13:53 +0000 (+0800) Subject: gen_init_cpio: remove leading `/' from file names X-Git-Tag: v2.6.38-rc1~440^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43f901fbc8ba94bfa8d58155ba9378d7a13af636;p=pandora-kernel.git gen_init_cpio: remove leading `/' from file names When we extracted the generated cpio archive using "cpio -id" command, it complained, cpio: Removing leading `/' from member names var/run cpio: Removing leading `/' from member names var/lib cpio: Removing leading `/' from member names var/lib/misc It is worse with the latest "cpio" or "pax", which tries to overwrite the host file system with the leading '/'. So the leading '/' of file names should be removed. This is consistent with the initramfs come with major distributions such as Fedora or Debian, etc. Signed-off-by: Thomas Chou Acked-by: Mike Frysinger Signed-off-by: Michal Marek --- Reading git-diff-tree failed