mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 08:31:04 +02:00
eclass/portability: Sync with Gentoo
It's from Gentoo commit ae0cf28b48bcb07e4bef155f00ae34fb7c31b951.
This commit is contained in:
parent
ca047cf1c7
commit
a14930a9dc
@ -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
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: portability.eclass
|
# @ECLASS: portability.eclass
|
||||||
@ -139,11 +139,11 @@ get_mounts() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# OK, pray we have a -p option that outputs mounts in fstab format
|
# 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.
|
# Then pray that there are no tabs in the either.
|
||||||
# Currently only FreeBSD supports this and the other BSDs will
|
# Currently only FreeBSD supports this and the other BSDs will
|
||||||
# have to be patched.
|
# 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.
|
# of the spaces and we should not force a /proc either.
|
||||||
local IFS=$'\t'
|
local IFS=$'\t'
|
||||||
LC_ALL=C mount -p | while read node point fs foo ; do
|
LC_ALL=C mount -p | while read node point fs foo ; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user