Add userid to boot_results_file_path to avoid permission failure.

Change-Id: I10a5cd11071fa8787bb8f8917ce1e8f5cdbe1f28
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/boot_data.py b/lib/boot_data.py
index 13fccd9..4bc4229 100755
--- a/lib/boot_data.py
+++ b/lib/boot_data.py
@@ -335,8 +335,14 @@
                       name.
     """
 
+    USER = os.environ.get("USER", "")
+    dir_path = "/tmp/" + USER + "/"
+    if not os.path.exists(dir_path):
+        os.makedirs(dir_path)
+
     file_name_dict = vf.create_var_dict(pgm_name, openbmc_nickname, master_pid)
-    return vf.create_file_path(file_name_dict, file_suffix=":boot_results")
+    return vf.create_file_path(file_name_dict, dir_path=dir_path,
+                               file_suffix=":boot_results")
 
 ###############################################################################