add static uid, but handle squashfs rootfs systems correctly