The setup for this is a bit complex, so it really ends up testing things twice. (cherry picked from commit fb4e6f2588)
fb4e6f2588
Some of these can only run as root on a real system with access to loop devices. They are skipped when running in a container. (cherry picked from commit 063a1770e1)
063a1770e1