me
/
guix
Archived
1
0
Fork 0

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

* etc/guix-install.sh (sys_create_store): Strip the first tar
file name component.
Tobias Geerinckx-Rice 2023-07-05 22:27:48 +02:00
parent 67c276a870
commit ff23e34f56
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 2 additions and 1 deletions

View File

@ -363,7 +363,8 @@ sys_create_store()
cd "$tmp_path" cd "$tmp_path"
_msg "${INF}Installing /var/guix and /gnu..." _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" _msg "${INF}Linking the root user's profile"
mkdir -p ~root/.config/guix mkdir -p ~root/.config/guix