summaryrefslogtreecommitdiffstats
path: root/nvmf-autoconnect/systemd/nvmefc-boot-connections.service.in
blob: 7036625c778863488274208dd001aa2ff94d5226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Auto-connect to subsystems on FC-NVME devices found during boot
ConditionPathExists=/sys/class/fc/fc_udev_device/nvme_discovery
DefaultDependencies=no
After=systemd-udevd.service
Before=local-fs-pre.target

[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo add > /sys/class/fc/fc_udev_device/nvme_discovery"

[Install]
WantedBy=default.target