Sudo does not work when enable full disk encryption

Hi ALL,
after I enabled the full disk encryption, my sudo does not work anymore.
below is running in encrypted rootfs.
is that initrd jump to encrypted rootfs does not set permission correctly?
it is TX2/NX and rootfs runs in external NVME device.

jetson@jetson ~ $ sudo
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

any thoughts?
thanks a lot

hello jiangpen,

we cannot reproduce this with ROOTFS_ENC device.

it might be an issue with your rootfs package.
please try tar the release and rootfs packages again with below steps, and re-flash your device for confirmation.
for example,
$ tar xf ${L4T_RELEASE_PACKAGE}
$ sudo tar xpf ${SAMPLE_FS_PACKAGE} -C Linux_for_Tegra/rootfs/
$ cd Linux_for_Tegra/
$ sudo ./apply_binaries.sh
$ sudo ./tools/l4t_flash_prerequisites.sh

The loss of UID 0 tends to be a host side issue, and is unlikely to be the result of encryption. For example, Linux has an extended and different permission system compared to Windows’ VFAT and NTFS, and if the image is built from a host PC that is running on one of those other filesystem types, then permissions are lost the moment the content to be added is on one of those filesystem types. Is there any chance your host PC is using a non-Linux filesystem type?