Instead of manually invoking systemctl here which seems like an
abstraction violation to me, I would suggest that open-iscsi.service
should issue an iscsiadm command that talks to the socket and triggers
the daemon to be started.

In effect, '/sbin/iscsiadm -m node --loginall=automatic' already does
this but only for the case that /etc/iscsi/nodes is non-empty.

I would suggest 'iscsiadm -m session -s'.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1802354

Title:
  iscsid does not run if there are only initramfs initiated targets

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1802354/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to