HomeFreeBSD

growfs script: fix config-dependent errors

Description

growfs script: fix config-dependent errors

  • awk sometimes formatted swapbase as floating point, which gpart does not accept; force int.
  • Fix typo in code for checking vm.max_swap_pages.
  • While here, do not set kernel env if "gpart add" fails.
  • Add "gpart show" before modification to verbose output.

Reported by: marklmi at yahoo dot com
Tested by: marklmi at yahoo dot com

(cherry picked from commit 0e2fdab227a1e02956271e5a15403d1408de1eed)

Details

Provenance
karelsAuthored on Jan 4 2023, 6:25 PM
Parents
rGa7fde0e0387d: growfs script: fixes
Branches
Unknown
Tags
Unknown