renew machine-id when cloning machines
This commit is contained in:
parent
3a625e0b31
commit
120e638aca
|
@ -81,6 +81,7 @@ class Machine(object):
|
|||
return True
|
||||
|
||||
def config(self):
|
||||
self.chroot('rm /etc/machine-id /var/lib/dbus/machine-id; dbus-uuidgen --ensure=/etc/machine-id; dbus-uuidgen --ensure')
|
||||
self.configuration.realize()
|
||||
if self.enable:
|
||||
os.system('systemctl enable systemd-nspawn@%s.service' % self.name)
|
||||
|
|
Loading…
Reference in New Issue