Build minimal L4T version from within docker

Hello,

I have a short question regarding creating a minimal L4T image from within docker (Option: Minimal L4T - Guide to Minimizing Jetson Disk Usage).

I’m running Ubuntu 24.04 on my host and I’m building a custom image with a custom rootfs for L4T 35.4.1. For this I’m using an Ubuntu:20.04 container which handles this. I encountered an issue when running nv_build_samplefs.sh as it tries to mount /sys and thats not possible if the container does not run with privileged rights.

Is this or will this be a problem when flashing the new image on a device? Or phrased in other terms - does the real host has to be Ubuntu 20.04 ?

BR and thanks