substring / os

GroovyArcade is an Arch Linux based OS primarily targetting best CRT MAME experience
77 stars 10 forks source link

Less than 10% Space warning after installing latest Version to 500GB SSD #48

Open glockmane opened 2 months ago

glockmane commented 2 months ago

Fresh install from the Live ISO.. Installed yesterday from the last 2023 ISO without any problem.. Now with the 2024.7 ISO I got this problem..

substring commented 2 months ago

Because it's a new feature of gasetup that you would anyway get with an update of the previous iso. I'll have a look at it. Can you send me the output of df -h ?

dubcl commented 2 months ago

Hi @substring , in the gasetup gitlab repo, the "core/procedures/interactive" file had a miss evaluation of the space left, df provide the space used, not the space free, then the evaluation must be "-gt" 90

  else
    space_used="$(df --output=pcent / | tail -1 | grep -oE '[0-9]+')"
    if [[ $space_used -gt 90 ]] ; then
      notify "Your main drive has less than 10% free space left"
    fi
  fi
}

Another approach is use awk to get the free space, for example:

df -h | awk 'NR==1{print "Free Space"} NR>1{used=substr($5, 1, length($5)-1); free=100-used; print free"%"}'

I create an issue directly in the gasetup repo https://gitlab.com/groovyarcade/gasetup/-/issues/19

Regards.

substring commented 2 months ago

Arigato gozaimasu 🙇🏻

I'll fix that one back from holidays !