bcm27xx: fix unmounting /boot after sysupgrade
[openwrt/openwrt.git] / target / linux / bcm27xx / base-files / lib / upgrade / platform.sh
index 811355b8f771e0f86c9614b17cda23e6cb7f42a8..a48b7cc08a3ee534615521e61d3da830bbeee390 100644 (file)
@@ -92,8 +92,8 @@ platform_copy_config() {
                mkdir -p /boot
                [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot
                cp -af "$UPGRADE_BACKUP" "/boot/$BACKUP_FILE"
-               tar -C / -zxvf "$UPGRADE_BACKUP" boot/config.txt
+               tar -C / -zxvf "$UPGRADE_BACKUP" boot/cmdline.txt boot/config.txt
                sync
-               unmount /boot
+               umount /boot
        fi
 }