~ubuntu-core-dev/livecd-rootfs/trunk

« back to all changes in this revision

Viewing changes to live-build/ubuntu-core/hooks/600-no-debian.binary

  • Committer: Balint Reczey
  • Date: 2019-01-31 08:14:49 UTC
  • Revision ID: balint.reczey@canonical.com-20190131081449-ptfnz0r4c2emh0nt
Moved to git at https://git.launchpad.net/livecd-rootfs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# removing debian packaging artifacts
4
 
 
5
 
set -ex
6
 
 
7
 
echo "I: Removing the debian legacy"
8
 
 
9
 
PREFIX=binary/boot/filesystem.dir
10
 
 
11
 
# store manifest of all installed packages
12
 
(cd $PREFIX
13
 
 install -m755 -d usr/share/snappy
14
 
 chroot . dpkg -l > usr/share/snappy/dpkg.list
15
 
)
16
 
 
17
 
# dpkg-deb and dpkg purposefully left behind
18
 
(cd $PREFIX
19
 
    chroot . dpkg --purge apt
20
 
    rm -r \
21
 
        var/lib/dpkg \
22
 
        var/log/apt
23
 
    rm \
24
 
        usr/bin/dpkg-query \
25
 
        usr/bin/dpkg-split \
26
 
        usr/bin/dpkg-divert \
27
 
        usr/bin/dpkg-trigger \
28
 
        usr/bin/dpkg-statoverride \
29
 
        usr/bin/dpkg-maintscript-helper
30
 
)