summaryrefslogtreecommitdiff
path: root/scripts/local
blob: 572f185e9e95c6bd002ebb2835e70eb2ede56341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Local filesystem mounting

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

	eval $(fstype < ${ROOT})

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