[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#611046: misleading message in verbose mode (gzip not found, using gzip)



Package: initramfs-tools
Version: 0.98.7
Severity: normal

due to a script assignment misplacement mkinitramfs displays a misleading message:

No gzip in /usr/bin:/sbin:/bin, using gzip

instead of

No lzma in /usr/bin:/sbin:/bin, using gzip

this makes difficult to known that it needs lzma executable in the path
(I tought xz instead)

the attached patch fixes the problem

Regards


-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  cpio                          2.11-6     GNU cpio -- a program to manage ar
ii  findutils                     4.4.2-1+b1 utilities for finding files--find,
pn  klibc-utils                   <none>     (no description available)
ii  module-init-tools             3.12-1     tools for managing Linux kernel mo
pn  udev                          <none>     (no description available)

Versions of packages initramfs-tools recommends:
pn  busybox | busybox-initramfs   <none>     (no description available)

Versions of packages initramfs-tools suggests:
pn  bash-completion               <none>     (no description available)
--- /usr/sbin/mkinitramfs.orig  2011-01-25 03:18:04.183906059 +0100
+++ /usr/sbin/mkinitramfs       2011-01-25 03:16:12.529490992 +0100
@@ -136,9 +136,9 @@

 if ! command -v "${compress}" >/dev/null 2>&1; then
        compress=gzip
-       COMPRESS=gzip
        [ "${verbose}" = y ] && \
                echo "No ${COMPRESS} in ${PATH}, using gzip"
+       COMPRESS=gzip
 fi

 if ! `grep -q -i ^config_rd_${COMPRESS%p} /boot/config-${version}` ; then

Reply to: