livecd-rootfs/live-build/ubuntu-core/hooks/600-no-debian.binary
Ben Howard 2ace5b787b Import patches-unapplied version 2.374 to ubuntu/xenial-proposed
Imported using git-ubuntu import.

Changelog parent: b668a9f9f9048b0fa06523dc084d8fb308fcd9c5

New changelog entries:
  [ Michael Vogt ]
  * ubuntu-core:
    - include the dpkg.list in the device tarball
    - store /usr/share/snappy/dpkg.list manifest on the OS tarball
  [ Dimitri John Ledkov ]
  * ubuntu-cpc:
    - exclude s390x from should_install_grub
  [ Steve Langasek ]
  * Refactor/reorder ubuntu-cpc support for consistency with other flavors,
    so that subarch overrides can be applied correctly.
  [ Ben Howard ]
  * ubuntu-cpc:
    - fixed loop setup due to change of kpartx output
    - only use grub-install logic for Intel architectures
2016-02-02 22:18:53 +00:00

31 lines
621 B
Bash
Executable File

#!/bin/sh
#
# removing debian packaging artifacts
set -ex
echo "I: Removing the debian legacy"
PREFIX=binary/boot/filesystem.dir
# store manifest of all installed packages
(cd $PREFIX
install -m755 -d usr/share/snappy
chroot . dpkg -l > usr/share/snappy/dpkg.list
)
# 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
)