Package Details: mkinitcpio-hostname 0.2.0-1

Git Clone URL: (read-only, click to copy)
Package Base: mkinitcpio-hostname
Description: Set hostname for main system inside initrd
Upstream URL:
Licenses: GPL
Submitter: eworm
Maintainer: eworm
Last Packager: eworm
Votes: 2
Popularity: 0.000000
First Submitted: 2012-05-30 11:58
Last Updated: 2018-06-06 14:09

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

eworm commented on 2012-06-03 09:56

I use this for my live media generated with archiso. I boot a lot of virtual machines in parallel in a big VMware environment. As I do not like every machine to be named just 'arch' I rename it with this hook.

When writing the hostname to /proc/sys/kernel/hostname it later gets overwritten by initscripts or systemd, no?

falconindy commented on 2012-06-03 00:35

I figured you would just write $hostname to /proc/sys/kernel/hostname. Why the indirection? What's the point of the hook?

eworm commented on 2012-06-02 14:29

The copypaste thing had been fixed locally already... Updated it now.

Setting the hostname works for me. Note that this only writes the hostname to /etc/hostname, you are out of luck with hostname from /etc/rc.conf atm.

falconindy commented on 2012-06-02 02:15

This doesn't actually set the hostname... and you've got some copypasta errors in your install hook.