threefoldtech / zos

Autonomous operating system
https://threefold.io/host/
Apache License 2.0
85 stars 14 forks source link

feature: bootstrap daemon to boot a fresh node #215

Closed muhamadazmy closed 5 years ago

muhamadazmy commented 5 years ago

The bootstrap daemon requirements:

muhamadazmy commented 5 years ago

The first issue we need to discuss is networking. 0-initramfs used to have a simple unit file that boots dhcpcd on the available network card(s). But it was removed in fever of networkd.

I think we can bring this back (with some improvements) and we make it responsibility of networkd to stop this service before taking over the machine networking stack.

Later on, bootstrap can only then depend on this internet service, and we grantee a smooth boot and running of the service

zaibon commented 5 years ago

I think we can bring this back (with some improvements) and we make it responsibility of networkd to stop this service before taking over the machine networking stack.

I don't have a problem with this. Seems logical enough. @delandtj ?

delandtj commented 5 years ago

for networking https://github.com/threefoldtech/zosv2/pull/236 addresses the bootstrap part of the network, as I think some simple dhcp runs on interfaces will not cope with some more complex setups. It will never be as simple, and now in bootstrap we can set a krnl cmdline to include or exclude interfaces, as that will come up in the future. also commented in the meeting notes 20190909