]> www.infradead.org Git - users/hch/nvmetcli.git/commit
nvmetcli: set up the target only after the network is configured
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 28 Feb 2023 16:36:15 +0000 (17:36 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 15 Mar 2023 13:42:30 +0000 (14:42 +0100)
commit0855bcec9a5a9ceba586a5a1e1a8742b85424870
treeaaeff4552746acb05a54ff16e3d5b030fdcbb377
parent51bb51573ad36c5ab2655c6e31106a79eb0f800d
nvmetcli: set up the target only after the network is configured

network.target only indicates that the network stack is up, but it
doesn't mean that the network devices have been configured.

Replace it with network-online.target, this fixes the following
error when systemd restores the target configuration during boot:

[   19.613251] nvmet_tcp: failed to bind port socket -99
[FAILED] Failed to start Restore NVMe kernel target configuration.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
nvmet.service