Linxr Adds Auto Filesystem Expansion on Boot to Fix Disk Space Mismatch
The Linxr development team has detailed Part 9 of their build series, addressing a storage bug where user-configured disk sizes of 30 GB or 50 GB failed to reflect inside the Alpine Linux guest environment. Despite enlarging the QCOW2 virtual disk overlay on Android, the underlying ext4 filesystem remained capped at 1.4 GB due to the base rootfs image size. To fix this, the team bundled resize2fs via e2fsprogs-extra and created a custom OpenRC init service called diskexpand that runs automatically at boot before the SSH daemon starts. The service calls resize2fs on the virtual block device, expanding the filesystem to match the allocated disk capacity in milliseconds with no data loss. If no disk size change is detected, the operation completes instantly as a no-op, making the process seamless for end users.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in