user [email protected] 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@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@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
signature.asc
Description: Digital signature

