X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fschroot%2Ftemplates%2Fschroot-buildd%2Ffstab.erb;fp=modules%2Fschroot%2Ftemplates%2Fschroot-buildd%2Ffstab.erb;h=eec5fdf024ee445117d23601d845b3a180c58e89;hb=4821ac4dee638a886249ef48880523a9e77e3a80;hp=0000000000000000000000000000000000000000;hpb=466e1e24308653c714e81454a638695109f4c063;p=mirror%2Fdsa-puppet.git diff --git a/modules/schroot/templates/schroot-buildd/fstab.erb b/modules/schroot/templates/schroot-buildd/fstab.erb new file mode 100644 index 000000000..eec5fdf02 --- /dev/null +++ b/modules/schroot/templates/schroot-buildd/fstab.erb @@ -0,0 +1,22 @@ +# fstab: static file system information for chroots. +# Note that the mount point will be prefixed by the chroot path +# (CHROOT_PATH) +# +# + +<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%> +# kFreeBSD version +proc /proc linprocfs defaults 0 0 +dev /dev devfs rw,bind 0 0 +dev /dev/fd fdescfs rw,bind 0 0 + +<% else -%> +# Linux version +/proc /proc none rw,bind 0 0 +/sys /sys none rw,bind 0 0 +/dev/pts /dev/pts none rw,bind 0 0 +tmpfs-shm /dev/shm tmpfs defaults,size=64m 0 0 + +<% end %> + +/srv/build-trees /build none rw,bind 0 0