diff options
author | Alexander von Gernler <grunk@cvs.openbsd.org> | 2007-06-01 01:22:27 +0000 |
---|---|---|
committer | Alexander von Gernler <grunk@cvs.openbsd.org> | 2007-06-01 01:22:27 +0000 |
commit | 8931b0b85b1446f11e8f24bd60b620b6888f2212 (patch) | |
tree | 1d8f4570e34ace9e868d3a26b7e3d4b25d7efc67 /sbin | |
parent | c93e06f45298c53662366acf688bccba332da3b8 (diff) |
since real boottime vnd support would have caused many problems,
do a poor man's (but yet working) solution and provide the user with
instructions to enhance fstab(5) and rc.local(8) with own boot time support.
tweaks and ok jmc@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount_vnd/mount_vnd.8 | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/sbin/mount_vnd/mount_vnd.8 b/sbin/mount_vnd/mount_vnd.8 index 0b3089cc7e3..e59c42713cf 100644 --- a/sbin/mount_vnd/mount_vnd.8 +++ b/sbin/mount_vnd/mount_vnd.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mount_vnd.8,v 1.7 2007/05/31 19:19:46 jmc Exp $ +.\" $OpenBSD: mount_vnd.8,v 1.8 2007/06/01 01:22:26 grunk Exp $ .\" .\" Copyright (c) 1993 University of Utah. .\" Copyright (c) 1980, 1989, 1991, 1993 @@ -49,7 +49,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 1 2007 $ .Dt MOUNT_VND 8 .Os .Sh NAME @@ -253,20 +253,38 @@ field has to be set to 0 to prevent .Xr fsck 8 from checking the file system for the same reasons. .Bd -literal -offset indent -/home/img0 /dev/svnd0c vnd rw 0 0 +/home/img0 /dev/svnd0c vnd rw,noauto 0 0 /dev/svnd0a /home/mnt0 ffs rw,noauto,sync 0 0 -/home/img1 /dev/svnd1c vnd rw,-k 0 0 +/home/img1 /dev/svnd1c vnd rw,noauto,-k 0 0 /dev/svnd1a /home/mnt1 ffs rw,sync,noauto,nodev,nosuid 0 0 -/home/img2 /dev/svnd2c vnd rw,-K=20000 0 0 +/home/img2 /dev/svnd2c vnd rw,noauto,-K=20000 0 0 /dev/svnd2a /home/mnt2 ffs rw,sync,noauto,nodev,nosuid 0 0 -/home/img3 /dev/svnd3c vnd rw,-K=20000,-S=/home/img3.salt 0 0 -/dev/svnd3a /home/mnt3 ffs rw,noauto 0 0 -/dev/svnd3d /home/mnt4 ffs rw,noauto 0 0 -/dev/svnd3e /home/mnt5 ffs rw,noauto 0 0 +/home/img3 /dev/svnd3c vnd rw,noauto,-K=20000,-S=/home/img3.salt 0 0 +/dev/svnd3a /home/mnt3 ffs rw,noauto 0 0 +/dev/svnd3d /home/mnt4 ffs rw,noauto 0 0 +/dev/svnd3e /home/mnt5 ffs rw,noauto 0 0 .Ed +.Pp +A sample of commands to put in +.Xr rc.local 8 +in order to have vnd images configured at boot time is listed here: +.Bd -literal -offset indent +# Example for automatically configuring a vnd device on startup +echo "configuring vnd devices:" +mount /dev/svnd0c +fsck -p /dev/svnd0a +mount /mnt/svnd0a +.Ed +.Pp +Mounting images during the first pass of +.Xr fsck 8 +and +.Xr mount 8 +is not possible, because the image to be configured to a vnd itself +resides on a file system that first has to be checked and mounted. .Sh SEE ALSO .Xr vnd 4 , .Xr fstab 5 , @@ -280,10 +298,3 @@ command first appeared in .Ox 4.2 . .Sh AUTHORS .An David Krause . -.Sh BUGS -Checking filesystems within svnd images using -.Xr fsck 8 -at boot time, as well as mounting them at that point of time is not yet -possible, because the mount option -.Dq noauto -is still necessary at the moment. |