From 84a969763bf3681ab8a95ab98dc7d2beb38ff239 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 25 Nov 2015 16:29:40 +0100 Subject: [PATCH] Always write context.sh to /tmp --- base/etc/one-context.d/06-gen-env | 2 +- base/usr/sbin/one-contextd | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base/etc/one-context.d/06-gen-env b/base/etc/one-context.d/06-gen-env index bb46458..fcebd65 100755 --- a/base/etc/one-context.d/06-gen-env +++ b/base/etc/one-context.d/06-gen-env @@ -25,7 +25,7 @@ function export_rc_vars fi } -export_rc_vars /mnt/context.sh +export_rc_vars /tmp/context.sh chown root:root $ENV_FILE chmod a+r $ENV_FILE diff --git a/base/usr/sbin/one-contextd b/base/usr/sbin/one-contextd index ab71329..3fb9c67 100755 --- a/base/usr/sbin/one-contextd +++ b/base/usr/sbin/one-contextd @@ -42,6 +42,7 @@ function start { mount -t iso9660 -L CONTEXT -o ro /mnt if [ -f /mnt/context.sh ]; then export_rc_vars /mnt/context.sh + cp /mnt/context.sh /tmp/context.sh fi execute_scripts