]> git.proxmox.com Git - pve-container.git/commit
setup: avoid writing truncated machine-id if it didn't exist
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 26 Apr 2023 14:22:35 +0000 (16:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 26 Apr 2023 14:58:10 +0000 (16:58 +0200)
commita72424ba7296d846b8893d3c070138eb280c51cd
tree7ad983c2b9f7a73190f8db9e90a81379cb014243
parenta65984bfd5a5cedc33c3e7d9a09e0e939fe0cbec
setup: avoid writing truncated machine-id if it didn't exist

Allows an admin to prepare a template that will have the first-boot
condition set on first start, as we only want to disable first-boot
condition but (re)generate also a machine-id on clone if the
machine-id already exist and isn't set to "uninitialized".

Link: https://forum.proxmox.com/threads/126291/
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Setup/Base.pm