lxc-config/hooks/setup-machine-id

12 lines
174 B
Plaintext
Raw Permalink Normal View History

2014-08-18 08:29:43 +00:00
#!/bin/bash
2015-01-28 21:22:30 +00:00
set -eu
2014-08-18 08:29:43 +00:00
MACHINE_ID="${LXC_ROOTFS_PATH}/etc/machine-id"
if [ -f "$MACHINE_ID" ]; then
rm "$MACHINE_ID"
fi
systemd-machine-id-setup --root="$LXC_ROOTFS_PATH"