From 92b0125da1a008b4ca69b45f41174090c0f2329b Mon Sep 17 00:00:00 2001 From: James Slagle Date: Wed, 4 Feb 2015 13:25:48 -0500 Subject: [PATCH] Use sudo -E when squashing package installs files Since the package-installs-squash script relies on the defined environment variables for figuring out what the values are for an element's install type and the default install types, sudo -E must be used to preserve the environment. Change-Id: Ice5cf0bca65d8078f84daedbef123fc73d5a7b63 --- .../package-installs/extra-data.d/99-squash-package-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/package-installs/extra-data.d/99-squash-package-install b/elements/package-installs/extra-data.d/99-squash-package-install index 74a31075..8bfa3486 100755 --- a/elements/package-installs/extra-data.d/99-squash-package-install +++ b/elements/package-installs/extra-data.d/99-squash-package-install @@ -2,4 +2,4 @@ set -eux set -o pipefail -sudo $(dirname $0)/../bin/package-installs-squash --elements="$IMAGE_ELEMENT" --path=$ELEMENTS_PATH $TMP_MOUNT_PATH/tmp/package-installs.json +sudo -E $(dirname $0)/../bin/package-installs-squash --elements="$IMAGE_ELEMENT" --path=$ELEMENTS_PATH $TMP_MOUNT_PATH/tmp/package-installs.json