[FS#4037] CONFIG_TARGET_ROOTFS_PARTSIZE is not changed when reflashing the same sdcard

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Mon Sep 13 22:49:38 PDT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - jazzor (jazzrz86) 

Attached to Project - OpenWrt/LEDE Project
Summary - CONFIG_TARGET_ROOTFS_PARTSIZE is not changed when reflashing the same sdcard
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - Building for Nanopi R4s using sdcard flash on squashfs image
1. set the CONFIG_TARGET_ROOTFS_PARTSIZE from the default 104mb to something say 500mb
2. write to sdcard using dd or sysupgrade
3. initially this will work as it will reformat from the default ext4 overlay to f2fs overlay (via libfstools common.c)
4. clean build and change the CONFIG_TARGET_ROOTFS_PARTSIZE to 1024mb and reflash
5. notice that in the flashed system the mount is still 500mb for overlay
6. changing the CONFIG_TARGET_ROOTFS_PARTSIZE to 300mb also does not work and the mount is still 500mb (could this be dangerous?)

workaround:
1. inspect the sdcard and the partition is the correct size so the residual dirty data in the sdcard is causing the mount to think that its still 500mb
2. if you zero the partition using dd and then reflash the sdcard, the system will see the new overlay size

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=4037

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list