Skip to content
Snippets Groups Projects
Commit 1c2fab9e authored by Emanuele Aina's avatar Emanuele Aina
Browse files

ospack: Empty machine-id so it's made unique on first boot


The apertis-customization package used to ship in tmpfiles.d/apertis.conf a
link from /etc/machine-id to /var/lib/dbus/machine-id to ensure that the
machine-id is unique.

This is now done automatically provided that /etc/machine-id is a empty file.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent d7083f31
No related branches found
No related tags found
1 merge request!93Subsume the useful bits of the apertis-customizazions package in the recipes
...@@ -472,6 +472,11 @@ actions: ...@@ -472,6 +472,11 @@ actions:
- yelp - yelp
- yelp-tools - yelp-tools
- action: run
chroot: true
description: "Empty /etc/machine-id so it's regenerated on first boot with an unique value"
command: echo > /etc/machine-id
- action: overlay - action: overlay
source: overlays/hostname source: overlays/hostname
......
...@@ -373,6 +373,11 @@ actions: ...@@ -373,6 +373,11 @@ actions:
- tinwell-dev - tinwell-dev
{{ end }} {{ end }}
- action: run
chroot: true
description: "Empty /etc/machine-id so it's regenerated on first boot with an unique value"
command: echo > /etc/machine-id
- action: overlay - action: overlay
source: overlays/hostname source: overlays/hostname
......
...@@ -82,6 +82,11 @@ actions: ...@@ -82,6 +82,11 @@ actions:
- openssh-server - openssh-server
- vim.tiny - vim.tiny
- action: run
chroot: true
description: "Empty /etc/machine-id so it's regenerated on first boot with an unique value"
command: echo > /etc/machine-id
- action: overlay - action: overlay
source: overlays/hostname source: overlays/hostname
......
...@@ -666,6 +666,11 @@ actions: ...@@ -666,6 +666,11 @@ actions:
- tinwell-doc - tinwell-doc
- traprain-mock-service - traprain-mock-service
- action: run
chroot: true
description: "Empty /etc/machine-id so it's regenerated on first boot with an unique value"
command: echo > /etc/machine-id
- action: overlay - action: overlay
source: overlays/hostname source: overlays/hostname
......
...@@ -195,6 +195,11 @@ actions: ...@@ -195,6 +195,11 @@ actions:
- tinwell - tinwell
{{ end }} {{ end }}
- action: run
chroot: true
description: "Empty /etc/machine-id so it's regenerated on first boot with an unique value"
command: echo > /etc/machine-id
- action: overlay - action: overlay
source: overlays/hostname source: overlays/hostname
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment