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
scripts:
- securetty
- machine_id
packages:
- apt-scripts
- systemd-settings-disable-kill-user-processes
@ -33,6 +34,7 @@ images:
- method: lxd
scripts:
- securetty
- machine_id
rootfs-sysvinit:
target: ve/sysvinit-etcnet
kinds:
@ -45,7 +47,8 @@ images:
target: vm/cloud-systemd
kinds:
- qcow2c
# scripts:
scripts:
- machine_id
packages:
- update-kernel
- apt-scripts
@ -69,6 +72,17 @@ branches:
branding: alt-starterkit
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:
contents: |
#!/bin/sh

View File

@ -22,6 +22,7 @@ images:
- method: lxd
scripts:
- securetty
- machine_id
packages:
- apt-scripts
- systemd-settings-disable-kill-user-processes
@ -33,6 +34,7 @@ images:
- method: lxd
scripts:
- securetty
- machine_id
rootfs-sysvinit:
target: ve/sysvinit-etcnet
kinds:
@ -61,6 +63,17 @@ branches:
branding: alt-starterkit
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:
contents: |
#!/bin/sh

View File

@ -22,6 +22,7 @@ images:
- method: lxd
scripts:
- securetty
- machine_id
packages:
- apt-scripts
- systemd-settings-disable-kill-user-processes
@ -33,6 +34,7 @@ images:
- method: lxd
scripts:
- securetty
- machine_id
rootfs-sysvinit:
target: ve/sysvinit-etcnet
kinds:
@ -61,6 +63,17 @@ branches:
branding: alt-starterkit
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:
contents: |
#!/bin/sh

View File

@ -18,6 +18,8 @@ images:
- ppc64le
exclude_branches:
- c8
scripts:
- machine_id
rename:
regex: '(.*)\.qcow2c$'
to: '\1.qcow2'
@ -32,7 +34,8 @@ images:
exclude_branches:
- p8
- c8
# scripts:
scripts:
- machine_id
packages:
- update-kernel
- apt-scripts
@ -69,6 +72,17 @@ branches:
branding: alt-starterkit
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:
contents: |
#!/bin/sh