write 'uninitialized' to /etc/machine-id to support systemd ConditionFirstBoot (closes: #10)

This commit is contained in:
Johannes Schauer Marin Rodrigues 2021-08-18 22:18:40 +02:00
parent 5283d74dfe
commit 3c37d692a0
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -3077,6 +3077,7 @@ sub run_cleanup() {
or error "cannot unlink /etc/machine-id: $!";
open my $fh, '>', "$options->{root}/etc/machine-id"
or error "failed to open(): $!";
print $fh "uninitialized";
close $fh;
}
}