From 942e5f5f1bd9dcf44d41ce3fb64da4529210a0f1 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Fri, 15 Jul 2022 12:05:13 +1200 Subject: [PATCH] set _ORIG variables in environment for 'subiquity' app this so orig_environ works when connecting via SSH --- snapcraft.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/snapcraft.yaml b/snapcraft.yaml index 0d758010..5b89f46b 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -11,8 +11,15 @@ apps: subiquity: command: usr/bin/subiquity-cmd environment: + # Save original values of environment variables, we want to restore them + # for the debug shell (LP: #1975629) and restart (LP: #1978139) + PYTHONPATH_ORIG: $PYTHONPATH + PATH_ORIG: $PATH + PYTHONIOENCODING_ORIG: $PYTHONIOENCODING PYTHONIOENCODING: utf-8 + SUBIQUITY_ROOT_ORIG: $SUBIQUITY_ROOT SUBIQUITY_ROOT: $SNAP + PYTHON_ORIG: $PYTHON PYTHON: $SNAP/usr/bin/python3.8 probert: command: bin/probert