X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=stage1%2Fbootscripts%2Fmountkernfs;h=e581e5d024fe7c5cdc15843bd2702c3f180a23f1;hb=6007645124befc70ffe2fae5500022b215d59ce6;hp=e0552afc4f3fd33f4f48bfbd25b4516f544518d6;hpb=1083076034a8c41028e0587f302bfc8cfdb776af;p=hvlinux.git diff --git a/stage1/bootscripts/mountkernfs b/stage1/bootscripts/mountkernfs index e0552af..e581e5d 100755 --- a/stage1/bootscripts/mountkernfs +++ b/stage1/bootscripts/mountkernfs @@ -5,25 +5,32 @@ # Source functions library source /etc/rc.d/init.d/functions +mount_kernel_virtual_fs() +{ + # The "-n: option tells mount not to write to the /etc/mtab file (because + # /etc/mtab is a symbolic link to /proc/mounts, which we are in the process + # of mounting). + echo "Mounting /proc" + mount -n /proc + + echo "Mounting /sys" + mount /sys + + echo "Mounting /tmp" + mount /tmp + + echo "Mounting /run" + mount /run +} + case "$1" in start) # /dev is automatically mounted by the kernel - - # The "-n: option tells mount not to write to the /etc/mtab - # file (because /etc/mtab is a symbolic link to /proc/mounts, - # which we are in the process of mounting). - cmd_run_log_box "Mounting /proc" mount -n /proc - cmd_run_log_box "Mounting /sys" mount /sys - cmd_run_log_box "Mounting /tmp" mount /tmp - cmd_run_log_box "Mounting /run" mount /run + cmd_run_log_box "Mounting kernel virtual filesystems" mount_kernel_virtual_fs ;; - stop) - umount -n proc - ;; - *) - echo "Usage: $0 {start|stop}" + echo "Usage: $0 {start}" exit ${EXIT_CODE_FAILURE} ;; esac