From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 6NVCBEKGDWYgOgEAe85BDQ:P1 (envelope-from ) for ; Wed, 03 Apr 2024 18:39:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6NVCBEKGDWYgOgEAe85BDQ (envelope-from ) for ; Wed, 03 Apr 2024 18:39:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=OoP+IHDD; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712162370; a=rsa-sha256; cv=none; b=Z0WQntN0B2t3ycWf8N7oFLm+KP2rs5kPP4YbrKs9W0dhKfapbgDTjgQOB3dv3xNiy93bqh lr/2gmho3MXMnTEuFXWUGHzijxHgFyec1Ozhk9WsL0NrVIug3mDTdZuQZX+9iJioZcUfv7 w3MYWzO49DYr3ebwihpJTiSsIAm6wHmUt83eI851Z+731BiywpO2Ah9bCGfKb1OPTJp+tu kByqIFe9yGUEUBZNuIlBBMJPOHXiibkreDa9apakTXuBUKI5AFTln8JmFrnrS6O/O3xp2j ZqZheT8CqT628C92ChiuXSrtHbQXRs/WZIZ8UyEoHw+a+3HZlt1WPv5wy9b91g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=OoP+IHDD; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712162370; h=from:from:sender:sender:reply-to: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bzoGZUDVpI9tYSCYVc0N4gHjkydAEcAYU+depu5a9VE=; b=aMfkAfhaCPl4+CfW2AVifeX6ll9w4xeLT9TWuGM+qxSZ3oX1x1pq3r1rmkD3JhGY3NtCti HXnysQEOLTI9ArJjLebzHj+U6jYyh9ODqr6QokN0Zwp64Zga4g8Ez7CCHPZBKdq1DF1OLI 9sC1cNmKyIOknC7jOTGk4ln+34V5F2K3pHmuqVI9gxU1m9IDsbvtzsKllxbfUVoAD99Cz4 2pUHrZuhpe592pAP7/XzQjYFfTUccNrt1BEZRGW9Pd5Y3x3wu1V3vqGmUg4tpObw5mgRft xVzQotPwLPQn8ymsmqj1VbgNuEiQEgNMZgwSX/eyjYZqnLdnvLVQ3L8S0eruTg== 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 D26C8EFE2 for ; Wed, 3 Apr 2024 18:39:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rs3dq-0006PK-A5; Wed, 03 Apr 2024 12:39:14 -0400 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 1rs3de-0006On-JM for bug-guix@gnu.org; Wed, 03 Apr 2024 12:39:03 -0400 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 1rs3dc-0000fC-Gy for bug-guix@gnu.org; Wed, 03 Apr 2024 12:39:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rs3dg-0002xU-Ag; Wed, 03 Apr 2024 12:39:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#70165: D-Bus system service breaks reconfiguration when /var/run/dbus is present + /run and /var/run are on separate file systems. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: vivien@planete-kraus.eu, liliana.prikler@gmail.com, bug-guix@gnu.org Resent-Date: Wed, 03 Apr 2024 16:39:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70165 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 70165@debbugs.gnu.org Cc: Vivien Kraus , Liliana Marie Prikler X-Debbugs-Original-To: bug-guix@gnu.org X-Debbugs-Original-Xcc: Vivien Kraus , Liliana Marie Prikler Received: via spool by submit@debbugs.gnu.org id=B.171216228811124 (code B ref -1); Wed, 03 Apr 2024 16:39:03 +0000 Received: (at submit) by debbugs.gnu.org; 3 Apr 2024 16:38:08 +0000 Received: from localhost ([127.0.0.1]:59395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs3cl-0002tK-ML for submit@debbugs.gnu.org; Wed, 03 Apr 2024 12:38:07 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs3ch-0002s3-If for submit@debbugs.gnu.org; Wed, 03 Apr 2024 12:38:05 -0400 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 1rs3cW-0006EG-GB for bug-guix@gnu.org; Wed, 03 Apr 2024 12:37:52 -0400 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rs3cP-0000ab-LR for bug-guix@gnu.org; Wed, 03 Apr 2024 12:37:51 -0400 Date: Thu, 04 Apr 2024 00:36:06 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1712162173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bzoGZUDVpI9tYSCYVc0N4gHjkydAEcAYU+depu5a9VE=; b=OoP+IHDDcWY1t+wE/aG1ck8SLZLfPJnSGvCJasREaBwoEV5rstL/UNviiAAVgxmMbsjvck hy8dFOr5aPtPhtLNeOicGFb7aqm90H+G//3+XU2qGn8uTZP0cz0sNhmp9MNn7KMIxBtjm0 VygAkl5hABXxnmP56h8xWN68i+6acJe4EdchiLWpXrpLpIOQkzHogYE9DeqcERUcGPzYzW L9eRn//B4/q7BFzFob/oBjaeCQBc3+aRGQ/+AUuFuMg0MWQVxqAvWTJJXxMgegTxIaBmgJ jsYsLryLLgZ9F+/wHDdlgxeiiUHpqUzTBVtyI3JdyEG/Y3zaiOVi56l3owNkhA== Message-ID: <87frw2mmix.wl-hako@ultrarare.space> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: Hilton Chain From: Hilton Chain via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.86 X-Migadu-Queue-Id: D26C8EFE2 X-Migadu-Spam-Score: -6.86 X-Migadu-Scanner: mx10.migadu.com X-TUID: vvkfajyMSiJN Hi, I have /var/run and /run on separate file systems, recently I noticed system reconfiguration stopped with "guix system: error: rename-file: Invalid cross-device link": --8<---------------cut here---------------start------------->8--- newfstatat(AT_FDCWD, "/run", {st_mode=3DS_IFDIR|0755, st_size=3D440, ...}, = AT_SYMLINK_NOFOLLOW) =3D 0 newfstatat(AT_FDCWD, "/run/dbus", {st_mode=3DS_IFDIR|0700, st_size=3D40, ..= .}, AT_SYMLINK_NOFOLLOW) =3D 0 mkdir("/run", 0777) =3D -1 EEXIST (File exists) mkdir("/run/dbus", 0777) =3D -1 EEXIST (File exists) chown("/run/dbus", 988, 983) =3D 0 chmod("/run/dbus", 0755) =3D 0 symlink("/run/dbus", "/var/run/dbus") =3D -1 EEXIST (File exists) readlink("/var/run/dbus", 0x1634730, 100) =3D -1 EINVAL (Invalid argument) openat(AT_FDCWD, "/var/run/dbus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY= ) =3D 17 newfstatat(17, "", {st_mode=3DS_IFDIR|0755, st_size=3D80, ...}, AT_EMPTY_PA= TH) =3D 0 getdents64(17, 0x16dfe10 /* 4 entries */, 32768) =3D 112 rename("/var/run/dbus/system_bus_socket", "/run/dbus/system_bus_socket") = =3D -1 EXDEV (Invalid cross-device link) close(13) =3D 0 write(2, "\33[1m\33[0mguix system: error: rena"..., 67=1B[1m=1B[0mguix syst= em: error: rename-file: Invalid cross-device link ) =3D 67 exit_group(1) =3D ? +++ exited with 1 +++ --8<---------------cut here---------------end--------------->8--- It's because /var/run/dbus was used for dbus service before, and now migrat= ion to /run/dbus is done with =A1rename-file=A2: --8<---------------cut here---------------start------------->8--- (rename-file (string-append "/var/run/dbus/" next) (string-append "/run/dbus/" next)) --8<---------------cut here---------------end--------------->8--- I think the logic can be improved for this case, but not sure how at the mo= ment. What do you think? Thanks