X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fbootscripts%2Fmountkernfs;h=e0552afc4f3fd33f4f48bfbd25b4516f544518d6;hb=1083076034a8c41028e0587f302bfc8cfdb776af;hp=9c3fed53996da9ebb598639cf9c5cc3a0e5bb75c;hpb=6d3d50c17b24ef41f917f5776696eca810198092;p=hvlinux.git diff --git a/stage1/bootscripts/mountkernfs b/stage1/bootscripts/mountkernfs index 9c3fed5..e0552af 100755 --- a/stage1/bootscripts/mountkernfs +++ b/stage1/bootscripts/mountkernfs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # mountkernfs @@ -7,11 +7,15 @@ source /etc/rc.d/init.d/functions 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 file system" mount -n proc - cmd_run_log_box "Mounting /sys file system" mount sys + 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 ;; stop)