Add machine-id script

This commit is contained in:
Mikhail Gordeev 2022-02-06 23:13:34 +03:00
parent 2e6572a15f
commit 3dc3377c71
4 changed files with 56 additions and 2 deletions

View File

@ -22,6 +22,7 @@ images:
- method: lxd - method: lxd
scripts: scripts:
- securetty - securetty
- machine_id
packages: packages:
- apt-scripts - apt-scripts
- systemd-settings-disable-kill-user-processes - systemd-settings-disable-kill-user-processes
@ -33,6 +34,7 @@ images:
- method: lxd - method: lxd
scripts: scripts:
- securetty - securetty
- machine_id
rootfs-sysvinit: rootfs-sysvinit:
target: ve/sysvinit-etcnet target: ve/sysvinit-etcnet
kinds: kinds:
@ -45,7 +47,8 @@ images:
target: vm/cloud-systemd target: vm/cloud-systemd
kinds: kinds:
- qcow2c - qcow2c
# scripts: scripts:
- machine_id
packages: packages:
- update-kernel - update-kernel
- apt-scripts - apt-scripts
@ -69,6 +72,17 @@ branches:
branding: alt-starterkit branding: alt-starterkit
scripts: scripts:
machine_id:
contents: |
#!/bin/sh -exu
etc_machine_id=/etc/machine-id
dbus_machine_id=/var/lib/dbus/machine-id
rm -f "$etc_machine_id" "$dbus_machine_id"
touch "$etc_machine_id"
global: no
number: 90
securetty: securetty:
contents: | contents: |
#!/bin/sh #!/bin/sh

View File

@ -22,6 +22,7 @@ images:
- method: lxd - method: lxd
scripts: scripts:
- securetty - securetty
- machine_id
packages: packages:
- apt-scripts - apt-scripts
- systemd-settings-disable-kill-user-processes - systemd-settings-disable-kill-user-processes
@ -33,6 +34,7 @@ images:
- method: lxd - method: lxd
scripts: scripts:
- securetty - securetty
- machine_id
rootfs-sysvinit: rootfs-sysvinit:
target: ve/sysvinit-etcnet target: ve/sysvinit-etcnet
kinds: kinds:
@ -61,6 +63,17 @@ branches:
branding: alt-starterkit branding: alt-starterkit
scripts: scripts:
machine_id:
contents: |
#!/bin/sh -exu
etc_machine_id=/etc/machine-id
dbus_machine_id=/var/lib/dbus/machine-id
rm -f "$etc_machine_id" "$dbus_machine_id"
touch "$etc_machine_id"
global: no
number: 90
securetty: securetty:
contents: | contents: |
#!/bin/sh #!/bin/sh

View File

@ -22,6 +22,7 @@ images:
- method: lxd - method: lxd
scripts: scripts:
- securetty - securetty
- machine_id
packages: packages:
- apt-scripts - apt-scripts
- systemd-settings-disable-kill-user-processes - systemd-settings-disable-kill-user-processes
@ -33,6 +34,7 @@ images:
- method: lxd - method: lxd
scripts: scripts:
- securetty - securetty
- machine_id
rootfs-sysvinit: rootfs-sysvinit:
target: ve/sysvinit-etcnet target: ve/sysvinit-etcnet
kinds: kinds:
@ -61,6 +63,17 @@ branches:
branding: alt-starterkit branding: alt-starterkit
scripts: scripts:
machine_id:
contents: |
#!/bin/sh -exu
etc_machine_id=/etc/machine-id
dbus_machine_id=/var/lib/dbus/machine-id
rm -f "$etc_machine_id" "$dbus_machine_id"
touch "$etc_machine_id"
global: no
number: 90
securetty: securetty:
contents: | contents: |
#!/bin/sh #!/bin/sh

View File

@ -18,6 +18,8 @@ images:
- ppc64le - ppc64le
exclude_branches: exclude_branches:
- c8 - c8
scripts:
- machine_id
rename: rename:
regex: '(.*)\.qcow2c$' regex: '(.*)\.qcow2c$'
to: '\1.qcow2' to: '\1.qcow2'
@ -32,7 +34,8 @@ images:
exclude_branches: exclude_branches:
- p8 - p8
- c8 - c8
# scripts: scripts:
- machine_id
packages: packages:
- update-kernel - update-kernel
- apt-scripts - apt-scripts
@ -69,6 +72,17 @@ branches:
branding: alt-starterkit branding: alt-starterkit
scripts: scripts:
machine_id:
contents: |
#!/bin/sh -exu
etc_machine_id=/etc/machine-id
dbus_machine_id=/var/lib/dbus/machine-id
rm -f "$etc_machine_id" "$dbus_machine_id"
touch "$etc_machine_id"
global: no
number: 90
securetty: securetty:
contents: | contents: |
#!/bin/sh #!/bin/sh