[buildd-tools-devel] Bug#709774: Enable aufs on tmpfs via configuration parameter

Luca Capello luca.capello at infomaniak.com
Wed Jun 8 15:36:33 UTC 2016


user luca.capello at infomaniak.com
usertag 709774 + infomaniak.com-packaging
tag 709774 + patch
thanks

Hi there!

On Sat, 25 May 2013 13:02:50 +0200, Joachim Breitner wrote:
> It would be nicer if this feature could be enabled without touching
> fstab, by a simple configuration option in schroot.conf. This could
> additionally have the advantage that if schroot mounts the overy for
> each instance, instead of deleting the overlay afterwards, it can just
> unmount the tmpfs to get rid of it.

To avoid such information to be lost:

  <https://wiki.debian.org/sbuild#sbuild_overlays_in_tmpfs>

=====
root at chobin:~# cat <<EOF >/etc/schroot/setup.d/04tmpfs
#!/bin/sh

set -e

. "\$SETUP_DATA_DIR/common-data"
. "\$SETUP_DATA_DIR/common-functions"
. "\$SETUP_DATA_DIR/common-config"

if [ -n "\${CHROOT_UNION_TYPE}" ] && [ "\${CHROOT_UNION_TYPE}" != 'none' ]; then

    if [ \$STAGE = "setup-start" ]; then
        mount -t tmpfs overlay /var/lib/schroot/union/overlay

    elif [ \$STAGE = "setup-recover" ]; then
        mount -t tmpfs overlay /var/lib/schroot/union/overlay

    elif [ \$STAGE = "setup-stop" ]; then
        umount -f /var/lib/schroot/union/overlay
    fi

fi
EOF
root at chobin:~# chmod a+x /etc/schroot/setup.d/04tmpfs
=====

The above has the disadvantage of mounting a tmpfs on
/var/lib/schroot/union/overlay for each schroot and it is still missing
a configuration option in schroot.conf, but it is already a start ;-)

Thx, bye,
Gismo / Luca

-- 
Luca Capello
Administrateur GNU/Linux

Infomaniak Network SA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160608/c168b893/attachment.sig>


More information about the Buildd-tools-devel mailing list