summaryrefslogtreecommitdiff
path: root/scripts/local
blob: ffbd2304c312a714bba6843c56f569899dd18a60 (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
}