eclass/portability: Sync with Gentoo

It's from Gentoo commit ae0cf28b48bcb07e4bef155f00ae34fb7c31b951.
This commit is contained in:
Flatcar Buildbot 2023-03-27 07:23:19 +00:00
parent ca047cf1c7
commit a14930a9dc

View File

@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: portability.eclass
@ -139,11 +139,11 @@ get_mounts() {
fi
# OK, pray we have a -p option that outputs mounts in fstab format
# using tabs as the seperator.
# using tabs as the separator.
# Then pray that there are no tabs in the either.
# Currently only FreeBSD supports this and the other BSDs will
# have to be patched.
# Athough the BSD's may support /proc, they do NOT put \040 in place
# Although the BSDs may support /proc, they do NOT put \040 in place
# of the spaces and we should not force a /proc either.
local IFS=$'\t'
LC_ALL=C mount -p | while read node point fs foo ; do