mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-04 13:42:24 +00:00
base-files: fix nand sysupgrade comments
Erroneous comments possibly applied to an earlier code revision. Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
This commit is contained in:
parent
e3238a486f
commit
1e191adb20
@ -182,7 +182,7 @@ nand_upgrade_prepare_ubi() {
|
|||||||
[ "$root_ubivol" ] && ubirmvol /dev/$ubidev -N $CI_ROOTPART || :
|
[ "$root_ubivol" ] && ubirmvol /dev/$ubidev -N $CI_ROOTPART || :
|
||||||
[ "$data_ubivol" ] && ubirmvol /dev/$ubidev -N rootfs_data || :
|
[ "$data_ubivol" ] && ubirmvol /dev/$ubidev -N rootfs_data || :
|
||||||
|
|
||||||
# update kernel
|
# create kernel vol
|
||||||
if [ -n "$kernel_length" ]; then
|
if [ -n "$kernel_length" ]; then
|
||||||
if ! ubimkvol /dev/$ubidev -N $CI_KERNPART -s $kernel_length; then
|
if ! ubimkvol /dev/$ubidev -N $CI_KERNPART -s $kernel_length; then
|
||||||
echo "cannot create kernel volume"
|
echo "cannot create kernel volume"
|
||||||
@ -190,7 +190,7 @@ nand_upgrade_prepare_ubi() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# update rootfs
|
# create rootfs vol
|
||||||
if [ -n "$rootfs_length" ]; then
|
if [ -n "$rootfs_length" ]; then
|
||||||
local rootfs_size_param
|
local rootfs_size_param
|
||||||
if [ "$rootfs_type" = "ubifs" ]; then
|
if [ "$rootfs_type" = "ubifs" ]; then
|
||||||
@ -204,7 +204,7 @@ nand_upgrade_prepare_ubi() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create rootfs_data for non-ubifs rootfs
|
# create rootfs_data vol for non-ubifs rootfs
|
||||||
if [ "$rootfs_type" != "ubifs" ]; then
|
if [ "$rootfs_type" != "ubifs" ]; then
|
||||||
local rootfs_data_size_param="-m"
|
local rootfs_data_size_param="-m"
|
||||||
if [ -n "$rootfs_data_max" ]; then
|
if [ -n "$rootfs_data_max" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user