Deploy /etc/schroot/buildd/fstab via puppet
[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,bind         0       0
11 dev             /dev/fd         fdescfs rw,bind         0       0
12
13 <% else -%>
14 # Linux version
15 /proc           /proc           none    rw,bind         0       0
16 /sys            /sys            none    rw,bind         0       0
17 /dev/pts        /dev/pts        none    rw,bind         0       0
18 tmpfs-shm       /dev/shm        tmpfs   defaults,size=64m       0 0
19
20 <% end %>
21
22 /srv/build-trees        /build  none    rw,bind         0       0