Re:Writing my own init with Go
by mmarx on Tuesday February 09, 2016 @05:20PM
(#11069280)
The kernel already supports acquiring a DHCP lease via the “ip=dhcp” boot option. Why does this need to be a feature of init?
[ Parent
| on HN ]
I did not know we could have ip=dhcp option, but I will need to create a network manager now or later, but for trying out some stuff, I can use that flag. Also, I will not bundle services to init, it will be just forking, signaling and waiting. All the other utitilies will be small independent code exercises for me.
Because init is common to several UNIXes and ip=dhcp is a Linux specific feature?
> Because init is common to several UNIXes and ip=dhcp is a Linux specific feature?
And yet the author seems to be comfortable using those linux-specific features:
“Also, the kernel paremeters must have the rw flag or you have to remount the /dev/sda1 as rw, but changing kernel parameters are much more easier.” (from the follow-up post).