Rust Coreutils `cp` Broke Ubuntu Live Image Builds
Patch & Detection Intelligence · 6 sources · Updated 4mo ago · First seen Dec 25, 2025

Ubuntu developers traced live image build failures in Ubuntu 24.04 to a compatibility gap between GNU Coreutils and the Rust implementation of cp used in some build contexts. The issue surfaced in livecd-rootfs workflows that invoked cp with the combined flags -afL, a combination accepted by GNU Coreutils but handled differently by Rust Coreutils.
Under Rust Coreutils, the option interaction caused cp to treat directory copying as non-recursive in some cases and return errors such as omitting directories, breaking image creation. The root cause was a behavioral mismatch in how archive mode -a interacts with -L symlink dereferencing, particularly whether archive semantics preserve links via -d or allow dereferencing to take precedence, exposing a subtle but operationally significant incompatibility in Ubuntu's build toolchain.


