projtool.pl: add [set]hooks command
[girocco/readme.git] / fstab / fstab.girocco
blob2e4115abcddd85b275c8a79b811791661abe64f9
1 # These entries should be ADDED to the end of /etc/fstab to
2 # properly set up the girocco chroot jail
4 # /etc/fstab: static file system information.
6 # <file system> <mount point>           <type>  <options>               <dump>  <pass>
8 # IMPORTANT:
9 #  It may be necessary to add a "late" option to these entries
10 #  so that they are mounted after the filesystem they are trying
11 #  to mount into (such as ZFS).  On FreeBSD this can be accomplished
12 #  simply by adding a "late" option.  On Linux if delaying the mounts
13 #  is required, it may be necessary to add a "noauto" option and then
14 #  manually mount them in /etc/rc.local.
16 # mount the git repositories in the jail
17 #   Note that on FreeBSD a "bind" mount is accomplished by setting the type to
18 #     nullfs and the options to rw as FreeBSD does not have a mount --bind option
19 #   Note that DragonFly BSD is the same as FreeBSD except the type should be null
20 /srv/git        /home/repo/j/srv/git    none    bind                    0       0
22 # mount the proc filesystem in the jail
23 #   Note that there are two possiblities here, the first is a bind mount and
24 #     the second is another proc mount.
25 #   The bind mount will always mirror everything in /proc whereas a second
26 #     proc mount has the potential of having a separate proc namespace.
27 #   Note that some systems (e.g. FreeBSD) must omit the "nodev" option.
28 #   Note that some systems (e.g. FreeBSD) will need to use "procfs" for the type.
29 #   Note that some systems (e.g. FreeBSD) may need to add the "rw" option.
30 #   Note that mounting procfs in a FreeBSD chroot is optional and normally omitted
31 #/proc          /home/repo/j/proc       none    bind                    0       0
32 proc            /home/repo/j/proc       proc    nodev,noexec,nosuid     0       0
34 # mount the devfs filesystem in the jail
35 #   Note that this is only necessary on systems where mknod does not work
36 #     except on devfs mounts (e.g. FreeBSD, DragonFly BSD)
37 #   Note that on FreeBSD before starting the chroot, the following commands
38 #     may be executed to reduce the number of exposed devices:
39 #       devfs -m /home/repo/j/dev ruleset 4
40 #       devfs -m /home/repo/j/dev rule applyset
41 #   Note that on DragonFly BSD before starting the chroot, the devsfctl
42 #     commands shown in the devfsctl_chroot_ruleset file (which will be
43 #     automatically installed to $Girocco::Config::chroot/etc/devfs.conf)
44 #     may be executed to reduce the number of devices exposed in the chroot.
45 #devfs          /home/repo/j/dev        devfs   rw,noexec,nosuid        0       0