From ff23e34f564820172964e9b9de096432b8f7d006 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 5 Jul 2023 22:27:48 +0200 Subject: guix-install.sh: Don't extract the binary ‘.’. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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(-) (limited to 'etc') 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 -- cgit 1.4.1