Don't state the fstype we're using as fstab could be totally different.
This commit is contained in:
parent
6f68c44a77
commit
568ec5f343
@ -88,7 +88,7 @@ fi
|
|||||||
if ${mountproc}; then
|
if ${mountproc}; then
|
||||||
procfs="proc"
|
procfs="proc"
|
||||||
[ "${RC_UNAME}" = "GNU/kFreeBSD" ] && proc="linprocfs"
|
[ "${RC_UNAME}" = "GNU/kFreeBSD" ] && proc="linprocfs"
|
||||||
ebegin "Mounting ${procfs} at /proc"
|
ebegin "Mounting /proc"
|
||||||
if ! fstabinfo --mount /proc; then
|
if ! fstabinfo --mount /proc; then
|
||||||
mount -n -t "${procfs}" -o noexec,nosuid,nodev proc /proc
|
mount -n -t "${procfs}" -o noexec,nosuid,nodev proc /proc
|
||||||
fi
|
fi
|
||||||
@ -111,7 +111,7 @@ then
|
|||||||
if grep -Eq "[[:space:]]+sysfs$" /proc/filesystems; then
|
if grep -Eq "[[:space:]]+sysfs$" /proc/filesystems; then
|
||||||
if [ -d /sys ]; then
|
if [ -d /sys ]; then
|
||||||
if ! mountinfo --quiet /sys; then
|
if ! mountinfo --quiet /sys; then
|
||||||
ebegin "Mounting sysfs at /sys"
|
ebegin "Mounting /sys"
|
||||||
if ! fstabinfo --mount /sys; then
|
if ! fstabinfo --mount /sys; then
|
||||||
mount -n -t sysfs -o noexec,nosuid,nodev sysfs /sys
|
mount -n -t sysfs -o noexec,nosuid,nodev sysfs /sys
|
||||||
fi
|
fi
|
||||||
@ -166,7 +166,7 @@ do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$2" ]; then
|
if [ -d "$2" ]; then
|
||||||
ebegin "Mounting $1 at $2"
|
ebegin "Mounting $2"
|
||||||
if ! fstabinfo --mount "$2"; then
|
if ! fstabinfo --mount "$2"; then
|
||||||
mount -n -t "$1" -o noexec,nosuid"$4" "$5" "$2"
|
mount -n -t "$1" -o noexec,nosuid"$4" "$5" "$2"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user