mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Revert "Additional SYSV init script fixes."
This reverts commit 036391c980
.
Because #3509 came just after this commit was accepted and is related
to the original problem the commit was supposed to fix, we need to
solve the problem in another way.
Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
c52fca13a0
commit
216f9d04a6
@ -371,16 +371,13 @@ read_mtab()
|
|||||||
# Unset all MTAB_* variables
|
# Unset all MTAB_* variables
|
||||||
unset $(env | grep ^MTAB_ | sed 's,=.*,,')
|
unset $(env | grep ^MTAB_ | sed 's,=.*,,')
|
||||||
|
|
||||||
mount | \
|
while read -r fs mntpnt fstype opts rest; do
|
||||||
grep -E "$match" | \
|
if echo "$fs $mntpnt $fstype $opts" | grep -qE "$match"; then
|
||||||
sed "s,\(.*\) on \(.*\) type .*,\1;\2," | \
|
mntpnt=$(printf '%b\n' "$mntpnt" | sed -e 's,/,_,g' \
|
||||||
while read line; do
|
-e 's,-,_,g' -e 's,\.,_,g')
|
||||||
mntpnt=$(echo "$line" | sed -e 's,;.*,,' -e 's,/,_,g' \
|
eval export MTAB_$mntpnt="$fs"
|
||||||
-e 's,-,_,g' -e 's,\.,_,g' -e 's, ,_,g')
|
fi
|
||||||
fs=$(echo "$line" | sed 's,.*;,,')
|
done < /proc/mounts
|
||||||
|
|
||||||
eval export MTAB_$mntpnt="'$fs'"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
in_mtab()
|
in_mtab()
|
||||||
|
Loading…
Reference in New Issue
Block a user