Skip to content

Commit

Permalink
fix product_name in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Apr 30, 2019
1 parent 857731b commit e82f63a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions images/base/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e82f63a

Please sign in to comment.