[systemd-devel] systemd-nspawn --template: should it delete /etc/hostname?

Kai Krakow hurikhan77 at gmail.com
Fri May 1 10:38:00 PDT 2015


Hello!

If I create a new machine by cloning using systemd-nspawn --template, should 
it remove etc/hostname? It already creates a new machine-id etc, and the 
hostname should probably not be set for a new container in this case, 
regardless of whether the template is a real template or a cloned machine.

Thoughts?

I suppose something similar should be possible for statically configured IP 
addresses as an option, tho I wouldn't know how to implement that because 
systemd-networkd doesn't expect that information at well defined location.

-- 
Replies to list only preferred.



More information about the systemd-devel mailing list