]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(nvmf): support /etc/nvme/config.json
authorMartin Wilck <mwilck@suse.com>
Thu, 9 Mar 2023 15:55:36 +0000 (16:55 +0100)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 26 Jun 2023 07:45:42 +0000 (09:45 +0200)
commitf07117d68d07d52aa4ce8b4b2549a0cb716b7f4b
tree118c42ac783cce8341c3312b0c77b9c12207bb87
parent902f3a8f84643e4249b9bbb2e81d1b13eaf35364
fix(nvmf): support /etc/nvme/config.json

Since nvme-cli 2.0, configuration of subsystems to connect to is
stored under `/etc/nvme` in either `discovery.conf` or `config.json`.
Attempt discovery also if the latter exists, but not the former.
Also, install "config.json" if it's present on the root FS.

As before, "rd.nvmf.discover=fc,auto" will force either file to be ignored,
and NBFT-defined targets take precedence if found.
modules.d/95nvmf/module-setup.sh
modules.d/95nvmf/parse-nvmf-boot-connections.sh