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

Details

Provenance
karelsAuthored on Jan 4 2023, 6:25 PM
Parents
rGe5b9b5ee8c3a: Add Windows Dev Kit 2023 support to if_ure
Branches
Unknown
Tags
Unknown