From 654d8d5ad9e565b832a5f49a1055ed5e4c2f9447 Mon Sep 17 00:00:00 2001 From: David Michael Date: Thu, 30 Nov 2017 16:14:49 -0500 Subject: [PATCH] build_torcx_store: Pass the image's unpack subdirectory to services --- build_torcx_store | 1 + 1 file changed, 1 insertion(+) diff --git a/build_torcx_store b/build_torcx_store index 49ddb811a9..5d11903771 100755 --- a/build_torcx_store +++ b/build_torcx_store @@ -145,6 +145,7 @@ function torcx_package() { sudo find "${tmproot}/lib/systemd/system" -type f -exec sed -i \ -e '/^\[Unit]/aRequires=torcx.target\nAfter=torcx.target' \ -e '/^\[Service]/aEnvironmentFile=/run/metadata/torcx' \ + -e "/^\[Service]/aEnvironment=TORCX_IMAGEDIR=/${name}" \ -e 's,/usr/s\?bin/,${TORCX_BINDIR}/,g' \ -e 's,^\([^ ]*=\)\(.{TORCX_BINDIR}\)/,\1/usr/bin/env PATH=\2:${PATH} \2/,' {} + fi