#!/bin/sh
# openSUSE keeps /usr/sbin off the regular user PATH, but the sbx daemon
# inherits the user's PATH and needs mkfs.ext4 (/usr/sbin) to enable its
# "block" volume driver. exec (not symlink) so the real binary still
# resolves ../libexec inside /usr/lib/docker-sbx.
case ":${PATH}:" in
  *:/usr/sbin:*) ;;
  *) PATH="${PATH:+${PATH}:}/usr/sbin" ;;
esac
export PATH
exec /usr/lib/docker-sbx/bin/sbx "$@"
