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/guix-install.sh | |
| 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/guix-install.sh')
| -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 5012db55dd6..1949f00ed4b 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh | |||
| @@ -363,7 +363,8 @@ sys_create_store() | |||
| 363 | 363 | ||
| 364 | cd "$tmp_path" | 364 | cd "$tmp_path" |
| 365 | _msg "${INF}Installing /var/guix and /gnu..." | 365 | _msg "${INF}Installing /var/guix and /gnu..." |
| 366 | tar --extract --file "$pkg" -C / | 366 | # Strip (skip) the leading ‘.’ component, which fails on read-only ‘/’. |
| 367 | tar --extract --strip-components=1 --file "$pkg" -C / | ||
| 367 | 368 | ||
| 368 | _msg "${INF}Linking the root user's profile" | 369 | _msg "${INF}Linking the root user's profile" |
| 369 | mkdir -p ~root/.config/guix | 370 | mkdir -p ~root/.config/guix |
