From 2d6c50cadac6a03f8b57e92c3bc2f7988d0ae6a6 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Mon, 5 Apr 2021 12:54:25 -0500 Subject: Adjust proc sysfs and tmpfs mount commands. --- mountvirtfs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mountvirtfs.sh b/mountvirtfs.sh index 49de1e7..ecf328a 100644 --- a/mountvirtfs.sh +++ b/mountvirtfs.sh @@ -12,17 +12,17 @@ else printf "%b" " ${IYLW}${LFS}/dev/pts${IGRN} is already mounted${RST}\n" fi if ! mountpoint "${LFS}"/proc >/dev/null 2>&1; then - sudo mount /proc "${LFS}"/proc + sudo mount -t proc proc "${LFS}"/proc else printf "%b" " ${IYLW}${LFS}/proc${IGRN} is already mounted${RST}\n" fi if ! mountpoint "${LFS}"/sys >/dev/null 2>&1; then - sudo mount /sys "${LFS}"/sys + sudo mount -t sysfs sysfs "${LFS}"/sys else printf "%b" " ${IYLW}${LFS}/sys${IGRN} is already mounted${RST}\n" fi if ! mountpoint "${LFS}"/run >/dev/null 2>&1; then - sudo mount /run "${LFS}"/run + sudo mount -t tmpfs tmpfs "${LFS}"/run else printf "%b" " ${IYLW}${LFS}/run${IGRN} is already mounted${RST}\n" fi -- cgit v1.2.3-54-g00ecf