From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2K/vN9PPcGAhaAAAgWs5BA (envelope-from ) for ; Sat, 10 Apr 2021 00:06:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yK/OMdPPcGB9WgAAbx9fmQ (envelope-from ) for ; Fri, 09 Apr 2021 22:06:11 +0000 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 1B023B7B6 for ; Sat, 10 Apr 2021 00:06:11 +0200 (CEST) Received: from localhost ([::1]:59632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUzGT-00080o-NM for larch@yhetil.org; Fri, 09 Apr 2021 18:06:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUzGM-00080g-GC for bug-guix@gnu.org; Fri, 09 Apr 2021 18:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUzGM-0006Gc-8i for bug-guix@gnu.org; Fri, 09 Apr 2021 18:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUzGM-0004vy-2V for bug-guix@gnu.org; Fri, 09 Apr 2021 18:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47681: Reloading udev rules requires a system restart Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 09 Apr 2021 22:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47681 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 47681@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.161800594918944 (code B ref -1); Fri, 09 Apr 2021 22:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2021 22:05:49 +0000 Received: from localhost ([127.0.0.1]:51084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUzG8-0004vU-R3 for submit@debbugs.gnu.org; Fri, 09 Apr 2021 18:05:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:33012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUzG7-0004vN-EO for submit@debbugs.gnu.org; Fri, 09 Apr 2021 18:05:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUzG7-0007zM-AA for bug-guix@gnu.org; Fri, 09 Apr 2021 18:05:47 -0400 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:39824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUzG5-00064L-KV for bug-guix@gnu.org; Fri, 09 Apr 2021 18:05:46 -0400 Received: by mail-qk1-x72f.google.com with SMTP id q26so7435625qkm.6 for ; Fri, 09 Apr 2021 15:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=O324hKJvG80TTEhMkzDA8qpr3+IDHxcVq7qWmgpJ9C0=; b=fRhUUnTJFftCQM2EhVRzCmSoHwVp1OAk+JJTwFo4+/JqcomKkKBJdZMnf7aQxJ7UMB iRwuH/hIJZ58mWPvJxx7Yp2lZEYxWdI+mdnMOztS9wpyt7zZg6YeMFuyzGTT/ZT4VHsc syCWYlHeY67ERHSVqmr49Fzu5KwqNv0abXjabYAk0nqEHfNAIjeWUeVsPGspqi2jVJjV nNblt9yi5PnJ7mI2FwR+PwH16BI/sIJ2wauPlwCUFSJqT+v1tR8cS5nJh9E6UGBopMEi u87qGbp2PqeQLZfArfFRNkYZTqnnfqt8mM/J2wCT8VVUMutnc+kkjplaHGiOIRDNl6NW gGGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=O324hKJvG80TTEhMkzDA8qpr3+IDHxcVq7qWmgpJ9C0=; b=GC54uk1FiNbFy7hNYFKYzEPogJqrmziNtpTMs/9Zyi7KsRTSZ45s+kTJGlIf5DGhtZ Dpv4+v7YVopJyu7WqbWtbTmWUEb/MRLsiYHKrFY5h+mipz/ml0jOCMPqRhpq8cWXkQNk 05jm2/xA80belLIu7xbmslXMHwLnQ6yoh1HQn00ZYwIi5NpYGsfgXHiu/wav+RZOsfl6 lUmfYBQEH1Ksc/ReXVW7uxjMF16iPPxHg7Dl3shuXsJbgYGZ5nMawhLdlXYZLjquw5LM axQsdWwu7q1RqWK5hnkcWSfAdPWFi43dRMAXL7ncCKWSjQEeS8GVSP8byVueOFfi4MPT /K2Q== X-Gm-Message-State: AOAM532qcHfD2TGx+8B0Pjt+i7p1RLOKjgu1rj97iDIb3lok7bY3hE9C P1lpDPlqZe/jkih5qNteOr+Cr7Z9Pw0= X-Google-Smtp-Source: ABdhPJwBopmPPeWnvJqyQCGyNdUf8QbzuZyVXgig51C9ne2IDAOlLK3gtf1FST4Z5HOOkygomd67AA== X-Received: by 2002:a37:d2c7:: with SMTP id f190mr16381018qkj.445.1618005944167; Fri, 09 Apr 2021 15:05:44 -0700 (PDT) Received: from hurd (dsl-236-123-235.b2b2c.ca. [207.236.123.235]) by smtp.gmail.com with ESMTPSA id r17sm2631777qtx.62.2021.04.09.15.05.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 15:05:43 -0700 (PDT) From: Maxim Cournoyer Date: Fri, 09 Apr 2021 18:05:37 -0400 Message-ID: <87eefjdsge.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72f.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-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618005971; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=O324hKJvG80TTEhMkzDA8qpr3+IDHxcVq7qWmgpJ9C0=; b=vDc/IAKXKbG6uXo2ZvuDjahQ12AoWUw/UsnQDQKZ3YAJj7zcNyAMg2Aygj25CMY0mhGB1c noq+ZO32oUlHVrrQZsUQLRQbJnrEzLRzHjd9r8W2pUvupiPI47ff+etiPiRTxdPhbileKB GAAowWQuixe+XhONzLV5rgt0dBSPOozNWLmfrZ97Wagh6IbFMvWiejnAQHrLKcGWFg2Vs2 f4hPLmu/cypw7esoQIAy/FKDnJXrfj6pr19Lh6FYr7cD22drcX1aTPpT0wSbhpnD2bW3aB rtxgJzsS/epXQxzlOA3/M0LkhnGMKIUSJzEqteMSp4FUevD+VvLD/bL9XC2HPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618005971; a=rsa-sha256; cv=none; b=GVt+xdBbX/KfIv3Si+mK7wnspFfh+78epcI63HlTeNRJh2kaY+XginAGyjobrNdtQiu/Pt kJ8fogt6NAQFUkTm0I16bujAV79b6FU4M2ks7gkxxPeA3u7wKqHedsrce8iqdDBV1INcSx nJ28SUBtozVZXXIt4Uvkl2Ss0yNJmeeJdJIPzAVbotpsqKKBxD8yT1QDFhYd4GToW+penQ vlkKctUpCcPwDzMJZ5eoD7cNGs9O2zS4dB7ApRJxNBZnOhfu/BvU4Tvy7H6swFJU2JuZ9R VxotjqoUnxISuCHfbI9OxM0VVBiohXTUHY2c3fTfKW9BdCP2jtUiHdkKyZoyoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=fRhUUnTJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=fRhUUnTJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 1B023B7B6 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: lT62TaPqgc1c Hello Guix! Using Guix System, after adding a new rule to the configuration of their udev-service-type service, the only ways to get the new rule into effect are to either: 1. restart udev (which is almost the same as a reboot, bringing down your graphical session) 2. restart the operating system Both of which are sub-optimal. This is caused by the configuration file/rules being made known to udev via environment variables: $ sudo cat /proc/$(pgrep udev)/environ | xargs -0 -n1 echo UDEV_CONFIG_FILE=/gnu/store/7yfpf8acjy884xbwaq5kn9z21irchfaj-udev.conf EUDEV_RULES_DIRECTORY=/gnu/store/yv58b7rg7dm3191cj6sma896550wgy4v-udev-rules/lib/udev/rules.d LINUX_MODULE_DIRECTORY=/run/booted-system/kernel/lib/modules PATH=/run/current-system/profile/bin For convenience, we should probably have the udev-service-type create a union of what it needs under /etc/udev/ as on other distributions. udev could then rely on a fixed location to look things and use its inotify based mechanism to detect changes and reload automatically when needed. This could probably fix things such as 'udevadm test' only reading rule files from under /gnu/store/svplp9wl0g2ahlv5rf6bhmq3xvp4zzh3-eudev-3.2.9/lib/udev/rules.d, for example. Thank you, Maxim