Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Acked-by: Mike Frysinger<[email protected]> Signed-off-by: Michal Marek <[email protected]>
- Loading branch information