From df3f12deab0eccd27540428b6677e3f4f17889c6 Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Tue, 29 Dec 2015 11:15:56 +0800 Subject: [PATCH 1/2] define the default value for the `cwd` Signed-off-by: Lai Jiangshan --- config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.md b/config.md index a3c132ae3..d57a40a51 100644 --- a/config.md +++ b/config.md @@ -69,7 +69,7 @@ The runtime MUST mount entries in the listed order. ## Process configuration * **`terminal`** (bool, optional) specifies whether you want a terminal attached to that process. Defaults to false. -* **`cwd`** (string, optional) is the working directory that will be set for the executable. +* **`cwd`** (string, optional) is the working directory that will be set for the executable. Defaults to "/" on linux. * **`env`** (array of strings, optional) contains a list of variables that will be set in the process's environment prior to execution. Elements in the array are specified as Strings in the form "KEY=value". The left hand side must consist solely of letters, digits, and underscores `_` as outlined in [IEEE Std 1003.1-2001](http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html). * **`args`** (string, required) executable to launch and any flags as an array. The executable is the first element and must be available at the given path inside of the rootfs. If the executable path is not an absolute path then the search $PATH is interpreted to find the executable. From 25e6674a4cbc58a2309f2c47383024d2df33913c Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 13 Jan 2016 16:32:23 -0500 Subject: [PATCH 2/2] config: cwd is a required default After thorough discussion, even though a reasonable default is "/", for platform independence, leave this up to the bundle author. Also, by this variable being present it makes things explicit for the runtime. Signed-off-by: Vincent Batts --- config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.md b/config.md index d57a40a51..a93b93733 100644 --- a/config.md +++ b/config.md @@ -69,7 +69,7 @@ The runtime MUST mount entries in the listed order. ## Process configuration * **`terminal`** (bool, optional) specifies whether you want a terminal attached to that process. Defaults to false. -* **`cwd`** (string, optional) is the working directory that will be set for the executable. Defaults to "/" on linux. +* **`cwd`** (string, required) is the working directory that will be set for the executable. * **`env`** (array of strings, optional) contains a list of variables that will be set in the process's environment prior to execution. Elements in the array are specified as Strings in the form "KEY=value". The left hand side must consist solely of letters, digits, and underscores `_` as outlined in [IEEE Std 1003.1-2001](http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html). * **`args`** (string, required) executable to launch and any flags as an array. The executable is the first element and must be available at the given path inside of the rootfs. If the executable path is not an absolute path then the search $PATH is interpreted to find the executable.