Re: dropbear-initramfs possible with open-iscsi during boot, using different NICs?
Hi.
On Mon, Oct 21, 2019 at 09:53:05PM -0400, Christopher David Howie wrote:
> I have a system with dropbear-initramfs to unlock crypto containers during boot. The system has a second NIC that I will be using to attach iSCSI disks to
> the system, some of which / may wind up moving to. (/boot will remain attached locally.)
>
> It seems that there is support for iSCSI during boot, however it's not clear to me how to get the kernel to bring up _both_ NICs so that dropbear and
> open-iscsi can run on different ones. (Based on my research, the ip= kernel parameter can only be specified once.)
>
> Is there a supported way to configure two interfaces in the initrd to accomplish this?
In a way, yes, but the kernel commandline is unsuitable for this.
What you need is a init-premount script (see initramfs-tools(7)) which
configures either second or both NICs with "ip" from busybox or
"udhcpc".
Reco
Reply to: