diff options
author | Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 2020-06-08 12:25:24 +0200 |
---|---|---|
committer | Jan Nieuwenhuizen <janneke@gnu.org> | 2020-06-08 16:50:41 +0200 |
commit | 8ca543703ffc5b750cfc44116a36c25bbf007f82 (patch) | |
tree | c0db16f839df2bd9bb62028984157f1392abd397 | |
parent | 1ed658b073d754c2aa84c651cb9e792bed7b2396 (diff) |
hurd-boot: Use 'setxattr' instead of invoking settrans.
Note: Using `getxattr' on the Hurd instead of running showtrans does not
work (yet?).
* gnu/build/hurd-boot.scm (setup-translator): Use 'setxattr' instead of
invoking settrans.
* gnu/system.scm (hurd-multiboot-modules): Add --x-xattr-translator-records to
enable xattr-embebbing of translators.
-rw-r--r-- | gnu/build/hurd-boot.scm | 2 | ||||
-rw-r--r-- | gnu/system.scm | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm index 398cee1395..8150aff972 100644 --- a/gnu/build/hurd-boot.scm +++ b/gnu/build/hurd-boot.scm @@ -140,7 +140,7 @@ set." (chmod port mode))))) (catch 'system-error (lambda _ - (apply invoke "settrans" "--create" file-name command)) + (setxattr file-name "gnu.translator" (string-join command "\0" 'suffix))) (lambda (key . args) (let ((errno (system-error-errno (cons key args)))) (format (current-error-port) "~a: ~a\n" diff --git a/gnu/system.scm b/gnu/system.scm index 21d0fbd190..c6feea08f9 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -1190,6 +1190,7 @@ a list of <menu-entry>, to populate the \"old entries\" menu." "--device-master-port='${device-port}'" "--exec-server-task='${exec-task}'" "--store-type=typed" + "--x-xattr-translator-records" "'${root}'" "'$(task-create)'" "'$(task-resume)'")) (target (%current-target-system)) (libc (if target |