Modofy the sbuild/schroot fstab setup
authorSteve McIntyre <steve@einval.com>
Fri, 26 Oct 2018 12:50:08 +0000 (13:50 +0100)
committerSteve McIntyre <steve@einval.com>
Fri, 26 Oct 2018 12:50:08 +0000 (13:50 +0100)
Bind-mount /chroot/rebuildd/sbuild/build for build space

Also bind-mount /etc/schroot/extra, the location of our ulimit wrapper
script

build-config/schroot/sbuild/fstab [new file with mode: 0644]

diff --git a/build-config/schroot/sbuild/fstab b/build-config/schroot/sbuild/fstab
new file mode 100644 (file)
index 0000000..7fd4b04
--- /dev/null
@@ -0,0 +1,13 @@
+# fstab: static file system information for chroots.
+# Note that the mount point will be prefixed by the chroot path
+# (CHROOT_PATH)
+#
+# <file system> <mount point>   <type>  <options>       <dump>  <pass>
+/proc           /proc           none    rw,bind         0       0
+/sys            /sys            none    rw,bind         0       0
+/dev/pts        /dev/pts        none    rw,bind         0       0
+tmpfs           /dev/shm        tmpfs   defaults        0       0
+# Mount a large scratch space for the build, so we don't use up
+# space on an LVM snapshot of the chroot itself.
+/chroot/rebuildd/sbuild/build  /build   none    rw,bind         0       0
+/etc/schroot/extra            /build-config    none    rw,bind         0       0