7fe230f9d342efa4ccb26b5b48dee39ebe7882c1
[mirror/dsa-puppet.git] / modules / schroot / templates / schroot-buildd / fstab.erb
1 # fstab: static file system information for chroots.
2 # Note that the mount point will be prefixed by the chroot path
3 # (CHROOT_PATH)
4 #
5 # <file system> <mount point>   <type>  <options>       <dump>  <pass>
6
7 <% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%>
8 # kFreeBSD version
9 proc            /proc           linprocfs       defaults        0       0
10 dev             /dev            devfs   rw              0       0
11 dev             /dev/fd         fdescfs rw              0       0
12
13 /srv/build-trees        /build  nullfs  rw              0       0
14 <% else -%>
15 # Linux version
16 /proc           /proc           none    rw,bind         0       0
17 /sys            /sys            none    rw,bind         0       0
18 /dev/pts        /dev/pts        none    rw,bind         0       0
19 tmpfs-shm       /dev/shm        tmpfs   defaults,size=64m       0 0
20
21 <%- if has_variable?("has_srv_build_trees") && @has_srv_build_trees -%>
22 /srv/build-trees        /build  none    rw,bind         0       0
23
24 <% end %>
25 <% end %>