#23134: x86_64 platform_export_partdevice() not returning proper
device/partition
----------------------+------------------------
Reporter: alex@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: |
----------------------+------------------------
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.
--
Ticket URL: <https://dev.openwrt.org/ticket/23134>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets