[source] config: ext4: increase x86 rootfs size to 2GB to support online resize2fs

LEDE Commits lede-commits at lists.infradead.org
Thu Oct 27 10:24:44 PDT 2016


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/dc6cc040169a3f29d0126c24d65d5e7b6c479ab8

commit dc6cc040169a3f29d0126c24d65d5e7b6c479ab8
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Sun Oct 16 01:59:44 2016 +0200

    config: ext4: increase x86 rootfs size to 2GB to support online resize2fs
    
    The current default rootfs size of 256MB in conjunction with 4K blocks
    produces an ext4 filesystem which lacks the appropriate amount of backup GDT
    entries to support online-resizing.
    
    For x86 targets, increase the default rootfs size to 2048MB which allows
    online resizing the filesystem to up to 2TB which is the current theoretical
    maximum for LEDE, due to missing GPT support on the root block device.
    
    Note that the filesystem artefact will not occupy 2GB on the build system as
    the make_ext4fs utility uses sparse files to generate the filesystem images,
    so the actual disk usage is much lower. Furthermore the filesystem images
    are gzip compressed, shrinking them to only a few megabytes on the download
    server.
    
    Signed-off-by: Jo-Philipp Wich <jo at mein.io>
    Acked-by: Michael Heimpold <mhei at heimpold.de>
---
 config/Config-images.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config/Config-images.in b/config/Config-images.in
index 1a6951d..1866bb1 100644
--- a/config/Config-images.in
+++ b/config/Config-images.in
@@ -253,7 +253,8 @@ menu "Target Images"
 	config TARGET_ROOTFS_PARTSIZE
 		int "Root filesystem partition size (in MB)"
 		depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532 || TARGET_mvebu
-		default 256
+		default 2048 if TARGET_x86
+		default 256 if ! TARGET_x86
 		help
 		  Select the root filesystem partition size.
 



More information about the lede-commits mailing list