Skip to content

--copy-network should warn if targeting an iSCSI disk #1389

@jlebon

Description

@jlebon

When installing to an iSCSI device, using --copy-network to define networking in the initramfs is explicitly unsupported: https://github.com/coreos/fedora-coreos-config/blob/206cc56fe0f0866f18f4c5c0fbd117dec77944ea/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-ignition/coreos-diskful-generator#L114-L117

As the comment there explains, --copy-network relies on having access to the bootfs during early boot, which is not possible in iSCSI since you need networking in the first place to access the disk.

We should have coreos-installer detect and warn about this case.

It could still be valid though to use --copy-network with that caveat if you don't need it defined in the initramfs, but you still want to use it as a way to propagate to the real root. (Though... hmm, I think we need to adapt the code above so that instead of neutering it entirely, we still run it, but after we have access to the bootfs.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions