FreeBSD Bugzilla – Attachment 112280 Details for
Bug 153666
[rc.d][patch] mount filesystems from fstab over zfs datasets (early)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
a.diff
a.diff (text/plain), 1.66 KB, created by
swell.k
on 2011-01-04 00:00:23 UTC
(
hide
)
Description:
a.diff
Filename:
MIME Type:
Creator:
swell.k
Created:
2011-01-04 00:00:23 UTC
Size:
1.66 KB
patch
obsolete
>Index: etc/defaults/rc.conf >=================================================================== >--- etc/defaults/rc.conf (revision 216917) >+++ etc/defaults/rc.conf (working copy) >@@ -57,6 +57,7 @@ > > # ZFS support > zfs_enable="NO" # Set to YES to automatically mount ZFS file systems >+zfs_mount_before_fstab="" # List of ZFS datasets to mount before fstab(5) > > gptboot_enable="YES" # GPT boot success/failure reporting. > >Index: etc/rc.d/mountzfsbeforelocal >=================================================================== >--- etc/rc.d/mountzfsbeforelocal (revision 0) >+++ etc/rc.d/mountzfsbeforelocal (revision 0) >@@ -0,0 +1,33 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+ >+# PROVIDE: mountzfsbeforelocal >+# REQUIRE: root >+# BEFORE: mountcritlocal >+ >+. /etc/rc.subr >+ >+name="mountzfsbeforelocal" >+rcvar="zfs_enable" >+start_cmd="mountzfsbeforelocal_start" >+stop_cmd="mountzfsbeforelocal_stop" >+required_modules="zfs" >+ >+mountzfsbeforelocal_start() >+{ >+ for fs in $zfs_mount_before_fstab; do >+ zfs mount $fs >+ done >+} >+ >+mountzfsbeforelocal_stop() >+{ >+ for fs in $zfs_mount_before_fstab; do >+ zfs umount $fs >+ done >+} >+ >+load_rc_config $name >+run_rc_command "$1" >Index: etc/rc.d/Makefile >=================================================================== >--- etc/rc.d/Makefile (revision 216917) >+++ etc/rc.d/Makefile (working copy) >@@ -20,7 +20,7 @@ > jail \ > kadmind kerberos keyserv kldxref kpasswdd \ > ldconfig local localpkg lockd lpd \ >- mixer motd mountcritlocal mountcritremote mountlate \ >+ mixer motd mountcritlocal mountcritremote mountlate mountzfsbeforelocal \ > mdconfig mdconfig2 mountd moused mroute6d mrouted msgs \ > named natd netif netoptions \ > newsyslog nfsclient nfscbd nfsd \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 153666
: 112280