source: live-build/trunk/fuentes/debian/patches/remove-etc-machineid @ 900

Last change on this file since 900 was 900, checked in by kbut, 3 years ago

add original source

File size: 765 bytes
Line 
1Description: Truncate /etc/machine-id (in addition to /var/lib/dbus/machine-id)
2 Systemd is using a /etc/machine-id file that needs to be unique to the
3 local system. Just like we remove /var/lib/dbus/machine-id we truncate
4 /etc/machine-id. This will make systemd generate a new one on each boot.
5Author: Michael Vogt <michael.vogt@ubuntu.com>
6
7---
8Origin: vendor
9Forwarded: no
10Last-Update: 2014-10-29
11
12--- live-build-3.0~a57.orig/share/hooks/004-remove-dbus-machine-id.chroot
13+++ live-build-3.0~a57/share/hooks/004-remove-dbus-machine-id.chroot
14@@ -7,3 +7,6 @@ set -e
15 # This removes dbus machine id that cache that makes each system unique.
16 
17 rm -f /var/lib/dbus/machine-id
18+
19+# truncate, do not remove otherwise systemd is unhappy
20+printf "" > /etc/machine-id
Note: See TracBrowser for help on using the repository browser.