guix-commits
[Top][All Lists]
Advanced

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

branch master updated: guix-install.sh: Don't extract the binary ‘.’.


From: guix-commits
Subject: branch master updated: guix-install.sh: Don't extract the binary ‘.’.
Date: Wed, 05 Jul 2023 16:37:58 -0400

This is an automated email from the git hooks/post-receive script.

nckx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new ff23e34f56 guix-install.sh: Don't extract the binary ‘.’.
ff23e34f56 is described below

commit ff23e34f564820172964e9b9de096432b8f7d006
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Wed Jul 5 22:27:48 2023 +0200

    guix-install.sh: Don't extract the binary ‘.’.
    
    * etc/guix-install.sh (sys_create_store): Strip the first tar
    file name component.
---
 etc/guix-install.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 5012db55dd..1949f00ed4 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -363,7 +363,8 @@ sys_create_store()
 
     cd "$tmp_path"
     _msg "${INF}Installing /var/guix and /gnu..."
-    tar --extract --file "$pkg" -C /
+    # Strip (skip) the leading ‘.’ component, which fails on read-only ‘/’.
+    tar --extract --strip-components=1 --file "$pkg" -C /
 
     _msg "${INF}Linking the root user's profile"
     mkdir -p ~root/.config/guix



reply via email to

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