From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0APLAbPqMWONgwEAbAwnHQ (envelope-from ) for ; Mon, 26 Sep 2022 20:08:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GGPOAbPqMWNTEwEA9RJhRA (envelope-from ) for ; Mon, 26 Sep 2022 20:08:51 +0200 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 A83C32705E for ; Mon, 26 Sep 2022 20:08:50 +0200 (CEST) Received: from localhost ([::1]:56338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocsXB-0006WE-AA for larch@yhetil.org; Mon, 26 Sep 2022 14:08:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocsC6-0006dh-Pg for bug-guix@gnu.org; Mon, 26 Sep 2022 13:47:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocsC6-0003Py-GE for bug-guix@gnu.org; Mon, 26 Sep 2022 13:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ocsC5-0002kM-Tt for bug-guix@gnu.org; Mon, 26 Sep 2022 13:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58084: guix deploy fails, leaving the newly installed system generation active Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 26 Sep 2022 17:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58084 X-GNU-PR-Package: guix X-GNU-PR-Keywords: notabug To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 58084@debbugs.gnu.org Received: via spool by 58084-submit@debbugs.gnu.org id=B58084.166421438910520 (code B ref 58084); Mon, 26 Sep 2022 17:47:01 +0000 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 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?="'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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664215730; 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-cc: 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=pAlkORd2nv1y0EYzFSJMYSi1Tj+zjQXFzXeZJljUAUw=; b=DkcXDH8j5bezAxK4XMXY7dkTk1qBfoueHBwP0Pt2kuQPUepR8Tl+SzWe2Ewgcc3Rn7cECo cNO2L7mSXg3jMklfhssgafq61w13ctgL2t5x5twh+daRQrCryjlxwneD9cvCyGSgCvtitw sYptm/eAJDxi554mCVqcGzFbBrid/VwmVo/1MkUbKBzs9BK1+A4UX3c7NQ1P905xfT/wed 1fDXLBjbT31G2GVHWKhdLcBXtALLbP6KUsgZr9DCa9rMGhoIN4FeAJ6R8/obhvdw7VB8Z3 vp+CAnkHB9kPoDrVXYH3VnIiMI+Fdj8v4qP9P66f6MttnnWqrHCCdUH6iCzerw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664215730; a=rsa-sha256; cv=none; b=NmJlMGi5j1nSHKyGXhH8BRLdN2Pyi3kP6ZsNcAh6qzf57Gu8VWN5Fw2Ss+9pfOlIAZWYE0 vMMBRGDQwLBtbAU1UFgS7Qsx1PSab60n+VbArjZA6JfS9P56VwbRTCioZIb2ppGeS8i6zk eeGyVkmWEtqKFqCimb9yZ1wIwZwRr6U9tdLm/SwaVPhHUBALgr1AZ4GqdL3/JAk3BEG0Rj hHRj5xDdhFBb3Si5UDSF5qGSU5t8faTnOCICPmgm2Qv9wPJZhj12Gu9L4JWh5wkh7vkubn SlvF50x2XIEaOb/6FUvRYdfhi9gdIKDPsnI6eldPQk8Tq6Tqe9PbH/4AWHvZxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WgF7NVFn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WgF7NVFn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A83C32705E X-Spam-Score: 7.65 X-Migadu-Scanner: scn1.migadu.com X-TUID: wmISQVCfV0NX 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