diff options
-rw-r--r-- | hook/hostname | 3 | ||||
-rw-r--r-- | install/hostname | 1 |
2 files changed, 4 insertions, 0 deletions
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 diff --git a/install/hostname b/install/hostname index 7f41a4d..58ad350 100644 --- a/install/hostname +++ b/install/hostname @@ -2,6 +2,7 @@ build() { add_runscript + add_binary /usr/bin/systemd-machine-id-setup } help() { |