~ruther/guix-local

ff23e34f564820172964e9b9de096432b8f7d006 — Tobias Geerinckx-Rice 3 years ago 67c276a
guix-install.sh: Don't extract the binary ‘.’.

* etc/guix-install.sh (sys_create_store): Strip the first tar
file name component.
1 files changed, 2 insertions(+), 1 deletions(-)

M etc/guix-install.sh
M etc/guix-install.sh => etc/guix-install.sh +2 -1
@@ 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