[Pkg-systemd-maintainers] Bug#745876: Please create /etc/machine-id if it does not exist

Michael Stapelberg stapelberg at debian.org
Sat Apr 26 10:27:03 BST 2014


Package: base-files
Version: 7.2
Severity: normal
Tags: patch

D-Bus, systemd and other programs use /etc/machine-id. Given that this
file is per-machine and very central, it should live in base-files.

The attached patch creates the file unless it already exists. The patch
works on Linux and should work (untested) on kFreeBSD (since linprocfs
emulates the uuid file). The uuid file should be present in all Linux
kernels since it lives in the same source code file that provides
/dev/{u,}random :). On platforms where the uuid file does not exist we
just do nothing for now.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: armel
i386

Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages base-files depends on:
ii  gawk [awk]  1:4.0.1+dfsg-2.1
ii  mawk [awk]  1.3.3-17

base-files recommends no packages.

base-files suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Generate-etc-machine-id-if-it-does-not-yet-exist.patch
Type: text/x-diff
Size: 898 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140426/c4290850/attachment-0002.patch>


More information about the Pkg-systemd-maintainers mailing list