Skip to main content
Topic: hostname resetting to "artixlinux" (Read 416 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

hostname resetting to "artixlinux"

Hi there!

Fresh install, and my hostname keeps resetting to 'artixlinux' every time I log in, pretty weird.

/etc/hosts:
Code: [Select]
127.0.0.1	localhost
::1 localhost
127.0.1.1 air

/etc/hostname:
Code: [Select]
air

hostname output:
Code: [Select]
artixlinux

(Using OpenRC)

Re: hostname resetting to "artixlinux"

Reply #1
Try to do the following: delete the /etc/hostname file and create the /etc/conf.d/hostname one with the following content:
Code: (/etc/conf.d/hostname) [Select]
hostname=air
(this is an OpenRC-specific feature)