livecd-rootfs/live-build/ubuntu-core/hooks/600-no-debian.binary
Sebastien Bacher a1743f9558 Import patches-unapplied version 2.319 to ubuntu/wily-proposed
Imported using git-ubuntu import.

Changelog parent: d286b4fed10a132f337d78ff064e6455256c3567

New changelog entries:
  * copy set locale hook from core to desktop-next
  
  [ Sergio Schvezov ]
  * removing debian packaging artifacts from the image
2015-06-26 08:48:18 +00:00

25 lines
481 B
Bash
Executable File

#!/bin/sh
#
# removing debian packaging artifacts
set -ex
echo "I: Removing the debian legacy"
PREFIX=binary/boot/filesystem.dir
# dpkg-deb and dpkg purposefully left behind
(cd $PREFIX
chroot . dpkg --purge apt
rm -r \
var/lib/dpkg \
var/log/apt
rm \
usr/bin/dpkg-query \
usr/bin/dpkg-split \
usr/bin/dpkg-divert \
usr/bin/dpkg-trigger \
usr/bin/dpkg-statoverride \
usr/bin/dpkg-maintscript-helper
)