From 7c2d1b2295fb2f6f92896795e36f8f49e6f7d55a Mon Sep 17 00:00:00 2001 From: JUN JIE NAN Date: Fri, 29 Nov 2013 14:17:02 +0800 Subject: [PATCH] Store DIB_* only env variables Or environment variables like OS_USERNAME OS_PASSWORD will be stored in /etc/dib_environment also. It's potentially unsafe. Change-Id: I3a65d5bc0e4469a071db9ac23ebc82196a3f3feb --- bin/disk-image-create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/disk-image-create b/bin/disk-image-create index d184e670..4ec0d6f8 100755 --- a/bin/disk-image-create +++ b/bin/disk-image-create @@ -23,7 +23,7 @@ export LANG=C # Store our initial environment and command line args for later export DIB_ARGS="$@" -export DIB_ENV=$(export) +export DIB_ENV=$(export | grep ' DIB_.*=') SCRIPTNAME=$(basename $0) SCRIPT_HOME=$(dirname $0)