X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fbootscripts%2Fmountfs;h=bed8bfb4ad455f82f16754b51a86f0e53ec04f84;hb=6007645124befc70ffe2fae5500022b215d59ce6;hp=15cde9347fae4c9ce197de37020d725d42ab711a;hpb=6d3d50c17b24ef41f917f5776696eca810198092;p=hvlinux.git diff --git a/stage1/bootscripts/mountfs b/stage1/bootscripts/mountfs index 15cde93..bed8bfb 100755 --- a/stage1/bootscripts/mountfs +++ b/stage1/bootscripts/mountfs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # mountfs @@ -31,12 +31,16 @@ case "$1" in # at this point mount will automatically mount it read-only which # is what is supposed to happen. This way no data can be written # anymore to disk). - cmd_run_nolog_box "Unmounting file systems" umount -a -d -r -v -t notmpfs,noproc + cmd_run_nolog_box "Unmounting file systems" \ + umount -a -d -r -v -t notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts if [ $? -ne 0 ]; then exit ${EXIT_CODE_WARNING} fi + + # Make sure / is mounted read-only (umount bug?) + mount -o remount,ro / ;; - + *) echo "Usage: $0 {start|stop}" exit ${EXIT_CODE_FAILURE}