From: Pierre Neidhardt <ambrevar@gmail.com>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Package requests: Udisks helpers (udiskie, udevil)
Date: Sun, 01 Apr 2018 13:31:29 +0530 [thread overview]
Message-ID: <87370f5p9i.fsf@gmail.com> (raw)
In-Reply-To: <87o9j3flgm.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5906 bytes --]
Pierre Neidhardt <ambrevar@gmail.com> writes:
> It's possible to mount the drives for every one though:
>
> (define %automount-udev-rule
> (udev-rule
> "90-automount.rules"
> (string-append "KERNEL=\"sd[a-z][0-9]\", ACTION==\"add\", SUBSYSTEM==\"usb\", "
> "ENV{UDISKS_FILESYSTEM_SHARED}=\"1\","
> "RUN+=\"/run/current-system/profile/bin/udisksctl mount -b /dev/%k\"")))
The above rule does not seem to work.
When I try to debug it, udevadm fails to see the new 90-automount rule:
> udevadm test {udevadm info -q path -n /dev/sda1}
calling: test
version 3.2.4
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.
=== trie on-disk ===
tool version: 3
file size: 7431994 bytes
header size 80 bytes
strings 1901394 bytes
nodes 5530520 bytes
Load module index
timestamp of '/gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/etc/udev/rules.d' changed
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/50-udev-default.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-block.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-cdrom_id.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-drm.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-evdev.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-persistent-alsa.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-persistent-input.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-persistent-storage-tape.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-persistent-storage.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-persistent-v4l.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-sensor.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/60-serial.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/64-btrfs.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/70-mouse.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/70-touchpad.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/75-net-description.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/75-probe_mtd.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/78-sound-card.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/80-drivers.rules
Reading rules file: /gnu/store/8ylaz1xxb15iq3x1nvbz9rz2c5clq3d5-eudev-3.2.4/lib/udev/rules.d/80-net-name-slot.rules
rules contain 24576 bytes tokens (2048 * 12 bytes), 8930 bytes strings
# ...
I guess Guix passes some "path" parameters to udev which are missing
above. The proper path for the rules on my system is:
> ll /gnu/store/w1f960p754f5vvbv2mnpfsdbp583hfk7-udev-rules/lib/udev/rules.d
total 3.7k
lrwxrwxrwx 6 root root 86 1970-01-01 1970 10-dm.rules -> /gnu/store/rj2da82v4ii1sy2pzb618x1dyxyz4h33-lvm2-2.02.177/lib/udev/rules.d/10-dm.rules
lrwxrwxrwx 6 root root 90 1970-01-01 1970 11-dm-lvm.rules -> /gnu/store/rj2da82v4ii1sy2pzb618x1dyxyz4h33-lvm2-2.02.177/lib/udev/rules.d/11-dm-lvm.rules
# ...
lrwxrwxrwx 44 root root 99 1970-01-01 1970 90-alsa-restore.rules -> /gnu/store/w004ykh4r8cqdpxb8jp59h8h40ly32g6-alsa-utils-1.1.5/lib/udev/rules.d/90-alsa-restore.rules
lrwxrwxrwx 2 root root 98 1970-01-01 1970 90-automount.rules -> /gnu/store/aw9vk500s6zycpr2rb8aih5cjgc8rmw9-90-automount.rules/lib/udev/rules.d/90-automount.rules
lrwxrwxrwx 5 root root 98 1970-01-01 1970 90-backlight.rules -> /gnu/store/j5gdha1vkk5qy94404i2r7p8ky9hq3fw-90-backlight.rules/lib/udev/rules.d/90-backlight.rules
lrwxrwxrwx 6 root root 86 1970-01-01 1970 90-kvm.rules -> /gnu/store/3c6bg9cj88gvg034mkj2iyh9i77fscdm-90-kvm.rules/lib/udev/rules.d/90-kvm.rules
lrwxrwxrwx 4 root root 93 1970-01-01 1970 95-cd-devices.rules -> /gnu/store/hbmdjn7v0hqypp3f2j49fd3kknxqxyj2-colord-1.1.8/lib/udev/rules.d/95-cd-devices.rules
lrwxrwxrwx 6 root root 93 1970-01-01 1970 95-dm-notify.rules -> /gnu/store/rj2da82v4ii1sy2pzb618x1dyxyz4h33-lvm2-2.02.177/lib/udev/rules.d/95-dm-notify.rules
lrwxrwxrwx 10 root root 94 1970-01-01 1970 95-upower-csr.rules -> /gnu/store/fpcs8hafs1ph6s3m8jf9r42y6h1nsgx4-upower-0.99.4/lib/udev/rules.d/95-upower-csr.rules
lrwxrwxrwx 10 root root 94 1970-01-01 1970 95-upower-hid.rules -> /gnu/store/fpcs8hafs1ph6s3m8jf9r42y6h1nsgx4-upower-0.99.4/lib/udev/rules.d/95-upower-hid.rules
lrwxrwxrwx 10 root root 94 1970-01-01 1970 95-upower-wup.rules -> /gnu/store/fpcs8hafs1ph6s3m8jf9r42y6h1nsgx4-upower-0.99.4/lib/udev/rules.d/95-upower-wup.rules
lrwxrwxrwx 6 root root 85 1970-01-01 1970 99-fuse.rules -> /gnu/store/w2cb3077743ahzhba7x2qi9b2bm4i3q1-fuse-2.9.7/lib/udev/rules.d/99-fuse.rules
--
Pierre Neidhardt
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2018-04-01 8:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-29 9:02 Package requests: Udisks helpers (udiskie, udevil) Pierre Neidhardt
2018-03-29 10:17 ` Ricardo Wurmus
2018-03-29 10:22 ` Pierre Neidhardt
2018-03-30 4:40 ` Chris Marusich
2018-03-30 4:45 ` Pierre Neidhardt
2018-03-30 9:49 ` Ricardo Wurmus
2018-03-31 17:13 ` Ludovic Courtès
2018-04-01 7:01 ` Pierre Neidhardt
2018-04-01 8:12 ` Pierre Neidhardt
2018-04-01 19:42 ` Chris Marusich
2018-04-01 7:13 ` Pierre Neidhardt
2018-04-01 8:01 ` Pierre Neidhardt [this message]
2018-04-01 19:45 ` Chris Marusich
2018-04-02 4:10 ` Pierre Neidhardt
2018-04-02 4:17 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87370f5p9i.fsf@gmail.com \
--to=ambrevar@gmail.com \
--cc=cmmarusich@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).