losetup --replace --direct-io=on fails with EINVAL when the target file is on tmpfs (/dev/shm), because tmpfs does not support O_DIRECT. Strip the --direct-io flag from the replace call and downgrade the verification failure to a warning so boot continues. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>