Hi, On Donnerstag, 29. Mai 2014, Julian Andres Klode wrote: > systemd creates this file by running systemd-machine-id-setup in its > postinst. The thing is: Some people might not want systemd, should I force > them to install it? > > Three options: > (a) Pre-Depend on systemd > (b) Depend on systemd and run systemd-machine-id-setup in our postinst as > well => kind of pointless, as systemd's postinst does it as well > (c) Use debconf to warn users if machine-id is not present > => works with systems that do not have systemd installed.
d.) (there is no other way to) deal with the absence gracefully?
> (a) is the easiest option for me, (b) might be easier for a package manager
> to handle, and (c) is just annoying, especially if systemd is installed
> during the same apt run. So, if there are no other options, I'd go and
> pre-depend on systemd.
:-/
Your postinst could also copy /var/lib/dbus/machine-id to /etc but I'm not
sure that would be right/appropriate.
cheers,
Holger
signature.asc
Description: This is a digitally signed message part.

