dracut icon indicating copy to clipboard operation
dracut copied to clipboard

iSCSI module-setup: should not package all files in /etc/iscsi/ to initrd

Open wenchao-hao opened this issue 2 years ago • 1 comments

iSCSI module-setup: should not package all files in /etc/iscsi/ to initrd iscsiadm -m discovery -t st -p xxx would use userdefined iface to perform discovery if any userdefined iface exists. While if we added these userdefined iface in initrd, while this iface is not accessible to IP specified in netroot, it results in discovery failed. We might want using default iface of iSCSI to perform discovery.

Distribution used Fedora35

Dracut version dracut-055

Init system systemd

To Reproduce

  1. specify an iSCSI iface which bound to a specify netif, this netif can not connect to remote iSCSI IP during inited
  2. specify netroot of iSCSI devices
  3. failed to login iSCSI devices during initrd

Expected behavior Do not include userdefined ifaces in initrd

Additional context Add any other context you like about the problem here.

wenchao-hao avatar Apr 28 '22 03:04 wenchao-hao

For example: in which initrd a userdefined iSCSI iface is defined and bound to enp0s5 which does not exist during boot in initrd. iscsiadm command would report following error:

image

wenchao-hao avatar Apr 28 '22 06:04 wenchao-hao