sysupgrade: unmount filesystems before reboot
authorMathias Kresin <dev@kresin.me>
Tue, 2 Aug 2016 20:29:31 +0000 (22:29 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 4 Aug 2016 16:19:46 +0000 (18:19 +0200)
commit3004298e625c47537877bfd1e95806fad7c39f27
treea496f5d431902c98f1151258b0aab229dfb5a953
parent188517144e779086355d2ac287944e23af54d024
sysupgrade: unmount filesystems before reboot

sysupgrade immediately reboots after flashing an image and doesn't
allow to unmount filesystems. At least in case the image used for
sysupgrade is stored on a FAT formatted usb flash drive, the following
warning is printed during the next mount of the flash drive:

FAT-fs (sda1): Volume was not properly unmounted. Some data may be
corrupt. Please run fsck.

Although a data corruption during read operations is unlikely, there is
no need to scare the users.

Signed-off-by: Mathias Kresin <dev@kresin.me>
package/base-files/files/lib/upgrade/common.sh
package/system/procd/files/nand.sh