Persistent /var

Philip Prindeville philipp_subx at redfish-solutions.com
Sun Aug 7 13:19:16 PDT 2022


Hi all (and Daniel and Stijn especially),

How do I build a system (or an image to install on a system) that's x86_64 and has an SSD, which I want to have a squashfs image and a 2nd partition with an ext4 filesystem for /var.

I'd like the first boot to resize the 2nd partition to use all available remaining space on the disk after that partition.

How do I do this?

I'd also like to preconfigure /etc/config/fstab to mount the partition, of course.

Am I forgetting any steps?

How to go about this?  Is there a FAQ to follow?

Thanks,

-Philip




More information about the openwrt-devel mailing list