How to set root filesystem partition size on x86 ImabeBuilder?

Hi:
I can boot device whith Ubuntu Live CD and run Gparted to resize it to use all free spaces, but how can I set size on ImabeBuilder, such as 5G?

I found this:
https://dev.openwrt.org/ticket/22603
But it need to build from sourcecode.

Thanks!

You should be able to set this in "make menuconfig":
"Target Images" -> "Kernel partition size (in MB)" and "Root filesystem partition size (in MB)"

ImabeBuilder can not use "make menuconfig":confused:

In this case you can edit .config in the imagebuilder directly and adjust CONFIG_TARGET_KERNEL_PARTSIZE and CONFIG_TARGET_ROOTFS_PARTSIZE.

Alternatively it should be able to to pass these values directly to the make image call:

make image PROFILE=foo PACKGES="..." CONFIG_TARGET_KERNEL_PARTSIZE=16 CONFIG_TARGET_ROOTFS_PARTSIZE=256

5 Likes

Thanks, it works!

This hidden .config file did not mehtion in this user-guide:sweat_smile:
https://lede-project.org/docs/user-guide/imagebuilder

1 Like

That's awesome! Indeed, there's nowhere else explaining about these configs.

A note: I tried to build image using it as parameter for make and it didn't work, partitions remain on the same size. Only by editing .config that it works, but then we need to have enough RAM to store the whole image while building it.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.