From c4d23b56ff303e57f9d482bdebf5bc4523dcd869 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 5 Mar 2007 00:33:42 +0000 Subject: [PATCH] Clifford Wolf: Fix bot error messages for /proc and /sys when they have been mounted already by initrd [2007030314285712400] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8245 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/sysfiles/system.init | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/base/sysfiles/system.init b/package/base/sysfiles/system.init index a714c1afb..083c6eebf 100644 --- a/package/base/sysfiles/system.init +++ b/package/base/sysfiles/system.init @@ -28,8 +28,12 @@ main_begin block_begin(start, `Mounting /proc and /sys.') - check(`mount -n -t proc proc /proc') - check(`mount -n -t sysfs sysfs /sys') + if [ ! -e /proc/self ]; then + check(`mount -n -t proc proc /proc') + fi + if [ ! -e /sys/kernel ]; then + check(`mount -n -t sysfs sysfs /sys') + fi dnl block_split(`Setting kernel clock to local time.') [ -f /etc/conf/clock ] && . /etc/conf/clock