base-files: fix nand sysupgrade comments
authorRodrigo Balerdi <lanchon@gmail.com>
Fri, 15 Apr 2022 03:53:27 +0000 (00:53 -0300)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 19 Apr 2022 15:28:25 +0000 (16:28 +0100)
Erroneous comments possibly applied to an earlier code revision.

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
package/base-files/files/lib/upgrade/nand.sh

index ec1335cb2c94859d1444b0c6fa50dbff2efc2c2a..b5c982b27227fcec709048c4b0155364d71f2f30 100644 (file)
@@ -182,7 +182,7 @@ nand_upgrade_prepare_ubi() {
        [ "$root_ubivol" ] && ubirmvol /dev/$ubidev -N $CI_ROOTPART || :
        [ "$data_ubivol" ] && ubirmvol /dev/$ubidev -N rootfs_data || :
 
-       # update kernel
+       # create kernel vol
        if [ -n "$kernel_length" ]; then
                if ! ubimkvol /dev/$ubidev -N $CI_KERNPART -s $kernel_length; then
                        echo "cannot create kernel volume"
@@ -190,7 +190,7 @@ nand_upgrade_prepare_ubi() {
                fi
        fi
 
-       # update rootfs
+       # create rootfs vol
        if [ -n "$rootfs_length" ]; then
                local rootfs_size_param
                if [ "$rootfs_type" = "ubifs" ]; then
@@ -204,7 +204,7 @@ nand_upgrade_prepare_ubi() {
                fi
        fi
 
-       # create rootfs_data for non-ubifs rootfs
+       # create rootfs_data vol for non-ubifs rootfs
        if [ "$rootfs_type" != "ubifs" ]; then
                local rootfs_data_size_param="-m"
                if [ -n "$rootfs_data_max" ]; then