1
0
Fork 0
nvme-cli/nvmf-autoconnect/systemd/nvmf-autoconnect.service

14 lines
310 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Connect NVMe-oF subsystems automatically during boot
ConditionPathExists=/etc/nvme/discovery.conf
After=network-online.target
Before=remote-fs-pre.target
[Service]
Type=oneshot
ExecStartPre=/sbin/modprobe nvme-fabrics
ExecStart=/usr/sbin/nvme connect-all
[Install]
WantedBy=default.target