livecd-rootfs/live-build/ubuntu-cpc/hooks/031-1-root-xz.binary
Steve Langasek e032b0ae23 Import patches-unapplied version 2.525.6 to ubuntu/bionic-proposed
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.
2018-08-09 20:43:23 +00:00

16 lines
405 B
Bash

#!/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
# This is the directory created by 031-0-create-root-dir.binary
rootfs_dir=rootfs.dir
cp $rootfs_dir.manifest livecd.ubuntu-cpc.rootfs.manifest
(cd $rootfs_dir/ && tar -c --xattrs *) | xz > livecd.ubuntu-cpc.rootfs.tar.xz