mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-06 15:42:31 +00:00
Imported 2.541
No reason for CPC update specified.
This commit is contained in:
parent
4bb325f107
commit
e453f96548
11
debian/changelog
vendored
11
debian/changelog
vendored
@ -1,3 +1,14 @@
|
|||||||
|
livecd-rootfs (2.541) cosmic; urgency=medium
|
||||||
|
|
||||||
|
[ Michael Hudson-Doyle ]
|
||||||
|
* Remove device nodes from Docker images. (LP: #1645468)
|
||||||
|
|
||||||
|
[ Robert C Jennings ]
|
||||||
|
* Add the server snap seed to the ubuntu-cpc project
|
||||||
|
* Allow hooks to replace generic snap assertion
|
||||||
|
|
||||||
|
-- Steve Langasek <steve.langasek@ubuntu.com> Thu, 27 Sep 2018 15:21:49 -0700
|
||||||
|
|
||||||
livecd-rootfs (2.540) cosmic; urgency=medium
|
livecd-rootfs (2.540) cosmic; urgency=medium
|
||||||
|
|
||||||
* Ensure /lib/modules exists in root tarballs and sqashfs.
|
* Ensure /lib/modules exists in root tarballs and sqashfs.
|
||||||
|
@ -266,6 +266,11 @@ EOF
|
|||||||
# Save even more size by removing apt lists (that are currently removed
|
# Save even more size by removing apt lists (that are currently removed
|
||||||
# downstream anyway)
|
# downstream anyway)
|
||||||
rm -rf chroot/var/lib/apt/lists/*
|
rm -rf chroot/var/lib/apt/lists/*
|
||||||
|
# Having device notes in the docker image can cause problems
|
||||||
|
# (https://github.com/tianon/docker-brew-ubuntu-core/issues/62)
|
||||||
|
# so remove them. We only do this for docker out of an
|
||||||
|
# abundance of caution.
|
||||||
|
rm -rf chroot/dev/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f config/universe-enabled ]; then
|
if [ -f config/universe-enabled ]; then
|
||||||
|
@ -696,6 +696,9 @@ case $PROJECT:${SUBPROJECT:-} in
|
|||||||
ubuntu:*|kubuntu*:*|lubuntu*:*|xubuntu*:*|ubuntu-mate*:*|ubuntustudio*:*|ubuntukylin*:*|ubuntu-budgie*:*)
|
ubuntu:*|kubuntu*:*|lubuntu*:*|xubuntu*:*|ubuntu-mate*:*|ubuntustudio*:*|ubuntukylin*:*|ubuntu-budgie*:*)
|
||||||
BASE_SEED='desktop'
|
BASE_SEED='desktop'
|
||||||
;;
|
;;
|
||||||
|
ubuntu-cpc:*)
|
||||||
|
BASE_SEED='server'
|
||||||
|
;;
|
||||||
ubuntu-server:live)
|
ubuntu-server:live)
|
||||||
BASE_SEED='server'
|
BASE_SEED='server'
|
||||||
# subiquity is seeded but in a separate squashfs via hooks; set HOOK_SNAPS and ALL_SNAPS.
|
# subiquity is seeded but in a separate squashfs via hooks; set HOOK_SNAPS and ALL_SNAPS.
|
||||||
|
@ -427,6 +427,16 @@ snap_prepare_assertions() {
|
|||||||
local brand="$(echo $CUSTOM_BRAND_MODEL | cut -d: -f 1)"
|
local brand="$(echo $CUSTOM_BRAND_MODEL | cut -d: -f 1)"
|
||||||
local model="$(echo $CUSTOM_BRAND_MODEL | cut -d: -f 2)"
|
local model="$(echo $CUSTOM_BRAND_MODEL | cut -d: -f 2)"
|
||||||
|
|
||||||
|
# Clear the assertions if they already exist
|
||||||
|
if [ -e "$model_assertion" ] ; then
|
||||||
|
existing_model=$(awk '/^model: / {print $2}' $model_assertion)
|
||||||
|
existing_brand=$(awk '/^brand-id: / {print $2}' $model_assertion)
|
||||||
|
echo "snap_prepare_assertions: replacing $existing_brand:$existing_model with $brand:$model"
|
||||||
|
rm "$model_assertion"
|
||||||
|
rm "$account_key_assertion"
|
||||||
|
rm "$account_assertion"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! [ -e "$model_assertion" ] ; then
|
if ! [ -e "$model_assertion" ] ; then
|
||||||
snap known --remote model series=16 \
|
snap known --remote model series=16 \
|
||||||
model=$model brand-id=$brand \
|
model=$model brand-id=$brand \
|
||||||
@ -441,7 +451,6 @@ snap_prepare_assertions() {
|
|||||||
> "$account_key_assertion"
|
> "$account_key_assertion"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if ! [ -e "$account_assertion" ] ; then
|
if ! [ -e "$account_assertion" ] ; then
|
||||||
local account=$(sed -n -e's/account-id: //p' < "$account_key_assertion")
|
local account=$(sed -n -e's/account-id: //p' < "$account_key_assertion")
|
||||||
snap known --remote account account-id=$account \
|
snap known --remote account account-id=$account \
|
||||||
@ -468,13 +477,16 @@ snap_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
snap_preseed() {
|
snap_preseed() {
|
||||||
# Preseed a snap in the image
|
# Preseed a snap in the image (snap_prepare must be called once prior)
|
||||||
local CHROOT_ROOT=$1
|
local CHROOT_ROOT=$1
|
||||||
local SNAP=$2
|
local SNAP=$2
|
||||||
# Per Ubuntu policy, all seeded snaps (with the exception of the core
|
# Per Ubuntu policy, all seeded snaps (with the exception of the core
|
||||||
# snap) must pull from stable/ubuntu-$(release_ver) as their channel.
|
# snap) must pull from stable/ubuntu-$(release_ver) as their channel.
|
||||||
local CHANNEL=${3:-"stable/ubuntu-$(release_ver)"}
|
local CHANNEL=${3:-"stable/ubuntu-$(release_ver)"}
|
||||||
|
|
||||||
snap_prepare $CHROOT_ROOT
|
if [ ! -e "$CHROOT_ROOT/var/lib/snapd/seed/assertions/model" ]; then
|
||||||
|
echo "ERROR: Snap model assertion not present, snap_prepare must be called"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
_snap_preseed $CHROOT_ROOT $SNAP $CHANNEL
|
_snap_preseed $CHROOT_ROOT $SNAP $CHANNEL
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user