# Stage the prebuilt static naros-init binary (built by CI from shell/naros-init).
stage() {
  local dest="$1" arch="$2" bin="$OS_DIR/dist/bin/naros-init-$arch"
  if [ ! -x "$bin" ]; then
    echo "prebuilt binary missing: $bin" > "$dest/.skip-reason"
    return 1
  fi
  install -D -m 0755 "$bin" "$dest/usr/sbin/naros-init"
}
