Modify

Opened 18 months ago

#23134 new defect

x86_64 platform_export_partdevice() not returning proper device/partition

Reported by: alex@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

We had been unable to get platform_export_partdevice() for the longest time to return when it needed to return.
The reason we know it was wrong was because upgrades wouldn't keep config, and upgrades were dd'ing to the wrong /dev
I am attaching the patch, but basically:
old:
if [ $BOOTDEV_MAJOR = $MAJOR -a $(($BOOTDEV_MINOR + $offset)) = $MINOR -a -b "/dev/$DEVNAME" ]; then
new:
if [ $BOOTDEV_MAJOR = $MAJOR -a $offset = $MINOR -a -b "/dev/$DEVNAME" ]; then

Previously no offset returned sda2, our typical boot device....
It should return sda with no offset.

Attachments (1)

00-patch-platform.sh.patch (607 bytes) - added by anonymous 18 months ago.

Download all attachments as: .zip

Change History (1)

Changed 18 months ago by anonymous

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.