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

Bug#357332: marked as done (initramfs-tools: Doesn't boot from /dev/hdb1 (minor >= 0x10) (patch))



Your message dated Sun, 19 Mar 2006 06:47:14 -0800
with message-id <E1FKzBa-0007SL-PI@spohr.debian.org>
and subject line Bug#357332: fixed in initramfs-tools 0.56
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: initramfs-tools
Version: 0.55b
Severity: important
Tags: patch

Symptoms:
---------
- System doesn't boot, complaining 
    Target filesystem doesn't have /sbin/init
  (or wherever you init is supposed to be)
- / (the root-fs) is on e.g. /dev/hdb1
  or any other partition where the minor is >= 0x10


Reason:
-------
Bug in parse_numeric() in
    /usr/share/initramfs-tools/scripts/functions
when matching the last option, "*)".

The code in question is:
    minor=$((0x${1#??}))
    major=$((0x${1%??}))
If given 301 (/dev/hda1), the bug doen't manifest, but on 341
(/dev/hdb1) $minor will mistakenly return 1 instead of 65 ---
there's just one '?' too many there.


Probable patch:
---------------

diff -Nur initramfs-tools-0.55b.old/scripts/functions initramfs-tools-0.55b/scripts/functions
--- initramfs-tools-0.55b/scripts/functions	2006-02-20 23:40:01.000000000 +0100
+++ initramfs-tools-0.55b/scripts/functions	2006-03-16 20:00:16.000000000 +0100
@@ -202,7 +202,7 @@
 		major=${1%:*}
 		;;
 	*)
-		minor=$((0x${1#??}))
+		minor=$((0x${1#?}))
 		major=$((0x${1%??}))
 		;;
 	esac




-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (101, 'testing'), (99, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.28-lvm
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.01-4   Tiny utilities for small and embed
ii  cpio                          2.6-11     GNU cpio -- a program to manage ar
ii  klibc-utils                   1.2.4-1    small statically-linked utilities 
ii  udev                          0.087-2    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.56

We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:

initramfs-tools_0.56.dsc
  to pool/main/i/initramfs-tools/initramfs-tools_0.56.dsc
initramfs-tools_0.56.tar.gz
  to pool/main/i/initramfs-tools/initramfs-tools_0.56.tar.gz
initramfs-tools_0.56_all.deb
  to pool/main/i/initramfs-tools/initramfs-tools_0.56_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 357332@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
maximilian attems <maks@sternwelten.at> (supplier of updated initramfs-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 17 Mar 2006 19:09:11 +0100
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.56
Distribution: unstable
Urgency: low
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@sternwelten.at>
Description: 
 initramfs-tools - tools for generating an initramfs
Closes: 354458 357282 357332
Changes: 
 initramfs-tools (0.56) unstable; urgency=low
 .
   * hooks/md: Add linear module - thanks to Moshe Yudkowsky <moshe@pobox.com>.
 .
   * scripts/functions: Fix numerical minor parsing - thanks for the patch to
     Wolfgang Weisselberg. (closes: #357332)
 .
   * mkinitramfs.8: Correct wrong referenced filename.
 .
   * update-initramfs.8: Define the argument 'version' - thanks to "Susan G.
     Kleinmann" <sgk@debian.org>. (closes: #357282)
 .
   * scripts/init-premount/udev_helper: Source the relevant definition to get
     it really run. Thanks to Maurice Massar <massar@unix-ag.uni-kl.de>.
     (closes: #354458)
Files: 
 d2eed6da88aca2c35028b146533e1134 629 utils optional initramfs-tools_0.56.dsc
 31a6e513a3598aca46df0f190eb03514 37078 utils optional initramfs-tools_0.56.tar.gz
 3c6fc41341ae354ef726859b0c1396e0 42394 utils optional initramfs-tools_0.56_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEHWyD6n7So0GVSSARAuOyAKCZ+/xLPz3RLHj1HXS8MP4ndSol0QCeMS1k
3Qzb8n/ow06LfKgFfLlf0bA=
=f+Ym
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: