mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-12 22:07:10 +00:00
[ Sergio Schvezov ]
removing debian packaging artifacts from the image
This commit is contained in:
commit
6c641f01d2
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -1,6 +1,9 @@
|
||||
livecd-rootfs (2.319) UNRELEASED; urgency=medium
|
||||
|
||||
* copy set locale hook from core to desktop-next
|
||||
|
||||
[ Sergio Schvezov ]
|
||||
* removing debian packaging artifacts from the image
|
||||
|
||||
-- Sebastien Bacher <seb128@ubuntu.com> Fri, 26 Jun 2015 10:40:25 +0200
|
||||
|
||||
|
24
live-build/ubuntu-core/hooks/600-no-debian.binary
Executable file
24
live-build/ubuntu-core/hooks/600-no-debian.binary
Executable file
@ -0,0 +1,24 @@
|
||||
#!/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
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user