Dapper fails to boot off second disk

Bug #50128 reported by David Edwards
4
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I had SuSE 8.2 on /dev/hda2 on an old machine, and I installed Dapper (initially 6.04) on /dev/hdb2. I used lilo as the boot loader, on /dev/hda.

I attempted to boot into Dapper, and ended up with the Dapper kernel and my old SuSE 8.2!

The problem is on the initrd.img, in file scripts/functions.

The function parse_numeric does not correctly parse the root device number.

The following diffs show a fix that works for me. Sorry but I don't know which package was use to create the initrd.

--- functions_broken 2006-06-17 17:27:04.000000000 +0100
+++ fixed/scripts/functions 2006-06-17 17:27:49.000000000 +0100
@@ -239,10 +239,14 @@
   minor=${1#*:}
   major=${1%:*}
   ;;
- *)
+ ????)
   minor=$((0x${1#??}))
   major=$((0x${1%??}))
   ;;
+ ???)
+ minor=$((0x${1#?}))
+ major=$((0x${1%??}))
+ ;;
  esac

  mknod /dev/root b ${major} ${minor}

Peter Frost (slimeypete)
Changed in initramfs-tools:
status: Unconfirmed → Confirmed
Revision history for this message
Phillip Susi (psusi) wrote :

Dapper reached end of life some time ago, is this still an issue with 12.04+?

Changed in initramfs-tools (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
David Edwards (se014a0001) wrote : Re: [Bug 50128] Re: Dapper fails to boot off second disk

Dear Phillip
_________________________________________________________________________
Phillip Susi wrote:
> Dapper reached end of life some time ago, is this still an issue with
> 12.04+?
>
>
> ** Changed in: initramfs-tools (Ubuntu)
> Status: Confirmed => Incomplete
>
_________________________________________________________________________
I haven't tried to boot Ubuntu off a second disk since my initial
experiments, when I was deciding whether or not to adopt it. However, I
can confirm that changes that have been made in the meantime to the
parse_numeric function in /usr/share/initramfs-tools/scripts/functions
are functionally equivalent to my proposed fix, which did, of course, work.

Best regards

David Edwards
--
*David Edwards* Principal Consultant
Telephone: +44 208 737 8273 Mobile: +44 7798 728 235
e-Mail: <email address hidden> <mailto:<email address hidden>> Website:
E2 Systems Limited <http://www.e2systems.co.uk>

------------------------------------------------------------------------
E2 Systems 20 Years of
Load Testing
World-Wide

Revision history for this message
Phillip Susi (psusi) wrote :

I suspected as much, thanks for confirming.

Changed in initramfs-tools (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.