[OpenWrt-Devel] [PATCH 1/2] base-files: improve lib/upgrade/common.sh

Tomasz Maciej Nowak tomek_n at o2.pl
Wed Apr 24 11:29:43 EDT 2019


Hi Klaus.

W dniu 23.04.2019 o 21:59, Klaus Kudielka pisze:
> Recently, upgrade device autodetection has been added to the mvebu target.
> This exposes some shortcomings of the generic export_bootdevice function,
> e.g. on the Turris Omnia: export_bootdevice silently reports the root
> partition to be the boot device. This makes the sysupgrade process
> fail at several places.
> 
> Fix this by clearly distinguishing between /proc/cmdline arguments which
> specify the boot disk, and those which specify the root partition. Only
> in the latter case, strip off the partition. Include /dev/mmcblk* and
> /dev/sd* as potential arguments to "root=".

When we discussed this change I forgot to mention that this would break sysupgrade
on several targets:
apm821xx,
brcm2708,
omap,
sunxi,
because their upgrade/platform.sh would assume old behavior. So this patch would
need additional changes in platform.sh for those targets. They should be
straightforward, as example You can compare sunxi to tegra on what differs.

> 
> Fixes 4e8345ff68 ("mvebu: base-files: autodetect upgrade device")

Add colon after Fixes, that way patchwork will pick it up.

Regards

-- 
TMN

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list