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 11name="mountcritlocal" 12start_cmd="mountcritlocal_start" 13stop_cmd=":" 14 15mountcritlocal_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 28load_rc_config $name 29load_rc_config_var zfs zfs 30run_rc_command "$1" 31