mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-09 17:11:35 +00:00
ubuntu-cpc: Reintroduce the -root.tar.xz artifact (LP: #1585233).
This commit is contained in:
commit
63ec8ad163
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
livecd-rootfs (2.530) cosmic; urgency=medium
|
||||||
|
|
||||||
|
* ubuntu-cpc: Reintroduce the -root.tar.xz artifact (LP: #1585233).
|
||||||
|
|
||||||
|
-- Daniel Watkins <oddbloke@ubuntu.com> Wed, 06 Jun 2018 11:21:57 -0700
|
||||||
|
|
||||||
livecd-rootfs (2.529) cosmic; urgency=medium
|
livecd-rootfs (2.529) cosmic; urgency=medium
|
||||||
|
|
||||||
* Improvements to the ubuntu-base (i.e. Docker) build:
|
* Improvements to the ubuntu-base (i.e. Docker) build:
|
||||||
|
29
live-build/ubuntu-cpc/hooks/031-root-xz.binary
Normal file
29
live-build/ubuntu-cpc/hooks/031-root-xz.binary
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
# vi: ts=4 expandtab
|
||||||
|
#
|
||||||
|
# Generate the rootfs.tar.xz and manifest
|
||||||
|
|
||||||
|
if [ -n "$SUBARCH" ]; then
|
||||||
|
echo "Skipping rootfs build for subarch flavor build"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
. config/functions
|
||||||
|
|
||||||
|
tardir=filesystem.dir
|
||||||
|
mkdir $tardir
|
||||||
|
cp -a chroot/* $tardir
|
||||||
|
|
||||||
|
setup_mountpoint $tardir
|
||||||
|
|
||||||
|
env DEBIAN_FRONTEND=noninteractive chroot $tardir apt-get --purge remove --assume-yes '^linux-.*' 'linux-base+'
|
||||||
|
env DEBIAN_FRONTEND=noninteractive chroot $tardir apt-get --purge remove --assume-yes '^grub-.*'
|
||||||
|
env DEBIAN_FRONTEND=noninteractive chroot $tardir apt-get autoremove --purge --assume-yes
|
||||||
|
|
||||||
|
teardown_mountpoint $tardir
|
||||||
|
|
||||||
|
dpkg-query --admindir=$tardir/var/lib/dpkg -W > livecd.ubuntu-cpc.rootfs.manifest
|
||||||
|
|
||||||
|
(cd "$tardir/" && tar -c *) | xz > "livecd.ubuntu-cpc.rootfs.tar.xz"
|
||||||
|
|
||||||
|
rm -rf $tardir
|
Loading…
x
Reference in New Issue
Block a user