diff options
| author | Mathieu Othacehe <m.othacehe@gmail.com> | 2020-05-05 14:26:35 +0200 |
|---|---|---|
| committer | Mathieu Othacehe <m.othacehe@gmail.com> | 2020-05-05 16:08:33 +0200 |
| commit | 892bbea750e5733979ee0423cbdfcea222b07925 (patch) | |
| tree | d462349651a38b5fb157ba217703ecc67d9e9d48 | |
| parent | 5990e95b607b888edd862a2ccb5ca69dcd17d801 (diff) | |
build: install: Do not set store GID.
There's no need to set the store GID as is will be done by the guix-daemon,
with the following snippet:
if (chown(chrootStoreDir.c_str(), 0, buildUser.getGID()) == -1)
throw SysError(format("cannot change ownership of ‘%1%’") % chrootStoreDir);
* gnu/build/install.scm (directives): Do not set store GID.
| -rw-r--r-- | gnu/build/install.scm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/build/install.scm b/gnu/build/install.scm index 9753792216a..59a118e9058 100644 --- a/gnu/build/install.scm +++ b/gnu/build/install.scm | |||
| @@ -101,9 +101,7 @@ the context of the caller. If the directive matches those defaults then, | |||
| 101 | (define (directives store) | 101 | (define (directives store) |
| 102 | "Return a list of directives to populate the root file system that will host | 102 | "Return a list of directives to populate the root file system that will host |
| 103 | STORE." | 103 | STORE." |
| 104 | `(;; Note: the store's GID is fixed precisely so we can set it here rather | 104 | `((directory ,store 0 0 #o1775) |
| 105 | ;; than at activation time. | ||
| 106 | (directory ,store 0 30000 #o1775) | ||
| 107 | 105 | ||
| 108 | (directory "/etc") | 106 | (directory "/etc") |
| 109 | (directory "/var/log") ; for shepherd | 107 | (directory "/var/log") ; for shepherd |
