Subject: [alpine-devel] [PATCH] mkinitfs: features should be read from $basedir if set

From: Christian Kampka <[email-masked]>
Date: Sun, 11 Oct 2015 17:50:07 +0200

---
 mkinitfs.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mkinitfs.in b/mkinitfs.in
index d2a7890..14c728f 100755
--- a/mkinitfs.in
+++ b/mkinitfs.in
@@ -184,7 +184,7 @@ done
 shift $(( $OPTIND - 1 ))
 
 . $(readlink -f "$config")
-features_dir=${features_dir:-"$sysconfdir/features.d"}
+features_dir=${features_dir:-"${basedir%/:-}/${sysconfdir#/}/features.d"}
 [ -n "$myfeatures" ] && features="$myfeatures"
 
 if [ -n "$list_features" ]; then
-- 
2.6.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---