Start with an empty `/etc/machine-id` to disable `ConditionFirstBoot`

The systemd firstboot process does several things, but notably
it runs a preset process.  This means that basically a plain
`RUN systemctl enable foo` won't work unless you *also* write
a preset file for it, and no one will know to do that.
This commit is contained in:
Colin Walters 2024-01-30 13:09:43 -05:00
parent e9090c44a5
commit 256852e764
1 changed files with 2 additions and 3 deletions

View File

@ -2,9 +2,8 @@
# Modern defaults we want # Modern defaults we want
boot-location: modules boot-location: modules
tmp-is-dir: true tmp-is-dir: true
# This one at least historically broke compatibility with Anaconda, but # https://github.com/CentOS/centos-bootc/issues/167
# let's use it by default now. machineid-compat: true
machineid-compat: false
# Be minimal # Be minimal
recommends: false recommends: false