Removing old changelog entries, make files ready for lfs-4.0 release
[linux_from_scratch.git] / bootscripts / rc.d / init.d / mountfs
blob1c62eb367b1dafb21b6dbcb4cc9ac625d06a7c5a
1 #!/bin/bash
2 # Begin $rc_base/init.d/mountfs - File System Mount Script
4 # Based on mountfs script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 source /etc/sysconfig/rc
8 source $rc_functions
10 case "$1" in
11 start)
12 echo "Remounting root file system in read-write mode..."
13 mount -n -o remount,rw /
14 evaluate_retval
16 # The follow mount command will mount all file systems. If you
17 # have other (network based) file system that should not be or
18 # cannot be mounted at this time, add them to the NO_FS variable
19 # below. All file systems that are added to the variable in the
20 # form of no<filesystem> will be skipped.
22 NO_FS="nonfs,nosmbfs,noproc"
23 echo "Mounting remaining file systems..."
24 mount -a -t $NO_FS
25 evaluate_retval
28 stop)
29 echo "Unmounting all other currently mounted file systems..."
30 umount -a -r
31 evaluate_retval
35 echo "Usage: $0 {start|stop}"
36 exit 1
38 esac
40 # End $rc_base/init.d/mountfs