ed07259681
This package contains all files required for booting the lsXL linux system built through xbps. Currently it uses the NetBSD rc.d(8) system, sysvinit and modified BSD style scripts modified from Arch linux. --HG-- extra : convert_revision : 4584be26dd672ba33f9b1d76534a22d4715664ea
33 lines
698 B
Bash
Executable file
33 lines
698 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# PROVIDE: mountfs
|
|
# REQUIRE: SERVERS checkfs
|
|
# BEFORE: NETWORKING
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
name="mountfs"
|
|
start_cmd="mountfs_start"
|
|
stop_cmd=":"
|
|
|
|
NETFS="nonfs,nonfs4,nosmbfs,nocifs,nocodafs,noncpfs,nosysfs,noshfs,nofuse,nofuseblk"
|
|
|
|
mountfs_start()
|
|
{
|
|
echo -n "=> Mounting local filesystems... "
|
|
mount -n -o remount,rw /
|
|
rm -f /etc/mtab*
|
|
# make sure / gets written to /etc/mtab
|
|
mount -o remount,rw /
|
|
# Write /proc, /sys and /dev to /etc/mtab
|
|
if [ -e /proc/mounts ]; then
|
|
grep -e "/proc " -e "/sys " -e "/dev " /proc/mounts \
|
|
>> /etc/mtab
|
|
fi
|
|
# now mount all the local filesystems
|
|
mount -a -t $NETFS
|
|
echo "done."
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|