mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-15 11:22:43 +03:00
13 lines
326 B
Bash
13 lines
326 B
Bash
# AWS mdev Hotplug Modules
|
|
# vim:set filetype=sh:
|
|
# shellcheck shell=sh
|
|
|
|
# makes symlinks for NVMe devices that correlate to AWS EBS sd/xvd devices
|
|
mod__nvme_ebs_links() {
|
|
# nvme-cli not installed?
|
|
[ -x /usr/sbin/nvme ] || return 1
|
|
|
|
install_before '^nvme\.\*' \
|
|
'nvme[0-9]+n.* root:disk 0660 */lib/mdev/nvme-ebs-links'
|
|
}
|