New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix no hostname set in Arch Linux #1254 #1286
Conversation
By storing the hostname in /etc/hostname (lowercase) Arch Linux will automatically set the host name in the recovery environment. See issue rear#1254
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean and simple so that
even I can directyl understand
what that code is meant to do ;-)
So clean and simple that I cannot imagine |
After merging issue rear#1286 this enhancement beautifies the recovery environment scripting, to not run unnecessary code for: 1. cases where /etc/HOSTNAME does not exist 2. things that the operating system already has taken care of. Target: Arch Linux Hostname set in /etc/hostname (lowercase) Only that /etc/hostname file present, will already set the hostname in (1) system and (2) shell for Arch Linux, without the need for this script to set any of these 2.
The thing that can go wrong are systems / Linux distributions where |
Perhaps we could have a script that is run |
Another situation where this can go wrong is a non Arch Linux where the user has created both Now Rear will assume Do we need to address such exceptional cases? If the answer is yes, then #1286 (comment) to run some scripting to repair the situation, seems ok. |
Murphy's law: |
By storing the hostname in /etc/hostname (lowercase) Arch Linux will automatically set the host name in the recovery environment. See issue #1254