From 47d0469af54e10f06fc193d2039c1782cce7a4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Tue, 22 Sep 2015 10:20:26 +0200 Subject: [PATCH] Add hook that removes all apt lists for ubuntu-touch images. Our apport now works without them on the read-only images and this way we can save up some space. --- live-build/ubuntu-touch/hooks/99-remove-lists.chroot | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 live-build/ubuntu-touch/hooks/99-remove-lists.chroot diff --git a/live-build/ubuntu-touch/hooks/99-remove-lists.chroot b/live-build/ubuntu-touch/hooks/99-remove-lists.chroot new file mode 100755 index 00000000..4b621242 --- /dev/null +++ b/live-build/ubuntu-touch/hooks/99-remove-lists.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +# remove-lists: Remove all apt lists for space as our apport does not need them +# +# Author: Ɓukasz 'sil2100' Zemczak +# Date : September 22, 2015 + +echo "Removing /var/lib/apt/lists/*" +find /var/lib/apt/lists/ -type f | xargs rm -f