[systemd-devel] systemd-udevd seems to kill mount.ntfs started in rules scripts?

Barry Scott barry.scott at onelan.co.uk
Thu Apr 3 08:13:35 PDT 2014


More of my porting from F16 to F20.

I have the following in /etc/udev/rules.d

ACTION=="add", SUBSYSTEM=="block", SUBSYSTEMS=="usb", 
RUN+="/usr/local/onelan/ntb/bin/ntb_mount_usb"
ACTION=="remove", SUBSYSTEM=="block", SUBSYSTEMS=="usb", 
RUN+="/usr/local/onelan/ntb/bin/ntb_mount_usb"

This run the ntb_mount_usb script as expected.

The script on the ADD action ends up doing:

mount -t ntfs -o uid=onelan,gid=onelan,noatime,noexec ${DEVNAME} /my-mount-
point

I have had the script do ps afx and systemd-cgls and see the
mount.ntfs process is running.

  ├─systemd-udevd.service
  │ ├─  409 /usr/lib/systemd/systemd-udevd
  │ ├─14863 /usr/lib/systemd/systemd-udevd
  │ ├─14867 /usr/lib/systemd/systemd-udevd
  │ ├─14868 /usr/lib/systemd/systemd-udevd
  │ ├─14869 /usr/lib/systemd/systemd-udevd
  │ ├─14876 /bin/bash /usr/local/onelan/ntb/bin/ntb_mount_usb
  │ ├─14886 /sbin/mount.ntfs /dev/sdb1 /data/data/external/USB_Memory_Stick -...
  │ └─14890 systemd-cgls

But as soon as the script exits the mount.ntfs process is killed off by something? 
systemd-udevd maybe?

How should I be doing this?

Barry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140403/3589c320/attachment.html>


More information about the systemd-devel mailing list