Author: blogic
Date: 2014-12-05 09:58:18 +0100 (Fri, 05 Dec 2014)
New Revision: 43523

Modified:
   trunk/target/linux/octeon/base-files/lib/upgrade/platform.sh
Log:
octeon: sysupgrade: rename old kernel after mounting /boot

Signed-off-by: Stijn Tintel <[email protected]>

Modified: trunk/target/linux/octeon/base-files/lib/upgrade/platform.sh
===================================================================
--- trunk/target/linux/octeon/base-files/lib/upgrade/platform.sh        
2014-12-05 08:58:06 UTC (rev 43522)
+++ trunk/target/linux/octeon/base-files/lib/upgrade/platform.sh        
2014-12-05 08:58:18 UTC (rev 43523)
@@ -44,18 +44,19 @@
                local kernel_length=`(tar xf $tar_file sysupgrade-erlite/kernel 
-O | wc -c) 2> /dev/null`
                local rootfs_length=`(tar xf $tar_file sysupgrade-erlite/root 
-O | wc -c) 2> /dev/null`
 
+               mkdir -p /boot
+               mount -t vfat /dev/sda1 /boot
+
                [ -f /boot/vmlinux.64 -a ! -L /boot/vmlinux.64 ] && {
                        mv /boot/vmlinux.64 /boot/vmlinux.64.previous
                        mv /boot/vmlinux.64.md5 /boot/vmlinux.64.md5.previous
                }
 
-               mkdir -p /boot
-               mount -t vfat /dev/sda1 /boot
                tar xf $tar_file sysupgrade-erlite/kernel -O > /boot/vmlinux.64
                md5sum /boot/vmlinux.64 | cut -f1 -d " " > /boot/vmlinux.64.md5
                tar xf $tar_file sysupgrade-erlite/root -O | dd of="${rootfs}" 
bs=4096
                sync
-               umount /mnt
+               umount /boot
                return 0
                ;;
        esac
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to