Merge "Clear /etc/machine-id to avoid duplicate machine-ids"
This commit is contained in:
commit
247c68b5a3
|
@ -1,2 +1,3 @@
|
|||
debian-minimal
|
||||
openssh-server
|
||||
sysprep
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
sysprep
|
||||
zypper-minimal
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
cache-url
|
||||
package-installs
|
||||
sysprep
|
||||
zypper
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
package-installs
|
||||
sysprep
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
sysprep
|
||||
=======
|
||||
|
||||
This element holds configuration and scripts that are common for all
|
||||
distributions.
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
||||
set -x
|
||||
fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
if [ -e /etc/machine-id ]; then
|
||||
> /etc/machine-id
|
||||
fi
|
|
@ -0,0 +1 @@
|
|||
sysprep
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Adds sysprep element included by all systemd distros
|
||||
fixes:
|
||||
- |
|
||||
Adds default sysprep element clearing /etc/machine-id which
|
||||
prevents duplicated /etc/machine-id by forcing systemd to
|
||||
generate a new id for each booted system.
|
Loading…
Reference in New Issue