]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(nvmf): don't create did-setup file
authorMartin Wilck <mwilck@suse.com>
Fri, 16 Sep 2022 22:40:49 +0000 (00:40 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 30 Sep 2022 06:02:18 +0000 (06:02 +0000)
did-setup files are meant to indicate that an interface setup
was successful. Don't do it here.

modules.d/95nvmf/parse-nvmf-boot-connections.sh

index cfed5ae567acd9a2d48837f1f7e9eb1850f2c3e6..1cdaba69a3e6b48b0a461936735f14a706e1f194 100755 (executable)
@@ -102,9 +102,6 @@ done
 
 if [ -f "/etc/nvme/discovery.conf" ]; then
     /sbin/initqueue --settled --onetime --unique --name nvme-discover /usr/sbin/nvme connect-all
-    if [ "$trtype" = "tcp" ]; then
-        : > /tmp/net."$ifname".did-setup
-    fi
 else
     # No nvme command line arguments present, try autodiscovery
     if [ "$trtype" = "fc" ]; then