All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] binman: Avoid requiring a home directory on startup
@ 2023-02-10 20:59 Simon Glass
  2023-02-10 21:23 ` Mark Kettenis
  0 siblings, 1 reply; 15+ messages in thread
From: Simon Glass @ 2023-02-10 20:59 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Alper Nebi Yasak, Neha Malcom Francis, Stefan Herbrechtsmeier,
	Philippe Reynes, Peng Fan, Mike Frysinger, Simon Glass

This is needed to download tools, but we may not need to do this. At
present binman fails to start if HOME is not set.

Use the current directory as a default to avoid this.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/binman/bintool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/binman/bintool.py b/tools/binman/bintool.py
index 8fda13ff012..f460243e796 100644
--- a/tools/binman/bintool.py
+++ b/tools/binman/bintool.py
@@ -43,7 +43,7 @@ FETCH_NAMES = {
 # Status of tool fetching
 FETCHED, FAIL, PRESENT, STATUS_COUNT = range(4)
 
-DOWNLOAD_DESTDIR = os.path.join(os.getenv('HOME'), 'bin')
+DOWNLOAD_DESTDIR = os.path.expanduser('~/bin')
 
 class Bintool:
     """Tool which operates on binaries to help produce entry contents
-- 
2.39.1.581.gbfd45094c4-goog


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-03-08 22:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-10 20:59 [PATCH] binman: Avoid requiring a home directory on startup Simon Glass
2023-02-10 21:23 ` Mark Kettenis
2023-02-14 19:48   ` Simon Glass
2023-02-14 19:56     ` Mike Frysinger
2023-02-14 20:08     ` Tom Rini
2023-02-14 20:12       ` Mike Frysinger
2023-02-14 20:27         ` Tom Rini
2023-02-17  0:12           ` Simon Glass
2023-02-17  0:19             ` Tom Rini
2023-02-17  2:55               ` Simon Glass
2023-02-17 12:21                 ` Quentin Schulz
2023-02-17 23:49                   ` Simon Glass
2023-02-20 11:15                     ` Quentin Schulz
2023-02-21 19:35                       ` Simon Glass
2023-03-08 22:18                       ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.