1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00
systemd-stable/rules
Franck Bui ebc8968bc0 core: make mount units from /proc/self/mountinfo possibly bind to a device (#4515)
Since commit 9d06297, mount units from mountinfo are not bound to their devices
anymore (they use the "Requires" dependency instead).

This has the following drawback: if a media is mounted and the eject button is
pressed then the media is unconditionally ejected leaving some inconsistent
states.

Since udev is the component that is reacting (no matter if the device is used
or not) to the eject button, users expect that udev at least try to unmount the
media properly.

This patch introduces a new property "SYSTEMD_MOUNT_DEVICE_BOUND". When set on
a block device, all units that requires this device will see their "Requires"
dependency upgraded to a "BindTo" one. This is currently only used by cdrom
devices.

This patch also gives the possibility to the user to restore the previous
behavior that is bind a mount unit to a device. This is achieved by passing the
"x-systemd.device-bound" option to mount(8). Please note that currently this is
not working because libmount treats the x-* options has comments therefore
they're not available in utab for later application retrievals.
2016-12-16 17:13:58 +01:00
..
.gitignore move imported udev into place 2012-04-04 05:05:07 +02:00
50-udev-default.rules 50-udev-default.rules: don't run anything but REMOVE_CMD on remove 2015-03-27 15:42:04 +01:00
60-block.rules rules: block: add support for pmem devices (#3683) 2016-07-08 17:43:56 +02:00
60-cdrom_id.rules core: make mount units from /proc/self/mountinfo possibly bind to a device (#4515) 2016-12-16 17:13:58 +01:00
60-drm.rules rules: simply 60-drm.rules 2013-11-03 16:17:14 +01:00
60-evdev.rules rules: finish incomplete rename 2015-04-12 10:20:24 -04:00
60-persistent-alsa.rules move imported udev into place 2012-04-04 05:05:07 +02:00
60-persistent-input.rules rules: set ID_BUS for bluetooth, rmi and i8042 2016-07-01 15:19:46 +10:00
60-persistent-storage-tape.rules rules: UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG property (#3714) 2016-07-15 18:47:42 +02:00
60-persistent-storage.rules rules: consider MMC device partitions with partition number > 9 (#4831) 2016-12-06 10:46:13 +01:00
60-persistent-v4l.rules udev: move all unconditionally installed rules to rules/ 2012-04-14 20:10:03 +02:00
60-sensor.rules udev: Add rules for accelerometer orientation quirks 2016-12-10 02:25:11 -05:00
60-serial.rules rules: merge tty and serial rules file 2015-03-12 17:22:19 +01:00
64-btrfs.rules udev: add btrfs support 2012-09-17 13:54:03 +02:00
70-mouse.rules hwdb: add rule and first entry for PS/2 mice 2014-12-24 08:08:23 +10:00
70-touchpad.rules hwdb: add a 70-touchpad.hwdb to tag internal vs external touchpads 2016-07-01 15:25:34 +10:00
75-net-description.rules rules: net, tty description - ask hwdb explicitly for pci data 2013-07-21 16:33:27 +02:00
75-probe_mtd.rules build-sys: make loadable module support optional 2012-11-20 19:35:27 +01:00
78-sound-card.rules rules: identify internal sound cards on platform bus (#4893) 2016-12-15 23:11:11 +01:00
80-drivers.rules rules: drivers - do not reset RUN list 2014-01-03 01:32:03 +01:00
80-net-setup-link.rules udev: import the full db on MOVE events for devices without dev_t 2014-09-09 15:03:49 +02:00
99-systemd.rules.in rules: make sure always set at least one property on rfkill devices 2016-07-20 09:17:57 +02:00
Makefile backlight: add minimal tool to save/restore screen brightness across reboots 2013-08-14 01:57:02 +02:00