From 375a632d83192f0fcd0a8c7a8b9b9ddc44b0a15e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 1 Sep 2014 17:17:33 +0200 Subject: set /etc/machine-id --- hook/hostname | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hook') diff --git a/hook/hostname b/hook/hostname index a612fef..07c8be6 100644 --- a/hook/hostname +++ b/hook/hostname @@ -2,6 +2,9 @@ run_latehook() { local newroot="/new_root/" + + /usr/bin/systemd-machine-id-setup --root="${newroot}" + if [[ -n "${hostname}" ]]; then msg ":: Setting hostname for main system to '${hostname}'..." elif [[ -e /sys/class/dmi/id/product_uuid ]]; then -- cgit v1.2.3-70-g09d2