Mail archive
alpine-devel

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

From: Christian Kampka <christian_at_kampka.net>
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
_at_@ -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:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Sun Oct 11 2015 - 17:50:07 GMT