dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
598 stars 397 forks source link

fix(dracut.sh): use gawk for strtonum #2436

Closed thesamesam closed 1 year ago

thesamesam commented 1 year ago

This pull request changes dracut.sh and dracut-functions.sh to use gawk instead of awk because we're using strtonum.

strtonum is a gawkism and is not available in all awks, e.g. mawk. Use gawk to avoid failure.

Fixes: f32e95bcadbc5158843530407adc1e7b700561b1

Changes

Checklist

Fixes #

thesamesam commented 1 year ago

cc @keentux

LaszloGombos commented 1 year ago

Thanks @thesamesam .

Make sense to me to land this as is, but I hope to improve it even further and support mawk by carrying our own strtonum implementation.