]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Ship our own fstab for the dsa schroot profile
authorPeter Palfrader <peter@palfrader.org>
Mon, 9 Dec 2013 18:24:29 +0000 (19:24 +0100)
committerPeter Palfrader <peter@palfrader.org>
Mon, 9 Dec 2013 18:24:29 +0000 (19:24 +0100)
modules/porterbox/files/schroot-dsa/fstab [new file with mode: 0644]
modules/porterbox/manifests/init.pp

diff --git a/modules/porterbox/files/schroot-dsa/fstab b/modules/porterbox/files/schroot-dsa/fstab
new file mode 100644 (file)
index 0000000..d199237
--- /dev/null
@@ -0,0 +1,21 @@
+# 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            /dev            none    rw,bind         0       0
+/dev/pts       /dev/pts        none    rw,bind         0       0
+/home          /home           none    rw,bind         0       0
+/tmp           /tmp            none    rw,bind         0       0
+tmpfs-shm      /dev/shm        tmpfs   defaults,size=64m       0 0
+
+# It may be desirable to have access to /run, especially if you wish
+# to run additional services in the chroot.  However, note that this
+# may potentially cause undesirable behaviour on upgrades, such as
+# killing services on the host.
+#/run          /run            none    rw,bind         0       0
+#/run/lock     /run/lock       none    rw,bind         0       0
+#/dev/shm      /dev/shm        none    rw,bind         0       0
+#/run/shm      /run/shm        none    rw,bind         0       0
index 03bd65cf6f9e882900b8cead49d583f79dfc7d7b..3747c1295f463fded16283eeb098415c1bb2ae03 100644 (file)
@@ -12,6 +12,9 @@ class porterbox {
        file { '/etc/schroot/dsa/config':
                source  => 'puppet:///modules/porterbox/schroot-dsa/config',
        }
+       file { '/etc/schroot/dsa/fstab':
+               source  => 'puppet:///modules/porterbox/schroot-dsa/fstab',
+       }
        file { '/etc/schroot/dsa/default-mirror':
                content => template('porterbox/default-mirror.erb'),
        }