diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2023-07-05 22:27:48 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2023-07-05 22:28:56 +0200 |
commit | ff23e34f564820172964e9b9de096432b8f7d006 (patch) | |
tree | 1e6f9056172e9ed17d73a5e6fbff871ca460e026 /etc | |
parent | 67c276a870b9d6be69c2a9e867683e58928c38ef (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-x | etc/guix-install.sh | 3 |
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 |