Always write context.sh to /tmp

pull/25/head
Javi Fontan 9 years ago
parent bd529d974e
commit 84a969763b

@ -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

@ -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

Loading…
Cancel
Save