agama-project / agama

A service-based Linux installer
https://agama-project.github.io/
GNU General Public License v2.0
145 stars 42 forks source link

Storage model: parse sizes given as strings #1751

Closed ancorgs closed 1 week ago

ancorgs commented 1 week ago

Problem

The storage model cannot parse sizes when they are specified as strings like "1024", "1 KiB", etc.

Solution

This pull request introduces proper parsing based on xbytes (which is already an Agama dependency).

ancorgs commented 1 week ago

Looks good, but please run npx prettier -w

Done. And PR updated via commit --amend to reduce noise.