From unknown Tue Jun 17 20:15:29 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#70165 <70165@debbugs.gnu.org> To: bug#70165 <70165@debbugs.gnu.org> Subject: Status: D-Bus system service breaks reconfiguration when /var/run/dbus is present + /run and /var/run are on separate file systems. Reply-To: bug#70165 <70165@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:15:29 +0000 retitle 70165 D-Bus system service breaks reconfiguration when /var/run/dbu= s is present + /run and /var/run are on separate file systems. reassign 70165 guix submitter 70165 Hilton Chain severity 70165 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 03 12:38:08 2024 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== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Message-ID: <87frw2mmix.wl-hako@ultrarare.space> From: Hilton Chain To: bug-guix@gnu.org X-Debbugs-Cc: Vivien Kraus , Liliana Marie Prikler Subject: D-Bus system service breaks reconfiguration when /var/run/dbus is present + /run and /var/run are on separate file systems. 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-Spam-Score: 1.0 (+) 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: -0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 04 14:52:27 2024 Received: (at 70165) by debbugs.gnu.org; 4 Apr 2024 18:52:27 +0000 Received: from localhost ([127.0.0.1]:34713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsSCI-0008Ol-Rp for submit@debbugs.gnu.org; Thu, 04 Apr 2024 14:52:27 -0400 Received: from mail-ua1-x944.google.com ([2607:f8b0:4864:20::944]:44368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsSCF-0008No-HF for 70165@debbugs.gnu.org; Thu, 04 Apr 2024 14:52:25 -0400 Received: by mail-ua1-x944.google.com with SMTP id a1e0cc1a2514c-7e406a195f9so317657241.1 for <70165@debbugs.gnu.org>; Thu, 04 Apr 2024 11:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712256732; x=1712861532; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=MeQY2j7QvttnuIZd3sG/strSVdHXA7Cjr+VhGqYmPMc=; b=NKnrkvkB+uAeua5ejEMnBqWDIJlw9nZ37G7Zsw+BsU1imMm1lvpUeR7LbiXhkMTCs2 SHXlXgZk8nHDYIOpg3Eg8ZcJUbkRRykRZh0SCF6uMEoBxn7x9UgjY+Og1FYh/sMKPAsL xWRCH2ZnvCuf9rawPhDksa3gYvM59t810x3oBPZySXLsLu9FsISIZUdyRb3phqPvCcJc AHlpLLR3kwt3+JY2x5JcPNARQ61hk/n3ahkoay8vBV6uKU/JmWvrB2TNmcd6wEKq98mM k/1oGPQUDgr+t2pdth0Boqo6YNofly4h/maAHDMyKpg5HVWABW25ZQgBHLodX9iI5g5C cuAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712256732; x=1712861532; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MeQY2j7QvttnuIZd3sG/strSVdHXA7Cjr+VhGqYmPMc=; b=fr6NMYvJFRgELq8sTrbaybHHM4jk+IPUPoIHjyy3c32+lCOo6PYb+oxx3Uethr7jXB HWE0JBxx8Z6T79qVrSL38JwWGRBDdUQU3ISAxktyMUs9/0eTldxoK18bJFVBrkLFrnC2 jN/KAF0eCKLVuEePbNN1eiwJLr/+J6dRvUocWzzsP/rAuP9sbrB3U44ID01xL1oP08v9 cxm6paXkD5Tnj0+CV9uBaJZ+TAOhf6cqGQ7Hoq/BLyZ2XnNHX37DZvZOkWlcdUFP3c6t VfZdW3qNzrLviVAr2esLU4QxD/TT1dS6JbQCapPEBIILY8ql5/gQA5T25acl8iGziXSY Te0A== X-Forwarded-Encrypted: i=1; AJvYcCWcJceiwgGiO6RtVk2ba3FqSFlaz0icAZfn9DCG5fNlbJwxaN2ungdwtVbfKvrH9L6HjAlepyKodNVmwv6v3by7JU2mLgk= X-Gm-Message-State: AOJu0YwkIfg6qAHZYurW34jYilr6oDRS5mhuxFijq5VSEZcsoxBLrZjQ CcXLpjeUn/Z1iYYSKLKutLLyCbLUB/lrkUPC5fPn272sW5NXrihL X-Google-Smtp-Source: AGHT+IHJpMulqKQac/aIJR8z23/c98XxBSRpTzarIDeVnhwWZ+0iOv0UML/Ay09ncjMZTsd8XYVdeg== X-Received: by 2002:a67:fb93:0:b0:476:121:ff28 with SMTP id n19-20020a67fb93000000b004760121ff28mr2996168vsr.33.1712256732535; Thu, 04 Apr 2024 11:52:12 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id t25-20020a67ad19000000b00476e73a1243sm6918vsl.16.2024.04.04.11.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 11:52:12 -0700 (PDT) Message-ID: <4420d6a7c4845c60cec8884066bf15b0d5b4c5fc.camel@gmail.com> Subject: Re: bug#70165: D-Bus system service breaks reconfiguration when /var/run/dbus is present + /run and /var/run are on separate file systems. From: Liliana Marie Prikler To: Hilton Chain , 70165@debbugs.gnu.org Date: Thu, 04 Apr 2024 20:52:09 +0200 In-Reply-To: <87frw2mmix.wl-hako@ultrarare.space> References: <87frw2mmix.wl-hako@ultrarare.space> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70165 Cc: Vivien Kraus 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 (-) Am Donnerstag, dem 04.04.2024 um 00:36 +0800 schrieb Hilton Chain: > Hi, >=20 > 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": >=20 > --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)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D -1 E= EXIST (File exists) > mkdir("/run/dbus", 0777)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D -1 EEXIST (File exists) > chown("/run/dbus", 988, 983)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 =3D 0 > chmod("/run/dbus", 0755)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0 > symlink("/run/dbus", "/var/run/dbus")=C2=A0=C2=A0 =3D -1 EEXIST (File exi= sts) > 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_PATH) =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)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0 > write(2, "\33[1m\33[0mguix system: error: rena"..., 67=1B[1m=1B[0mguix > system: error: rename-file: Invalid cross-device link > ) =3D 67 > exit_group(1)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 =3D ? > +++ exited with 1 +++ > --8<---------------cut here---------------end--------------->8--- >=20 > It's because /var/run/dbus was used for dbus service before, and now > migration to /run/dbus is done with =E2=80=98rename-file=E2=80=99: >=20 > --8<---------------cut here---------------start------------->8--- > (rename-file (string-append "/var/run/dbus/" next) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = (string-append "/run/dbus/" next)) > --8<---------------cut here---------------end--------------->8--- >=20 > I think the logic can be improved for this case, but not sure how at > the moment. > What do you think? Is there a *good* reason to have those be separate file systems? :D What does the FHS say? Anyhow, cross-fs symlinks and rename-file ought to work assuming that both file-systems are already mounted. Is one of them not needed for boot? Cheers From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 04 21:54:19 2024 Received: (at 70165) by debbugs.gnu.org; 5 Apr 2024 01:54:19 +0000 Received: from localhost ([127.0.0.1]:35023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsYmY-0001V9-J5 for submit@debbugs.gnu.org; Thu, 04 Apr 2024 21:54:19 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:34928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsYmS-0001UI-T6 for 70165@debbugs.gnu.org; Thu, 04 Apr 2024 21:54:16 -0400 Date: Fri, 05 Apr 2024 09:53:25 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1712281954; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=zAnTaF9ReignyxR2l9TxNeahg+53q2SWOc5kkrbCrUc=; b=ubJxAd60eTVZIJOf2KM9dwKRwe7ur9Kn/Vj+Wn5Ub/vNYoheS8ygPTphIgXwNlVvP++AVi svmvZS/Tydix18a7agMY6zaNlSWx5gQMKhYlFPGTtw9cj/bMIGsIyrd5wDX/XWHSu82dPs rvkx8yF+fq5XEyyzdEMETVWZvtDFdMEdXlwB8RC19yQGew67NBv/7JHbPhxKsNkATHY1lh yO+fsvP/KHeVDCZJUAx+vyXPl7qh8BUskncxswbUlkLN40NVVvZf49+Ojd8IMSJ7nt/yff W7VWm+siCWMUeDT/dooKU9Gz83yKE2a2K7ow81TQtxoW0RKbZVlpeiE2m3R3yw== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Message-ID: <8734s0wp62.wl-hako@ultrarare.space> From: Hilton Chain To: Liliana Marie Prikler Subject: Re: bug#70165: D-Bus system service breaks reconfiguration when /var/run/dbus is present + /run and /var/run are on separate file systems. In-Reply-To: <4420d6a7c4845c60cec8884066bf15b0d5b4c5fc.camel@gmail.com> References: <87frw2mmix.wl-hako@ultrarare.space> <4420d6a7c4845c60cec8884066bf15b0d5b4c5fc.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70165 Cc: Vivien Kraus , 70165@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 (-) On Fri, 05 Apr 2024 02:52:09 +0800, Liliana Marie Prikler wrote: > > Am Donnerstag, dem 04.04.2024 um 00:36 +0800 schrieb Hilton Chain: > > 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)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D -= 1 EEXIST (File exists) > > mkdir("/run/dbus", 0777)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D -1 EEXIST (File exists) > > chown("/run/dbus", 988, 983)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 =3D 0 > > chmod("/run/dbus", 0755)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0 > > symlink("/run/dbus", "/var/run/dbus")=C2=A0=C2=A0 =3D -1 EEXIST (File e= xists) > > 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_PATH) =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)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0 > > write(2, "\33[1m\33[0mguix system: error: rena"..., 67=1B[1m=1B[0mguix > > system: error: rename-file: Invalid cross-device link > > ) =3D 67 > > exit_group(1)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 =3D ? > > +++ exited with 1 +++ > > --8<---------------cut here---------------end--------------->8--- > > > > It's because /var/run/dbus was used for dbus service before, and now > > migration to /run/dbus is done with =E2=80=98rename-file=E2=80=99: > > > > --8<---------------cut here---------------start------------->8--- > > (rename-file (string-append "/var/run/dbus/" next) > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (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 moment. > > What do you think? > Is there a *good* reason to have those be separate file systems? :D > What does the FHS say? > > Anyhow, cross-fs symlinks and rename-file ought to work assuming that > both file-systems are already mounted. Is one of them not needed for > boot? Specifically, I'm using tmpfs for them: --8<---------------cut here---------------start------------->8--- (file-system (type "tmpfs") (mount-point "/run") (device "tmpfs") (flags '(no-dev strict-atime)) (options "mode=3D0755,nr_inodes=3D800k,size=3D20%") (needed-for-boot? #t) (check? #f)) (file-system (type "tmpfs") (mount-point "/var/run") (device "tmpfs") (flags '(no-suid no-dev strict-atime)) (options "mode=3D0755,nr_inodes=3D800k,size=3D20%") (needed-for-boot? #t) (check? #f)) --8<---------------cut here---------------end--------------->8--- And here's a reproducer: --8<---------------cut here---------------start------------->8--- test_dir=3D"$(mktemp --directory)" sudo mount --type tmpfs none "$test_dir" touch "$test_dir/test" guile -c "(rename-file \"$test_dir/test\" \"/tmp/test\")" sudo umount "$test_dir" rmdir "$test_dir" --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- Backtrace: In ice-9/boot-9.scm: 1752:10 6 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 5 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 4 (call-with-prompt ("prompt") # =E2=80=A6) In ice-9/eval.scm: 619:8 3 (_ #(#(#))) In ice-9/command-line.scm: 185:19 2 (_ #) In unknown file: 1 (eval (rename-file "/tmp/tmp.9wyzRfQ28l/test" "/tmp/=E2=80=A6"= ) #) 0 (rename-file "/tmp/tmp.9wyzRfQ28l/test" "/tmp/test") ERROR: In procedure rename-file: In procedure rename-file: Invalid cross-device link --8<---------------cut here---------------end--------------->8--- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 06 02:43:47 2024 Received: (at 70165) by debbugs.gnu.org; 6 Apr 2024 06:43:47 +0000 Received: from localhost ([127.0.0.1]:38049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rszmD-0007YI-On for submit@debbugs.gnu.org; Sat, 06 Apr 2024 02:43:47 -0400 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]:46107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rszmA-0007X8-Dp for 70165@debbugs.gnu.org; Sat, 06 Apr 2024 02:43:44 -0400 Received: by mail-ej1-x643.google.com with SMTP id a640c23a62f3a-a46a7208eedso405572166b.0 for <70165@debbugs.gnu.org>; Fri, 05 Apr 2024 23:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712385810; x=1712990610; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=rXpm8eMfdCZXUAhSj9L1evdaKc3FPEwGT4ek8Eqm/BU=; b=axE21ktFTMw8xwKdBkOTb+gFypywPo1O3CzadAe2jDPYmgGogN1VkTPOAYZPv5rfPQ JVLZs4mq44hYKr0rzyrXeZ5XCOcnp9DY/feztjR6uGACaF0wY8uNbRgI2Ki5WHgEnKF1 IS5NXSy1vlYvi719gHQMqBtPC9M4S7jI1187WlDAA/RnfLZju8qiRJ+Jq8vFNMZ6FYRH 7zwe/aq/Ph81PtV0RkDR20iTf5+Ph7oSCqlSKLIJnG7nI6SReAXGvl0q+mSQUXScrrR6 zQooIJy+zLtA1EEY0ig/cSD1XlXpUQL7dzBw155xrDrB87h3TAeswoK7ulhYOAqEgUme BqVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712385810; x=1712990610; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rXpm8eMfdCZXUAhSj9L1evdaKc3FPEwGT4ek8Eqm/BU=; b=CLOiMvPI3WCDJXiAIBQVTlQInXGYJo/GPIKRswAZKePNL5zVraRCgpqnEgDCQmQuyg RhMYIOFHDHwpa3/giudPKALubhdubHvB1YqLFUczYuJEFSQ8X6ZNjNYE8c9u8CFEh/3S HiMb3th1zsrxwL0Uah0cJ/z5JgGOcfVY3HXZWMqtofcWC9f2i47CyjagP5/DBPKuXPEL 86n/Lg3VmfALc5CTCJHjuBJ8MKSn+TYqpZo4rvRw4k5amAQIXu9XEJOyC8RYYxuPlUam a9rFCJU9Iy5Ylhd12cCs3pOl0pdkDnw26ectstZXTcFHAGuFWjF0IbVkkkElLecXJr1D 5YFA== X-Gm-Message-State: AOJu0YwwbumnsFISIzaUcVP1oVQFG9T6kR4R+fyDoZpcTuXztACoLOcp YKp5yoc607bTeTCA5QE5s3XZMcVQQWxO1KiTUakbCoryMeIttAOg X-Google-Smtp-Source: AGHT+IG0oifyHgMyRhYUxKxkzD4lk++mHip4H8r18lDqEsew4iHy2CEjbOQKhjsbs3OBSHJK4Y12cQ== X-Received: by 2002:a17:907:9443:b0:a51:b23c:1102 with SMTP id dl3-20020a170907944300b00a51b23c1102mr1343380ejc.14.1712385810258; Fri, 05 Apr 2024 23:43:30 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id dq2-20020a170907734200b00a51b8e8c8besm448882ejc.86.2024.04.05.23.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 23:43:29 -0700 (PDT) Message-ID: <359765bed179300f3ed4da2b3d1bf8032bb8bc7d.camel@gmail.com> Subject: Re: bug#70165: D-Bus system service breaks reconfiguration when /var/run/dbus is present + /run and /var/run are on separate file systems. From: Liliana Marie Prikler To: Hilton Chain Date: Sat, 06 Apr 2024 08:43:28 +0200 In-Reply-To: <8734s0wp62.wl-hako@ultrarare.space> References: <87frw2mmix.wl-hako@ultrarare.space> <4420d6a7c4845c60cec8884066bf15b0d5b4c5fc.camel@gmail.com> <8734s0wp62.wl-hako@ultrarare.space> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70165 Cc: Ludovic =?ISO-8859-1?Q?Court=E8s?= , Vivien Kraus , 70165@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 (-) Am Freitag, dem 05.04.2024 um 09:53 +0800 schrieb Hilton Chain: > [H]ere's a reproducer: >=20 > --8<---------------cut here---------------start------------->8--- > test_dir=3D"$(mktemp --directory)" >=20 > sudo mount --type tmpfs none "$test_dir" > touch "$test_dir/test" >=20 > guile -c "(rename-file \"$test_dir/test\" \"/tmp/test\")" >=20 > sudo umount "$test_dir" > rmdir "$test_dir" > --8<---------------cut here---------------end--------------->8--- >=20 > --8<---------------cut here---------------start------------->8--- > Backtrace: > In ice-9/boot-9.scm: > =C2=A0 1752:10=C2=A0 6 (with-exception-handler _ _ #:unwind? _ # _) > In unknown file: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 5 (apply-smo= b/0 #) > In ice-9/boot-9.scm: > =C2=A0=C2=A0=C2=A0 724:2=C2=A0 4 (call-with-prompt ("prompt") # > =E2=80=A6) > In ice-9/eval.scm: > =C2=A0=C2=A0=C2=A0 619:8=C2=A0 3 (_ #(#(#))) > In ice-9/command-line.scm: > =C2=A0=C2=A0 185:19=C2=A0 2 (_ #) > In unknown file: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 (eval (ren= ame-file "/tmp/tmp.9wyzRfQ28l/test" "/tmp/=E2=80=A6") > #) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 (rename-fi= le "/tmp/tmp.9wyzRfQ28l/test" "/tmp/test") >=20 > ERROR: In procedure rename-file: > In procedure rename-file: Invalid cross-device link > --8<---------------cut here---------------end--------------->8--- If I understand this reproducer correctly, there aren't even symbolic links involved, are there? Adding Ludo to CC, because this looks like a Guile bug to me. Cheers From debbugs-submit-bounces@debbugs.gnu.org Fri May 10 10:23:05 2024 Received: (at 70165) by debbugs.gnu.org; 10 May 2024 14:23:05 +0000 Received: from localhost ([127.0.0.1]:42305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5R9M-0002ae-OP for submit@debbugs.gnu.org; Fri, 10 May 2024 10:23:05 -0400 Received: from out-188.mta1.migadu.com ([95.215.58.188]:13816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5R9K-0002a3-4V for 70165@debbugs.gnu.org; Fri, 10 May 2024 10:23:03 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rekahsoft.ca; s=key1; t=1715350947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=LyZNl486LT3UWHYhsWroWsS25QejpOcx0dgx++SUE38=; b=mdWIQx9psSscNEJEjvpLsw1ythWUxVwCj+ilEuamitC17XLWL565h3lWJCfep5awZtTG6c 7X3p5HgMQGrafZJ3bRzV5TL86ZFLirTwLYV7QKDQYvykLYbgoMtnetjzi8itQCNLOQFmzh lVDqwAyY+S/ZQ6H35kBeClFskETIJ+c= From: "Collin J. Doering" To: 70165@debbugs.gnu.org Subject: D-Bus system service breaks reconfiguration when /var/run/dbus is present + /run and /var/run are on separate file systems. Date: Fri, 10 May 2024 10:22:19 -0400 Message-ID: <87bk5dlpb8.fsf@rekahsoft.ca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Migadu-Flow: FLOW_OUT X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70165 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 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi there, I recently hit this issue, and was able work around it by: 1. Get root shell (via sudo or otherwise) 2. Disable dbus-system: 'herd stop guix-system' 3. Update guix: 'guix system reconfigure ...' 4. Reboot Thought I would note it just in case its useful to someone else. Kind regards, =2D-=20 Collin J. Doering http://rekahsoft.ca http://blog.rekahsoft.ca http://git.rekahsoft.ca --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIoEARMIADIWIQRDtw5R/qhdokLw/KlsfZrKhJK2jQUCZj4tmxQcY29sbGluQHJl a2Foc29mdC5jYQAKCRBsfZrKhJK2jVMvAP46E2NisVE7lpVtpNkWo/geYLmmy8gf 2UPTO9O+8eOKCAD+MqY6r1KdILQSIVHNrQkPANADWYxKhrwJuULShEPp+6w= =qCTm -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 23 05:10:37 2024 Received: (at 70165) by debbugs.gnu.org; 23 May 2024 09:10:37 +0000 Received: from localhost ([127.0.0.1]:58758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA4T7-0000ME-5r for submit@debbugs.gnu.org; Thu, 23 May 2024 05:10:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA4T1-0000M0-Rq for 70165@debbugs.gnu.org; Thu, 23 May 2024 05:10:35 -0400 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 1sA4Sp-0002Rg-M9; Thu, 23 May 2024 05:10:19 -0400 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=T/Q9NMYF5ITmeWZq8L2YND6qpiLTdNYTqkd7heBG4a8=; b=qcL+So/8A0PJLJqBW9Dq OXJiVz8zbh6pOnKv874xR8h+otBYzjns1dkYbJNhsu+oEhVRD8ktYRGz8nf3j8c3abzXodlTP4HZg dj70ljR+pKbMxDS41/WqZ2di3acvvFoDkHfsV7bBw+rvIiVdVkb9eukngxCSWiUieuZOrVQVUU0Op nZlXrJEqDp/yOQ7b+A/CbaaRJ16uywHRfFXLnZKmClocUiSlSblbcb+RDkFcP3eSf7ITlg1s3vzN0 7mVpvtT8EB3PE313OF44YU//bWwvDhYihmyvimnqjypkWdH1d6c5nWnKzvQ6c3TV67d1NLzZw5fby 44P2booc0zQA3w==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Liliana Marie Prikler Subject: Re: bug#70165: D-Bus system service breaks reconfiguration when /var/run/dbus is present + /run and /var/run are on separate file systems. In-Reply-To: <359765bed179300f3ed4da2b3d1bf8032bb8bc7d.camel@gmail.com> (Liliana Marie Prikler's message of "Sat, 06 Apr 2024 08:43:28 +0200") References: <87frw2mmix.wl-hako@ultrarare.space> <4420d6a7c4845c60cec8884066bf15b0d5b4c5fc.camel@gmail.com> <8734s0wp62.wl-hako@ultrarare.space> <359765bed179300f3ed4da2b3d1bf8032bb8bc7d.camel@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 5 Prairial an 232 de la =?utf-8?Q?R=C3=A9vo?= =?utf-8?Q?lution=2C?= jour du Canard 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, 23 May 2024 11:10:06 +0200 Message-ID: <87sey8c2s1.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70165 Cc: Hilton Chain , Vivien Kraus , 70165@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 (---) Liliana Marie Prikler skribis: > Am Freitag, dem 05.04.2024 um 09:53 +0800 schrieb Hilton Chain: [...] >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 (rename-f= ile "/tmp/tmp.9wyzRfQ28l/test" "/tmp/test") >>=20 >> ERROR: In procedure rename-file: >> In procedure rename-file: Invalid cross-device link >> --8<---------------cut here---------------end--------------->8--- > If I understand this reproducer correctly, there aren't even symbolic > links involved, are there? > > Adding Ludo to CC, because this looks like a Guile bug to me. =E2=80=98rename-file=E2=80=99 merely wraps rename(2), which errors out with= EXDEV (=E2=80=9CInvalid cross-link device=E2=80=9D) when the source and targets a= re on different file systems. So the case above is behaving as expected. What that means is that probably we shouldn=E2=80=99t be using =E2=80=98ren= ame-file=E2=80=99 directly in cases where the source and target might be on different file systems, and instead do something like: (define (rename-file* old new) ;; Like rename-file, but handle the case when OLD and NEW are on ;; different file systems. (catch 'system-error (lambda () (rename-file old new)) (lambda args (if (=3D EXDEV (system-error-errno args)) (begin (copy-file old new) (delete-file old)) (apply throw args))))) (Untested.) HTH! Ludo=E2=80=99.