summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2023-07-05 22:27:48 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2023-07-05 22:28:56 +0200
commitff23e34f564820172964e9b9de096432b8f7d006 (patch)
tree1e6f9056172e9ed17d73a5e6fbff871ca460e026 /etc
parent67c276a870b9d6be69c2a9e867683e58928c38ef (diff)
guix-install.sh: Don't extract the binary ‘.’.
* etc/guix-install.sh (sys_create_store): Strip the first tar file name component.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/guix-install.sh3
1 files changed, 2 insertions, 1 deletions
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