From unknown Fri Jun 20 07:25:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58084 <58084@debbugs.gnu.org> To: bug#58084 <58084@debbugs.gnu.org> Subject: Status: System activation fails due to preexisting /etc/modprobe.d Reply-To: bug#58084 <58084@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:25:45 +0000 retitle 58084 System activation fails due to preexisting /etc/modprobe.d reassign 58084 guix submitter 58084 Maxim Cournoyer severity 58084 normal tag 58084 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 25 22:37:56 2022 Received: (at submit) by debbugs.gnu.org; 26 Sep 2022 02:37:56 +0000 Received: from localhost ([127.0.0.1]:48831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oce0K-0006ya-3f for submit@debbugs.gnu.org; Sun, 25 Sep 2022 22:37:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:51872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oce0G-0006yR-Ky for submit@debbugs.gnu.org; Sun, 25 Sep 2022 22:37:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oce0G-0007Yv-Fd for bug-guix@gnu.org; Sun, 25 Sep 2022 22:37:52 -0400 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:38420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oce0E-00071R-Tr for bug-guix@gnu.org; Sun, 25 Sep 2022 22:37:52 -0400 Received: by mail-qt1-x834.google.com with SMTP id y2so3369574qtv.5 for ; Sun, 25 Sep 2022 19:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date; bh=MB9xIz+6+kDXS49sJqKzrpJOa/cOa6/nUiP2b11EMak=; b=YUnylvMp1gvr5NZb6myoL5dLXBo1r255Y0DO4x2/n5l/MkXEBibYq5h9m0lJj2UN7S flS8r+UZt5DVgTp783ACEtYxcJivjhBigpjlAoFmJ9KymTopxlWgYZ6JKkjNmnHChJ+a RT5sbzZcfmF6XrjjxkXjMkIUtBkr9/4TfPu3BJwycHRnYJvKKsiY2MvsR8meoFNgJyIU aWXwvFsNTNQA6jipXXP1pwQwRCtnWuFwV5anV/KSCdv+lwXsV1LsL/gkzBDAxtXSe79u cJIpPSdZWcK3R6KEE5hUDbeeXpMiahk7t16ZaN5CgVA9hrzjKqTnp6jkrpu+oZNVrO3d 3Ieg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date; bh=MB9xIz+6+kDXS49sJqKzrpJOa/cOa6/nUiP2b11EMak=; b=Hsps96LNxOyZHxG5oqck7vfhle0LPpbMAYGi3ziEkw7/ETYLvj7R13oRwZvo6OUCt2 o1nybROWPEKnjFQMeHu0QgKOk9uMwBjvt/IHCQZ4zQDnVJAkZGOhwmt26BpEvv+oqjvO sG+kxcb5EY/QNfyjkwSPZ99NCjftUVylRxSk6SorW1J43HTm8q8Pjpl/I8RgNCLA33Uy p4B45Nq+hKgws66rhTQy3p0HnytFtvYPzruI4nLCVmhTB3HiQMNYD/qlzF8uVfPI9G07 aLAB2pCbjlllgelHJiyo2EPhs1oRUzLskTVIwdW7mSCQzr0c+EEzikNX3zRXTwet/VTz Ne2w== X-Gm-Message-State: ACrzQf3aONPzPLvMgCJqTy4J2MIWAw1teigPMmwW3NJSI8GTv+uVCHO7 bAWKWh2LqAPiIZcNzkVX0QWtzXWxP2Q= X-Google-Smtp-Source: AMsMyM7fKYhwNIRQ/5CQqbgTgd4DtfNgDNmyBrc8tfT6qWais9Qi/5rMQ6oFyBa9tKTF/buHxmwIEg== X-Received: by 2002:ac8:594b:0:b0:35c:d0b7:e2f9 with SMTP id 11-20020ac8594b000000b0035cd0b7e2f9mr16533192qtz.483.1664159869492; Sun, 25 Sep 2022 19:37:49 -0700 (PDT) Received: from hurd (dsl-10-132-99.b2b2c.ca. [72.10.132.99]) by smtp.gmail.com with ESMTPSA id bm17-20020a05620a199100b006c73c3d288esm10956212qkb.131.2022.09.25.19.37.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Sep 2022 19:37:49 -0700 (PDT) From: Maxim Cournoyer To: bug-guix Subject: guix deploy fails, leaving the newly installed system generation active Date: Sun, 25 Sep 2022 22:37:48 -0400 Message-ID: <8735ce7tdv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::834; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x834.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, While attempting to deploy to overdrive1, using the 9971141 commit in the maintenance repo, I encountered the following error: --8<---------------cut here---------------start------------->8--- maxim@hurd ~/src/guix-maintenance/hydra$ guix time-machine --commit=08d515233241ee0921b8b5ab706f98170c62437c -- deploy -L modules deploy-overdrive1.scm The following 1 machine will be deployed: overdrive1 guix deploy: deploying to overdrive1... guix deploy: sending 0 store items (0 MiB) to 'overdrive1.guix.gnu.org'... guix deploy: sending 0 store items (0 MiB) to 'overdrive1.guix.gnu.org'... guix deploy: sending 0 store items (0 MiB) to 'overdrive1.guix.gnu.org'... guix deploy: error: failed to deploy overdrive1: failed to switch systems while deploying 'overdrive1': system-error "symlink" "~A" ("File exists") (17) --8<---------------cut here---------------end--------------->8--- It also looks like even the above failed to "deploy" fully, the system generation was left as the last active one: --8<---------------cut here---------------start------------->8--- [...] Generation 28 Sep 26 2022 04:04:36 (current) file name: /var/guix/profiles/system-28-link canonical file name: /gnu/store/c02w7nyl5nr19x856455p2wh959r25h8-system label: GNU with Linux-Libre 5.19.10 bootloader: grub-efi root device: /dev/sda3 kernel: /gnu/store/nmdy7c4i34y12w8af7zl6sl9fmrp8wa0-linux-libre-5.19.10/Image channels: sfl-packages: repository URL: https://gitlab.com/Apteryks/sfl-guix-channel branch: master commit: 6385881124429016f750b0f562b70e07f592275e guix: repository URL: https://git.savannah.gnu.org/git/guix.git commit: 08d515233241ee0921b8b5ab706f98170c62437c configuration file: /gnu/store/myvzd1kpw2pfzfj3krl4lzpcbqsdn48x-configuration.scm --8<---------------cut here---------------end--------------->8--- Which leaves me with two questions: 1. why did it fail? 2. when it encounters any error while deploying, shouldn't the generation be removed instead of left as the active one? Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 26 11:40:02 2022 Received: (at 58084) by debbugs.gnu.org; 26 Sep 2022 15:40:02 +0000 Received: from localhost ([127.0.0.1]:51384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocqDB-0003Lq-Pw for submit@debbugs.gnu.org; Mon, 26 Sep 2022 11:40:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocqD8-0003LE-VY for 58084@debbugs.gnu.org; Mon, 26 Sep 2022 11:40:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocqD3-00070c-Jl; Mon, 26 Sep 2022 11:39:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=BDAsilR/LimPCcmTDlk7SD6FhylCgbqNYeo6gsHsYpE=; b=iEvOpUq19aJ+tR65gFjZ xGdiLSPGkDVzRCu35AItVNQYu472kMB92gp2IRyt2SUwuXAqqFueGG/g5D3HJBRrBaGf+LEOlxjUN C03+acmYNDR4ZONTWudZTS0WTloBGVpx4dg1neer5oBA2MHXUbB5o7r2XmlK7RE/IGACLlN8trzoj qukLTk7tYaLchr/vwmhuPN9kHArZO4AyYPGwhkAAsb7VDEmEIwxllgt2GvUOfAzyebE3Lll0FP7oA Oflx/iOIqHZSoy7M+XoVnP52C5ECEsoYuKXtZgcHM+oRVjsk0Fjx0H8oEZCRPPk1xgM2+Uzfbfa9O TJQqpkXhAWJPXg==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=60584 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocqD3-0007uI-60; Mon, 26 Sep 2022 11:39:53 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#58084: guix deploy fails, leaving the newly installed system generation active References: <8735ce7tdv.fsf@gmail.com> Date: Mon, 26 Sep 2022 17:39:48 +0200 In-Reply-To: <8735ce7tdv.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 25 Sep 2022 22:37:48 -0400") Message-ID: <87h70ukuuz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58084 Cc: 58084@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Maxim Cournoyer skribis: > While attempting to deploy to overdrive1, using the 9971141 commit in > the maintenance repo, I encountered the following error: > > maxim@hurd ~/src/guix-maintenance/hydra$ guix time-machine --commit=3D08d= 515233241ee0921b8b5ab706f98170c62437c -- deploy -L modules deploy-overdrive= 1.scm > The following 1 machine will be deployed: > overdrive1 > > guix deploy: deploying to overdrive1... > guix deploy: sending 0 store items (0 MiB) to 'overdrive1.guix.gnu.org'... > guix deploy: sending 0 store items (0 MiB) to 'overdrive1.guix.gnu.org'... > guix deploy: sending 0 store items (0 MiB) to 'overdrive1.guix.gnu.org'... > guix deploy: error: failed to deploy overdrive1: failed to switch systems= while deploying 'overdrive1': > system-error "symlink" "~A" ("File exists") (17) I can reproduce it. The failing code is in /gnu/store/=E2=80=A6-switch-to-system.scm: --8<---------------cut here---------------start------------->8--- (begin (use-modules (guix config) (guix profiles) (guix utils)) (define profile (or #f (string-append %state-directory "/profiles/system"))) (let* ((number (#{1+} # (generation-number profile))) (generation (generation-file-name profile number))) (switch-symlinks generation "/gnu/store/kifxq4hmp4ihn6nb06ia8wms33qrndx= n-system") (switch-symlinks profile generation) (setenv "GUIX_NEW_SYSTEM" "/gnu/store/kifxq4hmp4ihn6nb06ia8wms33qrndxn-= system") (primitive-load "/gnu/store/1wdwlaqkmixb1d7by7fj23lxppw8x44r-activate.s= cm"))) --8<---------------cut here---------------end--------------->8--- We can run it manually to get debugging data: --8<---------------cut here---------------start------------->8--- ludo@overdrive1 ~$ sudo -E env -i COLUMNS=3D100 "/gnu/store/xv7j4im9ap92mv= 0mbsm1wa4px93zxrms-switch-to-system.scm" making '/gnu/store/kifxq4hmp4ihn6nb06ia8wms33qrndxn-system' the current sys= tem... WARNING: (guile-user): imported module (guix build utils) overrides core bi= nding `delete' setting up setuid programs in '/run/setuid-programs'... populating /etc from /gnu/store/hf3qxlaiajvapwis0lq20avgl2whfa5w-etc... Backtrace: 6 (primitive-load "/gnu/store/xv7j4im9ap92mv0mbsm1wa4px93zxrms-s= witch-to-system.scm") 5 (primitive-load "/gnu/store/1wdwlaqkmixb1d7by7fj23lxppw8x44r-a= ctivate.scm") In ice-9/boot-9.scm: 260:13 4 (for-each # _) In unknown file: 3 (primitive-load "/gnu/store/v03vaksmkpj7wv4dhm0yrd3y65lzbixz-a= ctivate-service.scm") In srfi/srfi-1.scm: 634:9 2 (for-each # _) In gnu/build/activation.scm: 267:20 1 (_ "modprobe.d") In unknown file: 0 (symlink "/etc/static/modprobe.d" "/etc/modprobe.d") ERROR: In procedure symlink: In procedure symlink: File exists --8<---------------cut here---------------end--------------->8--- This is because =E2=80=98zram-device-service-type=E2=80=99 contributes a fi= le to /etc/modprobe.d: --8<---------------cut here---------------start------------->8--- (define %zram-device-config `("modprobe.d/zram.conf" ,(plain-file "zram.conf" "options zram num_devices=3D1"))) (define zram-device-service-type (service-type (name 'zram) (default-value (zram-device-configuration)) (extensions (list (service-extension kernel-module-loader-service-type (const (list "zram"))) (service-extension etc-service-type (const (list %zram-device-config))) (service-extension udev-service-type (compose list zram-device-udev-rule)))) (description "Creates a zram swap device."))) --8<---------------cut here---------------end--------------->8--- =E2=80=A6 which is fine, except that there was already a pre-existing /etc/modprobe.d directory (coming from openSuSE, the distro that was initially installed on this machine), which caused this activation code to break: --8<---------------cut here---------------start------------->8--- ludo@overdrive1 ~$ ls -l /etc/modprobe.d total 36 -rw-r--r-- 1 root root 3221 Nov 6 2016 00-system.conf -rw-r--r-- 1 root root 532 Nov 14 2012 10-unsupported-modules.conf -rw-r--r-- 1 root root 181 May 5 2017 50-alsa.conf -rw-r--r-- 1 root root 5009 Sep 15 2016 50-blacklist.conf -rw-r--r-- 1 root root 128 Oct 12 2017 50-bluetooth.conf -rw-r--r-- 1 root root 33 Oct 20 2016 50-ipw2200.conf -rw-r--r-- 1 root root 34 Oct 20 2016 50-iwl3945.conf -rw-r--r-- 1 root root 47 Nov 22 2011 99-local.conf ludo@overdrive1 ~$ ls -ld /etc/modprobe.d drwxr-xr-x 1 root root 260 Jan 29 2018 /etc/modprobe.d/ --8<---------------cut here---------------end--------------->8--- Once moved out of the way, reconfiguration proceeds just fine and happiness ensues: --8<---------------cut here---------------start------------->8--- ludo@overdrive1 ~$ ls -l /etc/modprobe.d lrwxrwxrwx 1 root root 22 Sep 26 17:19 /etc/modprobe.d -> /etc/static/modpr= obe.d ludo@overdrive1 ~$ ls -l /etc/modprobe.d/ total 4 lrwxrwxrwx 1 root root 53 Jan 1 1970 zram.conf -> /gnu/store/srl5xij6hf4x= 6iksx98grb1spcj3rch1-zram.conf --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 26 11:41:25 2022 Received: (at control) by debbugs.gnu.org; 26 Sep 2022 15:41:25 +0000 Received: from localhost ([127.0.0.1]:51389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocqEW-0003Og-Pf for submit@debbugs.gnu.org; Mon, 26 Sep 2022 11:41:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocqEV-0003OS-14 for control@debbugs.gnu.org; Mon, 26 Sep 2022 11:41:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocqEO-0007NC-Ly for control@debbugs.gnu.org; Mon, 26 Sep 2022 11:41:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=QxGuNim4jojotodBhdPUlgxHsl/N5lyF8B0OfRRmiz0=; b=IMuXqxk0tY/REv y7CcFlAyPB/uwS5TOgU80hxM6z7KndcTZJh2SDK5RDfzctFRa7hL+8EKJTA9GbjKlKvIQY6JAxU/g ZbdhqBzo7V9CScIMRJO2o2kwBSfXKoPdfTiVMl5fNs1IU+sdDaOyWpVklZ5WRuvb7cthb70zuuxKL I6PLM+e99NS/CL6wfbHjFTck0hLsno5ci6LUO+Iv6imGuvT1V4+GLj3fRTQbB7LAqJFQck6gP0nBt 24L4w4QZKOaCr8Ci50FMKEhz/BXmcUxbBDjLm7Ql0VSfee8BAH3oPVWz5nf1HxMS7ljAICZ0iOw6d yoSdCcrza9GWXHaEtTYA==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=44978 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocqDm-00083H-If for control@debbugs.gnu.org; Mon, 26 Sep 2022 11:40:56 -0400 Date: Mon, 26 Sep 2022 17:40:37 +0200 Message-Id: <87fsgekutm.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #58084 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) retitle 58084 System activation fails due to preexisting /etc/modprobe.d quit From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 26 11:41:42 2022 Received: (at control) by debbugs.gnu.org; 26 Sep 2022 15:41:42 +0000 Received: from localhost ([127.0.0.1]:51397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocqEo-0003PQ-Ay for submit@debbugs.gnu.org; Mon, 26 Sep 2022 11:41:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocqEm-0003P8-JD for control@debbugs.gnu.org; Mon, 26 Sep 2022 11:41:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39456) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocqEg-0007VS-DM for control@debbugs.gnu.org; Mon, 26 Sep 2022 11:41:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=+YVSkX8kqIm4pgYRXWfP//YWniivZsiwVqtveVQuavI=; b=DCm2cA4sstG7w8 2CKTu5/i8DIV66erxh61XF3WECiPDxXocmtOpwT8ELlPHqim8EUoQjnAnzN/ANpXu7z1wcqg2K8cj tCM0xS1aes6Pg9Oxp9NNh+Ct8SP3qpDcg96G2WHE7CbY04Ps7MOcbvLUT8sw4y1KMLFyy1nLWHtuA GLZXAtlsLkWTgsspDhrc7J3tPVuw1OdqRtl7ZWpItfhLZQMlxR3IjpcYmYt3BmaJv+RMN4bO4WdCV iU9KyJCspiSrp1VhCXRv4YjuodlNiNWr3DzCC2zHpmaKKKOTQkmkpDuHRy/0DjW2+c2FQKM15yEe2 ljX6eq3h02EF4mdT7B9A==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=33260 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocqEc-00086D-Hm for control@debbugs.gnu.org; Mon, 26 Sep 2022 11:41:34 -0400 Date: Mon, 26 Sep 2022 17:41:29 +0200 Message-Id: <87czbikus6.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #58084 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 58084 notabug close 58084 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 26 13:46:29 2022 Received: (at 58084) by debbugs.gnu.org; 26 Sep 2022 17:46:29 +0000 Received: from localhost ([127.0.0.1]:51708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocsBY-0002jc-Vu for submit@debbugs.gnu.org; Mon, 26 Sep 2022 13:46:29 -0400 Received: from mail-qk1-f174.google.com ([209.85.222.174]:41637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocsBX-0002jP-BL for 58084@debbugs.gnu.org; Mon, 26 Sep 2022 13:46:27 -0400 Received: by mail-qk1-f174.google.com with SMTP id k12so4575496qkj.8 for <58084@debbugs.gnu.org>; Mon, 26 Sep 2022 10:46:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date; bh=pAlkORd2nv1y0EYzFSJMYSi1Tj+zjQXFzXeZJljUAUw=; b=WgF7NVFnFoTP/wR4mchAyHhzkBXG4SyLNYlv3OlnLlZEgkZdyUcAX3I0i/hJIvF+GF r7QqwAgqdEVwAsP2EEuJY3jL0AY8DMYmojjP0yHhw60G7oH13AJFBVOrJO4ZK/UwTQ30 Ta5LPJkaMN0Ig9+2igZ8C0WhSm/d6XPEg93oAm93BelxQ+VbvhvlOEUczJUccUV+ezHO +nX+EdUkyZhI33zeKckVrk8KTfD//1gOYt9wf2XWw9Y94YS2odJGqfJ37Iej61SDryeY kVuAgXAfRx2txON785KKtPAJs+x1e7xvXtZ9XPZOT8scxjm7qUCoMMGXLZe7XOhNnoMk twfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date; bh=pAlkORd2nv1y0EYzFSJMYSi1Tj+zjQXFzXeZJljUAUw=; b=AREOdgB7CnBX72xX2wqkDvopdjGFLoxhtsod/+dR7e0wRC1T/LNT87/+KmTCg548lp 10NCyouAtLtX/a94RAwXxUVuZ9+pFZWS0cVY9aRrO1ghaHCsikBIN5iiNSxvavokwBi5 uH+RMT84RJrHcTSXOMSqUyD+agZd2tWWqBN4HW02jCUhTKZL4hP88ln7Onu1SN6Lurak fzOM2Xu5bG76Fxob517EA5KVjmDMiBH4c5YpmUb0ZhgqRYYRuCQ0+0X7GB8UVkbfpqzy fadP/tGtj9YGbMWSuTqL29Ek2lHGegonMXC01DG5TZ7NSnJ9GY5Kp/x13xoiIBjgkinD pu8w== X-Gm-Message-State: ACrzQf3tpoH0L3PZC4iwvnKr+ifKp+1PC/nOmxP3S8qplXEd2ggEsW2u UhFpCuNnG+hlXD+NfQHMLLkLkj8wXi0= X-Google-Smtp-Source: AMsMyM77IyFqEFfbuTXISOsBE/c5BU5wpquNMXZqiFYIZDZkMiqCphN+EwKmDC7EXkw8AsKgcjUliQ== X-Received: by 2002:a05:620a:12f5:b0:6ce:742c:b0d0 with SMTP id f21-20020a05620a12f500b006ce742cb0d0mr15022789qkl.19.1664214381262; Mon, 26 Sep 2022 10:46:21 -0700 (PDT) Received: from hurd (dsl-10-132-99.b2b2c.ca. [72.10.132.99]) by smtp.gmail.com with ESMTPSA id ay32-20020a05620a17a000b006bb0e5ca4bbsm11346727qkb.85.2022.09.26.10.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 10:46:20 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#58084: guix deploy fails, leaving the newly installed system generation active References: <8735ce7tdv.fsf@gmail.com> <87h70ukuuz.fsf@gnu.org> Date: Mon, 26 Sep 2022 13:46:20 -0400 In-Reply-To: <87h70ukuuz.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 26 Sep 2022 17:39:48 +0200") Message-ID: <87h70uyqoj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58084 Cc: 58084@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Ludovic Court=C3=A8s writes: [...] > We can run it manually to get debugging data: > > ludo@overdrive1 ~$ sudo -E env -i COLUMNS=3D100 "/gnu/store/xv7j4im9ap92= mv0mbsm1wa4px93zxrms-switch-to-system.scm" > making '/gnu/store/kifxq4hmp4ihn6nb06ia8wms33qrndxn-system' the current s= ystem... > WARNING: (guile-user): imported module (guix build utils) overrides core = binding `delete' > setting up setuid programs in '/run/setuid-programs'... > populating /etc from /gnu/store/hf3qxlaiajvapwis0lq20avgl2whfa5w-etc... > Backtrace: > 6 (primitive-load "/gnu/store/xv7j4im9ap92mv0mbsm1wa4px93zxrms= -switch-to-system.scm") > 5 (primitive-load "/gnu/store/1wdwlaqkmixb1d7by7fj23lxppw8x44r= -activate.scm") > In ice-9/boot-9.scm: > 260:13 4 (for-each # _) > In unknown file: > 3 (primitive-load "/gnu/store/v03vaksmkpj7wv4dhm0yrd3y65lzbixz= -activate-service.scm") > In srfi/srfi-1.scm: > 634:9 2 (for-each # _) > In gnu/build/activation.scm: > 267:20 1 (_ "modprobe.d") > In unknown file: > 0 (symlink "/etc/static/modprobe.d" "/etc/modprobe.d") > > ERROR: In procedure symlink: > In procedure symlink: File exists > > > This is because =E2=80=98zram-device-service-type=E2=80=99 contributes a = file to > /etc/modprobe.d: > > (define %zram-device-config > `("modprobe.d/zram.conf" > ,(plain-file "zram.conf" > "options zram num_devices=3D1"))) > > (define zram-device-service-type > (service-type > (name 'zram) > (default-value (zram-device-configuration)) > (extensions > (list (service-extension kernel-module-loader-service-type > (const (list "zram"))) > (service-extension etc-service-type > (const (list %zram-device-config))) > (service-extension udev-service-type > (compose list zram-device-udev-rule)))) > (description "Creates a zram swap device."))) > > > =E2=80=A6 which is fine, except that there was already a pre-existing > /etc/modprobe.d directory (coming from openSuSE, the distro that was > initially installed on this machine), which caused this activation code > to break: Oh wow! Should we be extra careful and always rm files before linking to their location? Or define our own 'symlink' procedure that'd take care of it? That's not very elegant but better than obscure crashes like this. What do you think? Thanks for the debugging! Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 26 13:48:20 2022 Received: (at 58084) by debbugs.gnu.org; 26 Sep 2022 17:48:20 +0000 Received: from localhost ([127.0.0.1]:51713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocsDM-0002oD-IB for submit@debbugs.gnu.org; Mon, 26 Sep 2022 13:48:20 -0400 Received: from mail-qt1-f172.google.com ([209.85.160.172]:40899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocsDK-0002nz-Jk for 58084@debbugs.gnu.org; Mon, 26 Sep 2022 13:48:18 -0400 Received: by mail-qt1-f172.google.com with SMTP id cj27so4569960qtb.7 for <58084@debbugs.gnu.org>; Mon, 26 Sep 2022 10:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date; bh=KMVrnzOacOa83LPDihi/uX7bSmOJlX4PS/n0qfUZo1M=; b=NRqsSxwVqJmMH6n3bWeUTgQnh0MPiAoX+S8tHdanZR6MLBYzIdDgKh8Amu0dtG1J3G 0pV1R8ZlIK3xJtlnY+BBE1bs1+5GrirTANsAijiXTLOBWEN7YLlLmeuGujpmPbllOg2G Zkd7wnAFtSeuRPveryyrXiXItdY98bxES0uNXYLi4f1wHLxRAb2sNswKBz5lhkVJbRs6 4Xo5/d9H3nu3W16CnuKtGLkRtRD41TRtdf5juIkErZl9MO6VHOifOFB9KurBBkjXCoLN G7fTH4cZpA9R+qqRiZu7RwI7Bm1eMMpBwuvcE5dHV8qNmwf+4ugZdpItdSsukQKO6bBy wg8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date; bh=KMVrnzOacOa83LPDihi/uX7bSmOJlX4PS/n0qfUZo1M=; b=yPfNFdfatYHifO+MDNe3RYzDZn/fRShTEqmRWi/A3tID3V70d/BZrDb0doHrbYOsuG xvf4JuZMko2dMif3F2XwZUfcOEHboRkHH2JvUsrFnXbMOlFKms0UXRvNPztF2ITmO0+T 3Yx9ZOG4+UhzROpV3y1vbbclodr7rzVgEDruwmce0gcxdwGCIGbRqA/F+aS8wRAmM6y/ c6JXL5PLiq2NgQ/QaxBWEeyFOhGI++YRtIM5Q0EApdY9ftq3vV0WBnx8cs5pLRnOdCAU EHs66RO2vp+ILBPLTXhP+DdlNtqewyD+Em6oKA3FQTY9d/KNdhy5o+1jMTP7HyYw19UX iR7Q== X-Gm-Message-State: ACrzQf2hVaDXV5PWFcUwgHj+MLZfyh29aBH4gl1wjVNKhIJwvSFC63+l JwOdaNUKOXixgq18UXK2u9aMqMdIJFc= X-Google-Smtp-Source: AMsMyM5YGGkuvKu/QCd0BiYiUhzJKBEk2XuZBvL4+j4R3qkywturN6ep1jxLRz1m+awCfrIw1e4cnw== X-Received: by 2002:a05:622a:252:b0:35d:482f:e105 with SMTP id c18-20020a05622a025200b0035d482fe105mr2074796qtx.92.1664214492629; Mon, 26 Sep 2022 10:48:12 -0700 (PDT) Received: from hurd (dsl-10-132-99.b2b2c.ca. [72.10.132.99]) by smtp.gmail.com with ESMTPSA id bn5-20020a05622a1dc500b00342b7e4241fsm11066863qtb.77.2022.09.26.10.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 10:48:12 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#58084: guix deploy fails, leaving the newly installed system generation active References: <8735ce7tdv.fsf@gmail.com> <87h70ukuuz.fsf@gnu.org> <87h70uyqoj.fsf@gmail.com> Date: Mon, 26 Sep 2022 13:48:11 -0400 In-Reply-To: <87h70uyqoj.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 26 Sep 2022 13:46:20 -0400") Message-ID: <87a66myqlg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58084 Cc: 58084@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello again, Maxim Cournoyer writes: [...] >> =E2=80=A6 which is fine, except that there was already a pre-existing >> /etc/modprobe.d directory (coming from openSuSE, the distro that was >> initially installed on this machine), which caused this activation code >> to break: > > Oh wow! Should we be extra careful and always rm files before linking to > their location? Or define our own 'symlink' procedure that'd take care > of it? That's not very elegant but better than obscure crashes like > this. I just had a better idea: fail and report that an unexpected file was found there, leaving the user to inspect it and choose a proper action. Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 29 10:47:24 2022 Received: (at 58084) by debbugs.gnu.org; 29 Sep 2022 14:47:24 +0000 Received: from localhost ([127.0.0.1]:39245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oduou-0007XY-IR for submit@debbugs.gnu.org; Thu, 29 Sep 2022 10:47:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oduos-0007XH-6M for 58084@debbugs.gnu.org; Thu, 29 Sep 2022 10:47:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oduom-0008BK-VI; Thu, 29 Sep 2022 10:47:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=8h9OxXEx7lAlwgXKyzUHqibO4XqJTkfsQDAQg4M96M0=; b=evEqpg/Ab2yYGwZUAVPT tLrc+1VySCCdfkqiUj84V30ExHjXNENyHJ4oyHDbISVB2RSTRlIoJyrSXEUndPSUWLNIYYgpW56bY BFtUP9dq2PBGsWGsjBv+3gwQmWh7EYsrB1hYtpnrD9xYdyqACWu0o8Uboh59v95H0YIsSM+wI1p3E bG4GBF9UpzgB6rVbAH8yYKo0rUFyYT6mCwOOHvtWdB8j92e7C4nDC8f+r85A4wkeVS/4OEnpeLvGf qi750cg2lnwFdzH07U0YFQftgPUqHmdN6R0Wtq0tq/wxoU35VTljbmF202RdDyF3JE/14cm3iS9OY MeLIvsYOeyu15w==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:58714 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oduom-0007uu-Gc; Thu, 29 Sep 2022 10:47:16 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#58084: guix deploy fails, leaving the newly installed system generation active References: <8735ce7tdv.fsf@gmail.com> <87h70ukuuz.fsf@gnu.org> <87h70uyqoj.fsf@gmail.com> <87a66myqlg.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 8 =?utf-8?Q?Vend=C3=A9miaire?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de l'Amarante X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 29 Sep 2022 16:47:15 +0200 In-Reply-To: <87a66myqlg.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 26 Sep 2022 13:48:11 -0400") Message-ID: <87zgei9r0s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58084 Cc: 58084@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Maxim Cournoyer skribis: > Maxim Cournoyer writes: > > [...] > >>> =E2=80=A6 which is fine, except that there was already a pre-existing >>> /etc/modprobe.d directory (coming from openSuSE, the distro that was >>> initially installed on this machine), which caused this activation code >>> to break: >> >> Oh wow! Should we be extra careful and always rm files before linking to >> their location? Or define our own 'symlink' procedure that'd take care >> of it? That's not very elegant but better than obscure crashes like >> this. > > I just had a better idea: fail and report that an unexpected file was > found there, leaving the user to inspect it and choose a proper action. Yeah, that=E2=80=99d be nice. It=E2=80=99s really a corner case that you= =E2=80=99ll only hit when installing on a non-empty file system, but gracefully handling it would be nice for sure. Ludo=E2=80=99. From unknown Fri Jun 20 07:25:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 28 Oct 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator