From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id qLy2Lxf3DmZMzQAA62LTzQ:P1 (envelope-from ) for ; Thu, 04 Apr 2024 20:53:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qLy2Lxf3DmZMzQAA62LTzQ (envelope-from ) for ; Thu, 04 Apr 2024 20:53:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=NKnrkvkB; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712256791; 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=MeQY2j7QvttnuIZd3sG/strSVdHXA7Cjr+VhGqYmPMc=; b=q0+0PVBxH0I04RKtA+WBI/ANiQcjel7RjDljEBzluUsAu9kny6KzL2h3KaCLH9jNGdDs/K /UH5Lq0aA5DtEy/Fp6JRlZ5xwtNQHCUPCQXMXBPrVPNqY+tKxtaHPn0vGeXL/QdHdMG8dp qui/hPoLQmRuiuOPjrd8NiqeLpChNvDuwe1uv5NAV5mc6KvU6FgbzWMCo/BTYFzALgtXjV WoQpL4J2bfGmLH07iao4++ofBZcJ0LVQy4UU/uJpnWB+jXndeLePga/lF8+TsFRvKr6sJ8 CEeNipLEgq7UXuDBiITszFZXTvvHpGDKiGSlwqSgvvKG61G2FY2U00pXJ91GQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712256791; a=rsa-sha256; cv=none; b=WbW7PQE0l47H6h9oJ+iLecxNjI4Vd+F9sgCwUQ6jHoH8jHoVo4mF4oEqquzi+GA4BCCbbE 91w/kr2au8fPJy/e0h+M2vI7xDC6dUZ/ZmcqsNF9AGefcvCeaCo6dggCc2umR/c6amHrpJ W0Un6xdwFyz/gHw+ojFFd4oiTzSW43uwGFqz8LqeEzul46rEJtiM7fxoPeWD3IDm4MK5dx HgUSJxcmpdqmWVEA4QVBRbLUZOJvqAvjjiNPfps/dMibFLhttzXxLku3HiplWLNH4qFOEY 77n5zi1gw73sWLppPrBbJ0kI9kEG9ropwDMCXk8M9aVuSQvqo3Rwwbok8u86GA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=NKnrkvkB; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) 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 7EEDD24810 for ; Thu, 4 Apr 2024 20:53:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsSCp-0001gr-SH; Thu, 04 Apr 2024 14:53:00 -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 1rsSCn-0001fv-OY for bug-guix@gnu.org; Thu, 04 Apr 2024 14:52:57 -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 1rsSCm-0001fP-V2 for bug-guix@gnu.org; Thu, 04 Apr 2024 14:52:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rsSCr-0008S3-Qk for bug-guix@gnu.org; Thu, 04 Apr 2024 14:53:01 -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: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Apr 2024 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70165 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Hilton Chain , 70165@debbugs.gnu.org Cc: Vivien Kraus Received: via spool by 70165-submit@debbugs.gnu.org id=B70165.171225674732291 (code B ref 70165); Thu, 04 Apr 2024 18:53:01 +0000 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> From: Liliana Marie Prikler 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-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 4.14 X-Spam-Score: 4.14 X-Migadu-Queue-Id: 7EEDD24810 X-Migadu-Scanner: mx12.migadu.com X-TUID: +BfD5qxJwcLu 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