mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-08 17:31:38 +00:00
Import patches-unapplied version 2.383 to ubuntu/xenial-proposed
Imported using git-ubuntu import. Changelog parent: a12aef0695b89d7deb3d53c71464a122d52b053d New changelog entries: * add snap cration for ubuntu-core snappy rootfs builds
This commit is contained in:
parent
a12aef0695
commit
24f93cf89e
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,7 +1,13 @@
|
|||||||
|
livecd-rootfs (2.383) xenial; urgency=medium
|
||||||
|
|
||||||
|
* add snap cration for ubuntu-core snappy rootfs builds
|
||||||
|
|
||||||
|
-- Oliver Grawert <ogra@ubuntu.com> Tue, 08 Mar 2016 16:43:45 +0100
|
||||||
|
|
||||||
livecd-rootfs (2.382) xenial; urgency=medium
|
livecd-rootfs (2.382) xenial; urgency=medium
|
||||||
|
|
||||||
* Remove the manta device from the list of touchsubarches as we're not
|
* Remove the manta device from the list of touchsubarches as we're not
|
||||||
building its kernel anymore (LP: #1553069).
|
building its kernel anymore.
|
||||||
|
|
||||||
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Fri, 04 Mar 2016 09:47:31 +0100
|
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Fri, 04 Mar 2016 09:47:31 +0100
|
||||||
|
|
||||||
|
@ -319,6 +319,32 @@ elif [ -e binary-tar.tar.gz ]; then
|
|||||||
cp -a binary-tar.tar.gz "$PREFIX.rootfs.tar.gz"
|
cp -a binary-tar.tar.gz "$PREFIX.rootfs.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$PROJECT:$SUBPROJECT" = "ubuntu-core:system-image" ]; then
|
||||||
|
if [ -e "binary/$INITFS/filesystem.dir" ]; then
|
||||||
|
rootfs="binary/$INITFS/filesystem.dir"
|
||||||
|
|
||||||
|
for dir in lib/modules lib/firmware writable meta; do
|
||||||
|
mkdir -p $rootfs/$dir
|
||||||
|
done
|
||||||
|
|
||||||
|
VERSION="$(lsb_release -r -s)-$(date +20%y%m%d-%H-%M)"
|
||||||
|
|
||||||
|
cat > $rootfs/meta/snap.yaml <<EOF
|
||||||
|
name: ubuntu-core
|
||||||
|
version: $VERSION
|
||||||
|
summary: The ubuntu-core OS snap
|
||||||
|
architectures: [$ARCH]
|
||||||
|
type: os
|
||||||
|
EOF
|
||||||
|
|
||||||
|
apt-get -y install ubuntu-snappy-cli
|
||||||
|
snappy build --squashfs $rootfs
|
||||||
|
|
||||||
|
snapfile="$(ls ubuntu-core*.snap)"
|
||||||
|
cp -a $snapfile $PREFIX.$snapfile
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-pd" ]; then
|
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-pd" ]; then
|
||||||
(cd "binary/$INITFS/custom.dir/" && tar -c *) | \
|
(cd "binary/$INITFS/custom.dir/" && tar -c *) | \
|
||||||
gzip -9 --rsyncable > "$PREFIX.custom.tar.gz"
|
gzip -9 --rsyncable > "$PREFIX.custom.tar.gz"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user