s-macke / jor1k

Online OR1K Emulator running Linux
http://jor1k.com
BSD 2-Clause "Simplified" License
1.73k stars 193 forks source link

Hostname file #161

Closed 7exe closed 3 years ago

7exe commented 3 years ago

Hello, I've been trying to set the hostname to a custom string on boot for a while now, but it has come to my attention that there is no /etc/hostname file, So I tried to add one, which did not change it. so I checked /proc/sys/kernel/hostname, and there it was, but from where did it set it? Because I could not find any files that could've set it to "openrisc".

This is more of a question than a bug, any help would be appreciated, thanks.

benjamincburns commented 3 years ago

This likely has the details that you're looking for: https://kerneltalks.com/linux/all-you-need-to-know-about-hostname-in-linux/