From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MHpHNpgMNmfYrwAAe85BDQ:P1 (envelope-from ) for ; Thu, 14 Nov 2024 14:43:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MHpHNpgMNmfYrwAAe85BDQ (envelope-from ) for ; Thu, 14 Nov 2024 15:43:37 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=euMjnxjR; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="sJme/6pR"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731595416; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1WeqHLDK9GCl0oZDuXjcJ+lc269FUIIjijpXLkMNtmU=; b=Nqaj70gNpuX1OSS79Xk16hdy+wmfnlQ5I4IYC8Ze+AZZXG+kI1z89aSkaJ2+q4C88nNZMT 6XaQc/G1/1a7ivlj8UBZTuvB+jg7jNWm0CiZ81corjm4X/o8EEIopb9dthCllDHG1EvTvs oQbXrqiuFPZyqdIY5BNyqOQWMLPe/YII7qQYX+UgrOupt5HmyfZ7WvQtf4tU6GQxURyn1B 0EDpBbvP9bZhT0Ub1VDv8pXyW9hSpBQAvDudAm1fttMrkDbmvaYtljPGSvc8jT1yqPfIt3 Bgi33GgVFmiC8g3lHtrVpBUq13qlKsrUtRZLeIahqO0IRbbEznoyakIsAm9mdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=euMjnxjR; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="sJme/6pR"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731595416; a=rsa-sha256; cv=none; b=TIn+FwxIfqwga2sGmtKUfBKLAdQ4shPT/hPBRzyv7vCqyB8nCVN7xmruhkdFTbRVj89cML Dokdeh2W8+SJyPhRxvPLBgd1FczkMGpU3ne2XlQd6eb/gr0zjJdvE5EloDcFWju7NSBZtf JEpl16aHq8dgIwGWuTl1AA61LvjWLsh2Hfr2RoiadINKg44EC3vw8mxJwlpMxO1A80taxT YAK0YIrSWPp0FMRIz5gIo4STj+JYpsn6tCMJm6r3BSBRQ1xbuKlk2hJKAXgHqnBv/b8lva Sp9qVCKGBPaL2RzTaHDbqwrzraRF8mhOVpszbYuKAUQT0JYGoMlfiyIwK/xJ3Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7E2BC8C115 for ; Thu, 14 Nov 2024 15:43:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBb3q-0003Hj-6N; Thu, 14 Nov 2024 09:43:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBb3m-0003HC-S0 for guix-patches@gnu.org; Thu, 14 Nov 2024 09:43:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBb3m-0006Y2-IQ for guix-patches@gnu.org; Thu, 14 Nov 2024 09:43:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=1WeqHLDK9GCl0oZDuXjcJ+lc269FUIIjijpXLkMNtmU=; b=euMjnxjRH9AQTdgzM1wtccCFDoCwpxpBjDiSCfkzTreGBAicCgDy02sYhkFPIC9xXHo8/Dhq/0zsfdesWNCxJdhRygEs0ugmXVZDCIbw182aF7hwB/t2wl1ZZVHKHQ95AKtj5uROSblKoUa9Kl6YNMoOu09JKjX2qzTkeTNz9MQkeOrIChIDrHMbb7AojQ0xLP1rhYPHg7g29dHfeYrCgtBDeVNI4ZvrUF5zN1IWgzyE9H2jap4ZCKJNNUCIDJtRwZyd9CGibANnr4CmvZFwm2qO7/7O5HsPzkV/4uUfAsBdOyWQ2MYjQSloA2z8IApbjb3E0O0t56mo4V3BMoVjqA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBb3m-00020f-Cr for guix-patches@gnu.org; Thu, 14 Nov 2024 09:43:02 -0500 Subject: bug#74258: [PATCH 0/3] Fix uninstall script Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Thu, 14 Nov 2024 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74258 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: David Boilleau Cc: 74258-done@debbugs.gnu.org Mail-Followup-To: 74258@debbugs.gnu.org, ludo@gnu.org, david_boilleau@gmx.fr Received: via spool by 74258-done@debbugs.gnu.org id=D74258.17315953307640 (code D ref 74258); Thu, 14 Nov 2024 14:43:02 +0000 Received: (at 74258-done) by debbugs.gnu.org; 14 Nov 2024 14:42:10 +0000 Received: from localhost ([127.0.0.1]:45663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBb2w-0001z9-Cj for submit@debbugs.gnu.org; Thu, 14 Nov 2024 09:42:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBb2t-0001yw-5W for 74258-done@debbugs.gnu.org; Thu, 14 Nov 2024 09:42:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBb2n-0006TM-9P; Thu, 14 Nov 2024 09:42:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=1WeqHLDK9GCl0oZDuXjcJ+lc269FUIIjijpXLkMNtmU=; b=sJme/6pRhWprCy+TIHUf mwt1Sv+xWbj/Zz/CfVz8/HbMqcNGUzSrj1XF2Aj5OB0aFqcEwTc49y4w/2Q/iwE2kvULuTwxSHN1n TbUb3/Aj/dNtJMK+qL8C2zZ6pjQLE6YPXOdBT7Hfyf2lDZPDrFLLITprr+bvA0NxPMupSLGNpSToe pMmu8SNkr8XG12dnQisQc7b+eEYhxBo2LqaA3XOFXOfKWIbyhBGIzw4LzQnXD2ElVVwLSy44bV9gI 8wJJqmVYnHPKjYISXgnXuejb44lIYNSsM0uJFh0GHsFUAFSIb2vjNuKa2gYyvpAa96LHUT8p8Ra4a ElNjGE2h8yEf2w==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (David Boilleau's message of "Fri, 8 Nov 2024 14:41:12 +0100") References: Date: Thu, 14 Nov 2024 15:41:56 +0100 Message-ID: <87v7wpop1n.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -0.11 X-Spam-Score: -0.11 X-Migadu-Queue-Id: 7E2BC8C115 X-TUID: +PhMuPbOQczB Hi David, David Boilleau skribis: > 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 This looks good to me. Applied, thank you for spotting the problems and for fixing them! Ludo=E2=80=99.