Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #80855

Bug#1055694: initramfs-tools: After updating coreutils cp: not replacing in console when running update-initramfs

Path csiph.com!news.mixmin.net!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From Sven Joachim <svenjoac@gmx.de>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1055694: initramfs-tools: After updating coreutils cp: not replacing in console when running update-initramfs
Date Fri, 10 Nov 2023 16:50:01 +0100
Message-ID <HyBVD-4tNe-5@gated-at.bofh.it> (permalink)
References <Hyv3P-4pBp-3@gated-at.bofh.it> <Hyv3P-4pBp-3@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Fri Nov 10 15:45:21 2023
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -0.913
Reply-To Sven Joachim <svenjoac@gmx.de>, 1055694@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 1055694
X-Debian-Pr-Package initramfs-tools
X-Debian-Pr-Source initramfs-tools
X-Ui-Sender-Class 724b4f7f-cbec-4199-ad4e-598c01a50d3a
User-Agent Gnus/5.13 (Gnus v5.13)
MIME-Version 1.0
Content-Type text/plain
X-Provags-ID V03:K1:BuuCr+g3lYLK9g3eKw++kwfAZPgtCFa4CDF8lgSk127FcU/cbXY /qHQt8yV66kzm35qzgtnb8S3Yu0yJDp5EbrVjEU0SGbBH8U1GA1UQmgWNF2DsZ9MrrF/Owf OUePdFS7Yqbu2Xvm/+45D0x0bJsKgBViorfgsXAkwLDXH6gk7Ml8PgIue+rLGYv6g+X33UY LXvZij7JtGHtsnh2bV2bA==
Ui-Outboundreport notjunk:1;M01:P0:NMYFb/xFYwA=;79fAb5ZzWVFj7m8So3Mg7yNMj3D oB1+Z3deBh0EcBaE1/OrOqxmKcLbSGDO+infaos/PGN0izOoSnscCMvl/1Z7zM1kJoxaxBBP0 0RlGKLkC1CgAVawOlIGQoSxmoKhPFxwAO2X+qb8fBeJBmIgKGltALSeT/l98Z5noX7oJ6Jfw7 LuiheXuNAkQ7N/3Pn5ra5viZeQtujPAS7ToDdH7F1OZvxo1Zu4cHJcOYXwiPoit+4N++EQQAX j5W+gTFR5vETJH9KtUEDbiWeJ78984Ndg+SlGj6WlyChPhE5N+SnZudj2TF4KYmCrXod0786d iI3cRalugv5bvixKFChWz3KEqHGIOiDqiT0ZPd8f1GCqt0vTvruZ82lJplO1iaMa0FmeO+ra8 bZmMMTQqnBNCySZ00af3ypMPASlp5FtzYQlq1lL7YxRuQLFRF6dWkhpWlZohkX7F1og/BCYXA 4B/vjXq72K0vQyH8S2jUh4b01emWZlwiWsJFYeOzXyaFm331pDuxpNWBauMCE1G2xI7tWageB ROWNZ/Kkp+qqBOVysdYNogFnLK9/yH9UWZ1AlPUveB6STgeiKZWNE76W8VRe81nDV5naYJnpa Ff22WgY9Zucl1Y52mEbqs6UtRrmxBBrzpQSQd0phFZCC8OmPQX/2UeE8xHvslA2bA6u7BaXsx VeO3LTJ6MTA3sBMWGrv1uBB1eKblLulVrPs8SOm434kG8DmGoXBry5+kpNLtnOljlSB4Nhr7k eNHtfmiorJI4wL/m6GNQZ6vfpyfSS+JKQnb+9p0oqjAncpFAy3g7NCS+M1CkHzyftg+zc7j09 2umW8yrL4nlO22iLmdd0sngS8xMFX4mA/bVyqPTMHvcihVlcoKcJWLUYFjyygFiIqULhALxI/ uybABRVJqZGYvUy3vNyyUyXB07yotHOF0hxWq0TZHzQEktJU9vGTfikKa/qUC27rouUcjtfIR 2UZSQSHX6C7qG1/aBWDDiqNt1go=
Content-Transfer-Encoding quoted-printable
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1805504
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 73
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 10 Nov 2023 16:43:04 +0100
X-Original-Message-ID <871qcxwr5j.fsf@turtle.gmx.de>
X-Original-References <169960426580.404585.5303281001158135655.reportbug@madoka> <169960426580.404585.5303281001158135655.reportbug@madoka>
Xref csiph.com linux.debian.bugs.dist:1174509 linux.debian.kernel:80855

Cross-posted to 2 groups.

Show key headers only | View raw


Control: reassign -1 klibc-utils
Control: affects -1 initramfs-tools

On 2023-11-10 19:17 +1100, Konomi wrote:

> Package: initramfs-tools
> Version: 0.142
> Severity: normal
> X-Debbugs-Cc: konomikitten@gmail.com
>
> Dear Maintainer,
>
> After updating coreutils from 9.1-1 to 9.4-1+b1 the following lines appear when
> running update-initramfs -u:
>
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/cat'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/cpio'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/dd'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/dmesg'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/false'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/gunzip'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/kill'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/ln'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/ls'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/mkdir'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/mkfifo'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/mknod'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/mount'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/mv'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/nuke'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/readlink'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/resume'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/sh'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/sleep'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/sync'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/true'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/umount'
> cp: not replacing '/var/tmp/mkinitramfs_vZS3YW/bin/uname'

FWIW, this has been triggered by the following changes in coreutils:

,----
| * Noteworthy changes in release 9.3 (2023-04-18) [stable]
|
| ** Changes in behavior
|
|   'cp -n' and 'mv -n' now issue an error diagnostic if skipping a file,
|   to correspond with -n inducing a nonzero exit status as of coreutils 9.2.
|
| * Noteworthy changes in release 9.2 (2023-03-20) [stable]
|
| ** Changes in behavior
|
|   'cp -n' and 'mv -n' now exit with nonzero status if they skip their
|   action because the destination exists, and likewise for 'cp -i',
|   'ln -i', and 'mv -i' when the user declines.  (POSIX specifies this
|   for 'cp -i' and 'mv -i'.)
`----

I looked for 'cp -n' in the initramfs-tools source and could not find
it.  It turns out that the actual culprit is the file
/usr/share/initramfs-tools/hooks/klibc-utils which uses the -n option,
apparently with good reason, namely not to overwrite files from busybox.

> The lines seem to be a cosmetic issue only, but I cannot be entirely sure.

There do not seem to be any ill effects beside the warnings.

Cheers,
       Sven

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1055694: initramfs-tools: After updating coreutils cp: not replacing in console when running update-initramfs Konomi <konomikitten@gmail.com> - 2023-11-10 09:30 +0100
  Processed: Re: Bug#1055694: initramfs-tools: After updating  coreutils cp: not replacing in console when running update-initramfs "Debian Bug Tracking System" <owner@bugs.debian.org> - 2023-11-10 16:50 +0100
  Bug#1055694: initramfs-tools: After updating coreutils cp: not replacing in console when running update-initramfs Sven Joachim <svenjoac@gmx.de> - 2023-11-10 16:50 +0100
    Bug#1055694: initramfs-tools: After updating coreutils cp: not replacing in console when running update-initramfs Thorsten Glaser <tg@evolvis.org> - 2023-11-11 01:50 +0100
      Bug#1055694: initramfs-tools: After updating coreutils cp: not replacing in console when running update-initramfs Sven Joachim <svenjoac@gmx.de> - 2023-11-11 08:40 +0100
      Bug#1055694: initramfs-tools: After updating coreutils cp: not replacing in console when running update-initramfs Michael Stone <mstone@debian.org> - 2024-01-03 23:10 +0100
        Bug#1055694: initramfs-tools: After updating coreutils cp: not replacing in console when running update-initramfs Chris Hofstaedtler <zeha@debian.org> - 2024-01-04 01:10 +0100
  Bug#1055694: klibc-utils: Patch to fix cp warning "Mario Izquierdo (mariodebian)" <mariodebian@gmail.com> - 2023-12-07 10:50 +0100
    Bug#1055694: klibc-utils: Patch to fix cp warning Vincent Lefevre <vincent@vinc17.net> - 2023-12-07 11:40 +0100
      Bug#1055694: klibc-utils: Patch to fix cp warning Florent 'Skia' Jacquet <florent.jacquet@canonical.com> - 2023-12-13 11:00 +0100
  Bug#1055694: marked as done (/usr/share/initramfs-tools/hooks/klibc-utils:  cp: warning: behavior of -n is non-portable and may change in future; use  --update=none instead) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-02-21 15:40 +0100

csiph-web