From 9e98184edd8ded24006cf028f8bf72a40bbd7ee6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 18 Mar 2014 16:00:09 +0000 Subject: mkinitfs: fix -b we need make the files relative so we strip off any leading / --- mkinitfs.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mkinitfs.in') diff --git a/mkinitfs.in b/mkinitfs.in index 12ba67c..aee3355 100755 --- a/mkinitfs.in +++ b/mkinitfs.in @@ -43,7 +43,7 @@ initfs_base() { local oldpwd="$PWD" cd "${basedir:-/}" for file in $(feature_files files); do - echo $file + echo "${file#/}" done | cpio -pdm "$tmpdir" # copy init @@ -114,7 +114,7 @@ initfs_kmods() { local oldpwd="$PWD" cd ${basedir:-/} for file in $files; do - echo $file + echo "${file#/}" done | cpio -pdm "$tmpdir" depmod $kernel -b "$tmpdir" cd "$oldpwd" -- cgit v1.2.3