mount-boot.eclass: Make awk expression work with mawk.
authorUlrich Müller <ulm@gentoo.org>
Wed, 12 Feb 2020 02:08:37 +0000 (03:08 +0100)
committerUlrich Müller <ulm@gentoo.org>
Thu, 13 Feb 2020 04:31:04 +0000 (05:31 +0100)
commit53c9011002e037ee2b8d97a5ee5657be6f4dd275
tree29194256270c76ac22c16d091f0e8ba0ef895556
parentf06027d371acde35757ca194ed87314caebbd3d1
mount-boot.eclass: Make awk expression work with mawk.

gensub() is a GNUism and doesn't exist in all awk variants. Use a loop
instead.

Tested with gawk, nawk, mawk, and busybox awk.

Closes: https://bugs.gentoo.org/709322
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
eclass/mount-boot.eclass