[pve-devel] [PATCH container] fix #3443: setup: clear /etc/machine-id in post-create hook

Oguz Bektas o.bektas at proxmox.com
Wed May 26 11:46:11 CEST 2021


On Wed, May 26, 2021 at 11:40:23AM +0200, Oguz Bektas wrote:
> hi,
> 
> thanks for checking
> 
> On Tue, May 25, 2021 at 03:45:53PM +0200, Thomas Lamprecht wrote:
> > On 25.05.21 15:17, Oguz Bektas wrote:
> > > this way when new containers are created the will have a unique
> > > /etc/machine-id
> > > 
> > 
> > why the dbus then? systemd talks explicitly only about /etc/machine-id
> > in the docs and also in their CT interface [0], the thematic is only touched
> > there though.
> > 
> > The dbus one is most often a symlink to /etc/machine-id, removing that can
> > break things...
> 
> 
> in our ubuntu templates it exists as a regular file (not symlinked).
> 
> so if that's not removed before first boot, it's copied to /etc/machine-id
> from there when the container boots.
> 
 

 also in the debian buster template. but not in the archlinux (there
 it's symlinked)





More information about the pve-devel mailing list