Home | History | Annotate | Line # | Download | only in rc.d
      1 #!/bin/sh
      2 #
      3 # $NetBSD: mountcritlocal,v 1.17 2022/02/20 14:42:07 alnsn Exp $
      4 #
      5 
      6 # PROVIDE: mountcritlocal
      7 # REQUIRE: fsck
      8 
      9 $_rc_subr_loaded . /etc/rc.subr
     10 
     11 name="mountcritlocal"
     12 start_cmd="mountcritlocal_start"
     13 stop_cmd=":"
     14 
     15 mountcritlocal_start()
     16 {
     17 	#	Mount critical file systems that are `local'
     18 	#	(as specified in $critical_filesystems_local)
     19 	#	This usually includes /var.
     20 	#
     21 	mount_critical_filesystems local || return $?
     22 	if checkyesno zfs; then
     23 		mount_critical_filesystems_zfs || return $?
     24 	fi
     25 	return 0
     26 }
     27 
     28 load_rc_config $name
     29 load_rc_config_var zfs zfs
     30 run_rc_command "$1"
     31