From: David Boilleau via Guix-patches via <guix-patches@gnu.org>
To: 74258@debbugs.gnu.org
Cc: David Boilleau <david_boilleau@gmx.fr>
Subject: [bug#74258] [PATCH 0/3] Fix uninstall script
Date: Fri, 8 Nov 2024 14:41:12 +0100 [thread overview]
Message-ID: <cover.1731055803.git.david_boilleau@gmx.fr> (raw)
I installed Guix on Ubuntu 24.04 with the script guix-install.sh, then I
tried to uninstall it by running `guix-install.sh --uninstall`. The
uninstall failed three times:
1. The unit gnu-store.mount was not suppressed, because the prior test
on the gnu-store.mount file failed.
2. The variable ROOT_HOME did not exist, so /root/.guix-profile,
/root/.config/guix and /root/.cache/guix were not suppressed.
3. The "guixbuilder" users were already removed due to the previous
attempts, so the script failed to remove them and exited here. Same when
it tried to remove the service guix-daemon.service.
Here are propositions to fix all of this.
David Boilleau (3):
guix-install.sh: Test if gnu-store.mount exists before removing the
unit
guix-install.sh: Replace `ROOT_HOME` with `~root`
guix-install.sh: Run the uninstall even if already partially done
etc/guix-install.sh | 36 +++++++++++++++++++++---------------
1 file changed, 21 insertions(+), 15 deletions(-)
base-commit: 673b924ac1e30a5d498e28859af365cf2bb4a508
--
2.43.0
next reply other threads:[~2024-11-08 15:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-08 13:41 David Boilleau via Guix-patches via [this message]
2024-11-08 14:10 ` [bug#74258] [PATCH 1/3] guix-install.sh: Test if gnu-store.mount exists before removing the unit David Boilleau via Guix-patches via
2024-11-08 14:10 ` [bug#74258] [PATCH 2/3] guix-install.sh: Replace `ROOT_HOME` with `~root` David Boilleau via Guix-patches via
2024-11-08 14:10 ` [bug#74258] [PATCH 3/3] guix-install.sh: Run the uninstall even if already partially done David Boilleau via Guix-patches via
2024-11-14 14:41 ` bug#74258: [PATCH 0/3] Fix uninstall script Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1731055803.git.david_boilleau@gmx.fr \
--to=guix-patches@gnu.org \
--cc=74258@debbugs.gnu.org \
--cc=david_boilleau@gmx.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).