base-files: flush kernel memory cache during sysupgrade
authorHannu Nyman <hannu.nyman@iki.fi>
Tue, 24 Nov 2020 06:39:48 +0000 (08:39 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 22 Dec 2020 17:59:10 +0000 (18:59 +0100)
commit3d12b47985fc1983849925d2dc23430f55210c80
tree9b2e833445b3e6470a2e151c5402fb45b33d4c3a
parent3064651bf75d3ca08cbfff916a14e8b3c4c246fb
base-files: flush kernel memory cache during sysupgrade

Flush kernel memory caches during sysupgrade in order
to mitigate the impact from memory consumption spikes
in low-RAM devices.

This may help to prevent sysupgrade causing a reboot
before the actual flashing starts.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/stage2