# RDK X5: Importing a custom sensor driver with x5-rdk-gen — a solution for packaging images without root privileges

- Source: D-Robotics Developer Community
- Published: 2026-10-13T07:18:36.197Z
- RoboHot: https://robohot.news/en/items/q5xn40r9jvy7oab2k1hsgx747
- Original: https://forum.d-robotics.cc/t/topic/35787

## Summary

A forum reply addressed the problem on RDK X5 where pack_image.sh in x5-rdk-gen requires sudo, while the server only grants ordinary user permissions. The cause is that the script needs loop mounting and chroot to package the rootfs partition, and the official documentation provides no root-free approach.
