summaryrefslogtreecommitdiff
path: root/rules/60-persistent-storage.rules
Commit message (Collapse)AuthorAgeFilesLines
* rules: ubi mtd - add link to named partitions (#6750)Michael Grzeschik2017-09-141-0/+3
| | | | | | [zjs: - rebase onto recent master - drop signed-off-by]
* rules: Handle MMC boot partitions by-path correctly (#6026)George McCollister2017-05-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | Many eMMC devices have separate boot partitions that aren't part of the normal partition table that show up as /dev/mmcblk[0-9]boot[0-9]. These partitions are generally small (128KB to 16MB) and typically hold a boot loader, boot loader data or a recovery image. Match these and create -boot%n by-path symlinks. Prior to this change by-path symlinks for the main device would be incorrectly linked to one of the boot partitions. For instance before: /dev/disk/by-path/platform-219c000.usdhc linked to /dev/mmcblk1boot1 Now: /dev/disk/by-path/platform-219c000.usdhc links to /dev/mmcblk1 /dev/disk/by-path/platform-219c000.usdhc-boot0 links to /dev/mmcblk1boot0 /dev/disk/by-path/platform-219c000.usdhc-boot1 links to /dev/mmcblk1boot1 On systems that support multiple SD/MMC devices it can be essential to have by-path links to these devices since device names vary depending on which other devices are connected.
* udev: Use parent bus id for virtio disk builtin path-id (#5500)Viktor Mihajlovski2017-03-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | The builtin path id for virtio block devices has been changed to use the bus id without a prefix "virtio-pci" to be compatible with all virtio transport types. In order to not break existing setups, the by-path symlinks for virtio block devices on the PCI bus are reintroduced by udev rules. The virtio-pci symlinks are considered to be deprecated and should be replaced by the native PCI symlinks. Example output for a virtio disk in PCI slot 7: $ ls /dev/disk/by-path pci-0000:00:07.0 pci-0000:00:07.0-part1 virtio-pci-0000:00:07.0 virtio-pci-0000:00:07.0-part1 See also [1] https://lists.freedesktop.org/archives/systemd-devel/2017-February/038326.html [2] https://lists.freedesktop.org/archives/systemd-devel/2017-March/038397.html This reverts f073b1b but keeps the same symlinks for compatibility.
* Export NVMe WWID udev attribute (#5348)Keith Busch2017-02-171-0/+1
| | | | | | We need this for multipath support without relying on NVMe to SCSI translations. Signed-off-by: Keith Busch <keith.busch@intel.com>
* gpt-auto-generator: support LUKS encrypted root partitionsLennart Poettering2016-12-211-3/+0
| | | | | | | Previously, we supported GPT auto-discovery for /home and /srv, but not for the root partition. Add that, too. Fixes: #859
* rules: consider MMC device partitions with partition number > 9 (#4831)Kieran Colford2016-12-061-1/+1
| | | Add entries for extra partitions found on MMC devices (common in Chromebooks).
* rules: add persistent links for nbd devices (#4785)Martin Pitt2016-12-011-1/+1
| | | https://bugs.debian.org/837999
* rules: introduce disk/by-id (model_serial) symlinks for NVMe drives (#3974)Michal Sekletar2016-08-171-0/+6
| | | | | | | | $ ls -l /dev/disk/by-id/nvme* lrwxrwxrwx. 1 root root 13 Aug 17 04:25 /dev/disk/by-id/nvme-HUSPR3216AHP301_STM0001B6780 -> ../../nvme0n1 lrwxrwxrwx. 1 root root 15 Aug 17 04:25 /dev/disk/by-id/nvme-HUSPR3216AHP301_STM0001B6780-part1 -> ../../nvme0n1p1 https://github.com/systemd/systemd/issues/1453 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=779ff75617099f4defe14e20443b95019a4c5ae8
* rules: UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG property (#3714)Rusty Bird2016-07-151-0/+1
| | | | | | | | | | | | Sometimes, the persistent storage rules should be skipped for a subset of devices. For example, the Qubes operating system prevents dom0 from parsing untrusted block device content (such as filesystem metadata) by shipping a custom 60-persistent-storage.rules, patched to bail out early if the device name matches a hardcoded pattern. As a less brittle and more flexible alternative, this commit adds a line to the two relevant .rules files which makes them test the value of the UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG device property, modeled after the various DM_UDEV_DISABLE_*_RULES_FLAG properties.
* rules: block: add support for pmem devices (#3683)bgbhpe2016-07-081-1/+1
| | | | | | | | | | | | | | Persistent memory devices can be exposed as block devices as /dev/pmemN and /dev/pmemNs. pmemN is the raw device and is byte-addressable from within the kernel and when mmapped by applications from a DAX-mounted file system. pmemNs has the block translation table (BTT) layered on top, offering atomic sector/block access. Both pmemN and pmemNs are expected to contain file systems. blkid(8) and lsblk(8) seem to correctly report on pmemN and pmemNs. systemd v219 will populate /dev/disk/by-uuid/ when, for example, mkfs is used on pmem, but systemd v228 does not. Add pmem to the whitelist.
* rules: block - add scm block devices to whitelist (#3494)Lennart Poettering2016-06-101-1/+1
| | | | | | | | Since the introduction of the whitelist in 60-persistent-storage.rules block device symlinks are no longer created for scm block devices. Add scm to the whitelist. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
* rules: add /dev/disk/by-partuuid symlinks also for dos partition tablesUwe Kleine-König2016-05-191-1/+1
| | | | | | | blkid reports PARTUUID values also for partitions that are defined by a dos partitioning scheme. Instead of limiting the partitioning scheme to "gpt or dos" just drop the test for the partitioning scheme and trust blkid to do the right thing.
* rules: add NVMe rules (#3136)Ming Lin2016-04-291-0/+4
| | | | | | | | | | | Add NVMe rules using the "wwid" attribute. root@target:~# cat /sys/block/nvme0n1/wwid eui.3825004235000591 root@target:~# ls /dev/disk/by-id/ -l |grep nvme lrwxrwxrwx 1 root root 13 Apr 27 16:08 nvme-eui.3825004235000591 -> ../../nvme0n1 lrwxrwxrwx 1 root root 15 Apr 27 16:08 nvme-eui.3825004235000591-part1 -> ../../nvme0n1p1 lrwxrwxrwx 1 root root 15 Apr 27 16:08 nvme-eui.3825004235000591-part2 -> ../../nvme0n1p2
* UML: Fix block device setupThomas Meyer2015-08-091-1/+1
| | | User mode linux block devices start with ubd, e.g. ubda, ubdb, etc..
* rules: block - add dasd to whitelistKay Sievers2015-07-051-1/+1
|
* Process cciss devicesCédric Delmas2015-06-291-1/+1
| | | Do not skip the persistent storage rules for cciss devices
* rules: re-add cciss rulesAlex Crawford2015-06-101-2/+3
| | | | | The original commit (1aff206) doesn't explain why these were removed. This adds them back since they are in fact needed.
* rules: whitelist xvd* devicesAlex Crawford2015-06-081-1/+1
| | | | Xen disks need to be whitelisted as well.
* Add /dev/xvd* to 60-persistent-storage whitelistEd Swierk2015-06-031-1/+1
| | | | | Without this, systemd-udevd does not create persistent storage symlinks for xen block devices.
* udev: Bring back persistant storage symlinks for bcacheDavid Mohr2015-06-011-1/+1
| | | | https://bugs.debian.org/787367
* rules: storage - support MemoryStick (non-Pro) cardsMantas Mikulėnas2015-03-241-3/+3
| | | | These are handled by a different driver than MemoryStick Pro.
* rules: storage - whitelist partitioned MS & MMC devicesKay Sievers2015-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | On Mon, Mar 23, 2015 at 8:55 AM, Mantas Mikulėnas <grawity@gmail.com> wrote: > On Tue, Mar 17, 2015 at 11:50 PM, Kay Sievers <kay@vrfy.org> wrote: >> On Tue, Mar 17, 2015 at 5:00 PM, Mantas Mikulėnas <grawity@gmail.com> >> wrote: >> > Accidentally dropped in 1aff20687f4868575. >> > --- >> > rules/60-persistent-storage.rules | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> >> > +KERNEL!="loop*|mmcblk[0-9]*|mspblk[0-9]*|nvme*|sd*|sr*|vd*", >> > GOTO="persistent_storage_end" >> >> We can't do that, we need to ignore the mmc*rpmb devices: >> >> http://cgit.freedesktop.org/systemd/systemd/commit/?id=b87b01cf83947f467f3c46d9831cd67955fc46b9 >> >> Maybe "mmcblk*[0-9]" will work? > > Yeah, that would probably work (the names are like mmcblk0p1 etc.)
* rules: storage - don't apply rules to remove eventsTom Gundersen2015-03-241-0/+2
| | | | This line was accidentally lost in 52346b5f5424.
* rules: move block device rules to its own rules fileKay Sievers2015-03-121-13/+2
|
* rules: storage - relace blacklist with explicit whitelistKay Sievers2015-03-121-15/+16
| | | | | | | | | | | | | | Newly added kernel drivers repeatedly pass our blacklist and cause trouble for the devices, because they do not expect to be examined by udev's default rules which include blkid. This turns the blacklist into a whitelist. Device type which need support for additional symlinks need to be added to the whitelist now. Note, that the by-id, by-path symlinks are only intended for hotpluggable devices. There is no reason for exotic, or for statically configured devices to provide them.
* rules: simplify mmc RPMB handlingMartin Pitt2015-02-131-6/+2
| | | | | | We don't actually want a by-path/ symlink for MMC RPMB devices, so just add them to the blacklist. This will prevent creating wrong by-path links and blkid'ing those.
* rules: Fix by-path of mmc RPMB partitions and don't blkid themMartin Pitt2015-02-131-1/+5
| | | | | | | | | | | | | | Linux 3.10+ exposes RPMB (Replay Protected Memory Block) partitions of MMC devices [1] ; trying to read them with blkid or other unspecific means will cause kernel buffer I/O errors and timeouts. So don't run blkid on these. Also ensure that /dev/disk/by-path creates proper symlinks and exposes the -rpmb partition separately, instead of letting the "normal" partition symlink point to the rpbm device (this is a race condition). [1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=090d25fe224c0 https://launchpad.net/bugs/1333140
* gpt-auto-generator: rename root device node symlink to /dev/gpt-auto-rootLennart Poettering2014-03-111-1/+1
| | | | | | Before it was placed in /dev/disk/by-id, which makes it a bit too much API. However, it's mostly an implementation detail for now, hence move it out of the stable block device dir.
* udev: automatically create a symlink /dev/disk/by-id/gpt-auto-root if ↵Lennart Poettering2014-03-071-0/+3
| | | | there's a suitable root partition
* doc: update punctuationJan Engelhardt2014-02-171-1/+1
| | | | Resolve spotted issues related to missing or extraneous commas, dashes.
* udev: add zram to the list of devices inappropriate for symlinksJóhann B. Guðmundsson2014-02-051-1/+1
| | | | | | udev seems to have a race condition with swapon to see which can open /dev/zram0 first, causing swapon to fail. Seems to be most noticeable on arm devices one out of every 7 times or something.
* rules: there is no "ata" subsystem for ATA deviceKay Sievers2013-01-281-2/+0
|
* move imported udev into placeKay Sievers2012-04-041-0/+89