# Recommended approach for udev support after balenalib deprecation?

**URL:** <https://forums.balena.io/t/recommended-approach-for-udev-support-after-balenalib-deprecation/374581>\
**Category:** balenalib base images migration\
**Created:** [July 22, 2025, 2:31pm UTC](https://forums.balena.io/t/recommended-approach-for-udev-support-after-balenalib-deprecation/374581 "2025-07-22T14:31:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patree](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@patree](https://forums.balena.io/u/patree)\
**Post date:** [July 22, 2025, 2:31pm UTC](https://forums.balena.io/t/recommended-approach-for-udev-support-after-balenalib-deprecation/374581/1 "2025-07-22T14:31:05Z")

</div>

Now that balenalib base images have been deprecated (as of 2025), I’m looking for guidance on the best current approach for handling udev functionality in balena applications.

Previously, I was using balenalib images with `ENV UDEV=1` to automatically handle dynamically plugged USB/serial devices. Now I’m migrating to standard `ubuntu:22.04` base images.

1. What’s the current recommended way to set up udev in standard base images for balena deployments?
2. Do I need to manually install udev, create entry scripts, and handle the privileged container setup myself, or is there a balena-specific recommended pattern?
3. Are there any balena-specific considerations or gotchas when setting up udev manually that I should be aware of?
4. Has balena published any migration guides or best practices for this transition from balenalib to standard base images?

For context, I need to detect and interact with USB devices that are plugged in at runtime, similar to what `UDEV=1` provided in balenalib images.

Any guidance or examples would be greatly appreciated!

Thanks

---

<div class="post-metadata">

**Author:** ![ledanois](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ledanois/32/9811_2.png) [@ledanois](https://forums.balena.io/u/ledanois)\
**Post date:** [July 23, 2025, 8:37am UTC](https://forums.balena.io/t/recommended-approach-for-udev-support-after-balenalib-deprecation/374581/2 "2025-07-23T08:37:21Z")

</div>

@patree here’s [a link](https://forums.balena.io/t/about-the-balenalib-base-images-migration-category/374222/3) that might help
