From 37cf1e4e315e15f74a8a5ab6cc5aa6ddc5330dc6 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 1 May 2013 22:22:58 -0300 Subject: [PATCH] Disable `/tmp` cleanup on start for base debian boxes References #68 --- boxes/debian/lxc-template | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/boxes/debian/lxc-template b/boxes/debian/lxc-template index 0e7cc28..1d7b6c2 100755 --- a/boxes/debian/lxc-template +++ b/boxes/debian/lxc-template @@ -208,6 +208,13 @@ add_ssh_key() fi } +disable_tmp_cleanup() { + rootfs=$1 + chroot $rootfs /usr/sbin/update-rc.d -f checkroot-bootclean.sh remove + chroot $rootfs /usr/sbin/update-rc.d -f mountall-bootclean.sh remove + chroot $rootfs /usr/sbin/update-rc.d -f mountnfs-bootclean.sh remove +} + usage() { cat <