mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 14:43:51 +00:00
image-builder: create /etc/machine-id
systemd complains if `/etc/machine-id` does not exist. Create the `machine-id` file to make systemd happy, it'll bind-mount that file to write the machine id. fixes #296 fixes github.com/kata-containers/runtime#1537 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
67b66c4d95
commit
a438d086b2
@ -382,6 +382,9 @@ create_rootfs_image() {
|
||||
find "${mount_dir}" -type f -name "${u}" -exec rm -f {} \;
|
||||
done
|
||||
|
||||
info "Creating empty machine-id to allow systemd to bind-mount it"
|
||||
touch "${mount_dir}/etc/machine-id"
|
||||
|
||||
info "Unmounting root partition"
|
||||
umount "${mount_dir}"
|
||||
OK "Root partition unmounted"
|
||||
|
Loading…
Reference in New Issue
Block a user