mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-12-17 17:13:34 +00:00
Imported using git-ubuntu import. Changelog parent: 4feb62da463427ed51fed8562a1597ea25e4e8cd New changelog entries: [ Steve Langasek ] * generate all tar files with --xattrs. LP: #1302192. [ Daniel Watkins ] * ubuntu-cpc: Reintroduce the -root.tar.xz artifact (LP: #1585233). * ubuntu-cpc: Generate the root image contents once, and use it for both the -root.tar.xz and the .squashfs. * ubuntu-cpc: Generate -root.tar.xz with --xattrs.
27 lines
775 B
Bash
27 lines
775 B
Bash
#!/bin/bash -ex
|
|
# vi: ts=4 expandtab
|
|
#
|
|
# Generate the root directory/manifest for rootfs.tar.xz and squashfs
|
|
|
|
if [ -n "$SUBARCH" ]; then
|
|
echo "Skipping rootfs build for subarch flavor build"
|
|
exit 0
|
|
fi
|
|
|
|
. config/functions
|
|
|
|
rootfs_dir=rootfs.dir
|
|
mkdir $rootfs_dir
|
|
cp -a chroot/* $rootfs_dir
|
|
|
|
setup_mountpoint $rootfs_dir
|
|
|
|
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get --purge remove --assume-yes '^linux-.*' 'linux-base+'
|
|
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get --purge remove --assume-yes '^grub-.*'
|
|
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get autoremove --purge --assume-yes
|
|
rm -rf $rootfs_dir/boot/grub
|
|
|
|
teardown_mountpoint $rootfs_dir
|
|
|
|
dpkg-query --admindir=$rootfs_dir/var/lib/dpkg -W > $rootfs_dir.manifest
|