Bug#315715: initrd-tools: Arguments to find given in deprecated order, causing warning
Package: initrd-tools
Version: 0.1.81.1
Severity: minor
There seems to be a change in the newest find-utils (my version is
4.2.22-1) which issues a warning when option arguments are given after
non-option arguments to find. This causes these four warnings from
mkinitrd:
kokosbolle ~ # mkinitrd -o foo
find: warning: you have specified the -mindepth option after a
non-option argument -type, but options are not positional (-mindepth
affects tests specified before it as well as those specified after
it). Please specify options before other arguments.
[ Three similar warnings omitted ]
The following patch seems to remove all four warnings:
--- /usr/sbin/mkinitrd 2005-05-27 23:38:42.000000000 +0200
+++ /tmp/mkinitrd 2005-06-25 10:08:04.000000000 +0200
@@ -598,7 +598,7 @@
sym53c8xx="sym53c8xx"
fi
- find /proc/scsi -type d -mindepth 1 -maxdepth 1 \
+ find /proc/scsi -mindepth 1 -maxdepth 1 -type d \
-printf "%f\n" | sed '
/^ide-scsi$/d
/^usb-storage-/d
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.9
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages initrd-tools depends on:
ii coreutils [fileutil 5.2.1-2 The GNU core utilities
ii cpio 2.5-1.2 GNU cpio -- a program to manage ar
ii cramfsprogs 1.1-6 Tools for CramFs (Compressed ROM F
ii dash 0.5.2-5 The Debian Almquist Shell
ii util-linux 2.12p-4.0.0.1.pure64 Miscellaneous system utilities
initrd-tools recommends no packages.
-- no debconf information
Reply to: