[Bug 2110910] Re: rust-coreutils: missing -Z flags

Marcos Alano 2110910 at bugs.launchpad.net
Fri Jul 4 22:51:25 UTC 2025


I think we need to release a new version of coreutils-from-uutils where cp points back to uutils instead of gnu, so after that the problem should be solved for good.
In the changelog the cp was pointed to gnucp because it was missing -Z flag, so since it's present, we can point back to coreutils.
Here is a test I did about this bug:
ubuntu at ubuntu2510:/usr/bin$ sudo rm cp # Remove the original symbolic link pointed to gnucp binary
ubuntu at ubuntu2510:/usr/bin$ sudo ln -s coreutils cp #  create new symlink
ubuntu at ubuntu2510:/usr/bin$ ll /usr/bin/cp # test it
lrwxrwxrwx 1 root root 9 Jul  4 19:53 /usr/bin/cp@ -> coreutils
ubuntu at ubuntu2510:/usr/bin$ cp --version # test it once more
cp (uutils coreutils) 0.1.0
ubuntu at ubuntu2510:/usr/bin$ sudo update-initramfs -k 6.15.0-3-generic -c # Execute the original command that was failing before
update-initramfs: Generating /boot/initrd.img-6.15.0-3-generic
ubuntu at ubuntu2510:/usr/bin$ # success!!!


What do you think?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2110910

Title:
  rust-coreutils: missing -Z flags

Status in rust-coreutils package in Ubuntu:
  Fix Released

Bug description:
  When using rust-coreutils, `update-initramfs` doesn't work. I get the
  error:

  ubuntu at ubuntu2510:~$ sudo update-initramfs -k 6.14.0-15-generic -c
  update-initramfs: Generating /boot/initrd.img-6.14.0-15-generic
  error: unexpected argument '-Z' found

    tip: to pass '-Z' as a value, use '-- -Z'

  Usage: cp [OPTION]... [-T] SOURCE DEST
         cp [OPTION]... SOURCE... DIRECTORY
         cp [OPTION]... -t DIRECTORY SOURCE...

  For more information, try '--help'.
  E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
  update-initramfs: failed for /boot/initrd.img-6.14.0-15-generic with 1.

  If I change to gnu-coreutils, it works as should.

  ProblemType: Bug
  DistroRelease: Ubuntu 25.10
  Package: rust-coreutils 0.0.30-2
  ProcVersionSignature: User Name 6.14.0-15.15-generic 6.14.0
  Uname: Linux 6.14.0-15-generic x86_64
  ApportVersion: 2.32.0-0ubuntu5
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CloudArchitecture: x86_64
  CloudBuildName: server
  CloudID: multipass
  CloudName: multipass
  CloudPlatform: nocloud
  CloudSerial: 20250505
  CloudSubPlatform: config-disk (/dev/sr0)
  Date: Thu May 15 12:03:07 2025
  ProcEnviron:
   LANG=C.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  RebootRequiredPkgs: Error: path contained symlinks.
  SourcePackage: rust-coreutils
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2110910/+subscriptions




More information about the foundations-bugs mailing list