dw-0 / kiauh

Klipper Installation And Update Helper
GNU General Public License v3.0
3.4k stars 491 forks source link

[FR] Alert during pre-install checks if <5(?)GB free space exists on the file system. #331

Open TodWulff opened 1 year ago

TodWulff commented 1 year ago

Is your feature request related to a problem? Please describe

Ref: https://discord.com/channels/758059413700345988/894225507489570837/1096825803213385818

[11:54 AM]MegaHurtz ๐Ÿ‡บ๐Ÿ‡ธ V2.2526: Hola. As info, I had an instance of Kiauh hanging during an initial install today. I had flashed a Debian 12 image onto a new host and growpart'd it, but forgot to resize2fs. As such, the filesystem filled up and the script hung, with no apparent reason for the hang, during the install of Klipper. It might be nice to have the script check for reasonable free space and to toss an error if there is risk of consuming the whole of the file system's remaining space, as part of the pre-install checks. Just a friendly suggestion.

[12:01 PM]th33xitus: can you open a feature request in kiauhs github repo for that please? so i can track it. i think it makes sense, but if i have no ticket to track, i will definitely forget it

[12:02 PM]th33xitus: what would you see as a "reasonable free space" for the full stack? it might be really hard to tell, honestly i have never tracked the space requirements for all dependencies and then the components themself.

[12:18 PM]MegaHurtz ๐Ÿ‡บ๐Ÿ‡ธ V2.2526: luckily I had an old ssh session open: https://i.imgur.com/8dAVJmf.png

So before the Kiauh install, it looks like the image and some basic packages consumed some 1.4GB on the drive. Afterwards it looks like it is 5.1G (Klipper/Moonraker/Mainsail). So I would presume that a reasonable free space value of <5GB would be a conservative threshold of alerting a possible concern, especially if the users decide to go bonkers and install everything under the sun (telegram bot, crowsnest, sonar, multiple instances, ...).

Yep, I'll make a FR on github.

[12:20 PM]MegaHurtz ๐Ÿ‡บ๐Ÿ‡ธ V2.2526: (and yes, I renamed the host as part of the commissioning process... )

Describe the solution you'd like

During pre-install checks, verify that 'reasonable' free space exists before commencing the install of all the dependencies and klipper/moonraker and UI packages, alerting if <5(?)GB exists.

Describe alternatives you've considered

No response

Additional information

No response