guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: hurd-boot: Use 'setxattr' instead of invoking settrans.


From: guix-commits
Subject: 02/02: hurd-boot: Use 'setxattr' instead of invoking settrans.
Date: Fri, 19 Jun 2020 04:41:29 -0400 (EDT)

janneke pushed a commit to branch master
in repository guix.

commit f25e8f76fec03e5a31c221e7427d6962ece1aa67
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Jun 8 12:25:24 2020 +0200

    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-embedding of translators.
---
 gnu/build/hurd-boot.scm | 2 +-
 gnu/system.scm          | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm
index f4b6dc7..aea2ac3 100644
--- a/gnu/build/hurd-boot.scm
+++ b/gnu/build/hurd-boot.scm
@@ -144,7 +144,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 d51691f..25cc63a 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -1191,6 +1191,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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]