Am 29.05.2018 um 16:53 schrieb Matthew Richardson:
> Package: systemd
> Version: 238-5
> 
> The postinst for the systemd deb pkg contains the following:
> 
> # Create /etc/machine-id
> systemd-machine-id-setup
> 
> This generates /etc/machine-id as the package is installed.
> 
> However the systemd unit option ConditionFirstBoot uses the presence or
> absence of this file to detect whether or not this is the first boot.
> From 'man systemd.unit'
> 
> "ConditionFirstBoot= takes a boolean argument. This condition may be
> used to conditionalize units on whether the system is booting up with an
> unpopulated /etc directory (specifically: an /etc with no
> /etc/machine-id). This may be used to populate /etc on the first boot
> after factory reset, or when a new system instance boots up for the
> first time."
> 
> Since no unit can start until after systemd is installed, and the
> install always creates this file, this test will always be False which
> renders this option useless.

Well, if you remove /etc/machine-id as part of your debootstrap process,
then /etc/machine-id will not be present during boot.

Or if you use a stateless system, then /etc might be empty as well.

So the Condition still makes sense.

Can you elaborate, what this bug report is supposed to achieve?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to