summaryrefslogtreecommitdiff
path: root/scripts/local
blob: b322f0987f9e9fb9801c6a5970273017e499be6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Local filesystem mounting

# Parameter: Where to mount the filesystem
mountroot ()
{
	run_scripts /scripts/local-top

	# Get the root filesystem type
	if [ ! -e ${ROOT} ]; then
		panic "ALERT!  ${ROOT} does not exist.  Dropping to a shell!"
	fi

	eval $(fstype < ${ROOT})

	run_scripts /scripts/local-premount

	# Mount root
	mount ${ro} -t ${FSTYPE} ${ROOT} ${rootmnt}

	run_scripts /scripts/local-bottom
}