livecd-rootfs/live-build/ubuntu-touch/hooks/99-remove-lists.binary
Michael Vogt 5e6b71b87b Import patches-unapplied version 2.360 to ubuntu/xenial-proposed
Imported using git-ubuntu import.

Changelog parent: 197a5ea75104cda2c0d563cd504a51710be385ad

New changelog entries:
  [ Michael Vogt ]
  * live-build/ubuntu-core/hooks/01-setup_user.chroot:
    - add default ubuntu user to "adm" and "sudo" groups
  [ Łukasz 'sil2100' Zemczak ]
  * Fix the previous apt list removal hook. This hook needs to
    be .binary as otherwise we're still left with apt lists when
    the image is published.
2015-12-07 10:44:29 +00:00

9 lines
308 B
Bash
Executable File

#!/bin/sh
# remove-lists: Remove all apt lists for space as our apport does not need them
#
# Author: Łukasz 'sil2100' Zemczak <achiang@canonical.com>
# Date : September 22, 2015
echo "Removing /var/lib/apt/lists/* from the binary"
find binary/boot/filesystem.dir/var/lib/apt/lists/ -type f | xargs rm -f