setup-dchroot: only keep 2 old chroots
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 28 Aug 2017 08:24:04 +0000 (10:24 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 28 Aug 2017 08:25:14 +0000 (10:25 +0200)
Since the switch to gcc-7 as default compiler, the chroots are much
bigger. Only keep the two last ones to save space.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
modules/schroot/files/setup-dchroot

index dec0e36..a3187dd 100755 (executable)
@@ -395,7 +395,7 @@ cleanup+=("rm -f $tartmp")
   chmod 0755 "$rootdir"
   tar caf "$tartmp" .
   if ! [ -z "$keep" ]; then
-    savelog -l -c 4 "$target"
+    savelog -l -c 2 "$target"
   fi
   mv "$tartmp" "$target"
 )