From e82f63a55fde03cb00177403d122d9ddca499282 Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Tue, 30 Apr 2019 14:00:31 -0700 Subject: [PATCH] fix product_name in entrypoint --- images/base/entrypoint | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/images/base/entrypoint b/images/base/entrypoint index 72007e89b1..512c1b45c2 100755 --- a/images/base/entrypoint +++ b/images/base/entrypoint @@ -49,9 +49,17 @@ fix_machine_id() { systemd-machine-id-setup } +fix_product_name() { + # this is a small fix to hide the underlying hardware and fix issue #426 + # https://github.com/kubernetes-sigs/kind/issues/426 + echo "kind" > /kind/product_name + mount -o ro,bind /kind/product_name /sys/class/dmi/id/product_name +} + # run pre-init fixups fix_mount fix_machine_id +fix_product_name configure_proxy # we want the command (expected to be systemd) to be PID1, so exec to it