pi-top / pi-topOS-Web-Portal

React / Python application for providing a web-based interface to pi-topOS.
1 stars 1 forks source link

Improve how to determine if filesystem is expanded #143

Open jcapona opened 3 years ago

jcapona commented 3 years ago

We should replace the FS expand breadcrumb with something more robust. One possible option would be to check the filesystem size, though I'm sure there are other ways to detect.

jcapona commented 3 years ago

raspi-config provides means to determine if the FS can be expanded: raspi-config nonint get_can_expand

https://github.com/RPi-Distro/raspi-config/blob/master/raspi-config#L141

pi-topOS has a different partition layout, but some version of the above can be used.