Conversation
a23b390 to
ec0d2b4
Compare
f62c07f to
72be7d9
Compare
|
Waiting on canonical/snapd#12345 |
Was merged. |
alfonsosanchezbeato
left a comment
There was a problem hiding this comment.
Looks nice! I have some comments, in general I think we should try to minimize the references to coreXX to just core/base whenever possible so this is less annoying in the future.
Makefile
Outdated
| if [ -e /build/core22 ]; then \ | ||
| /bin/cp $(DESTDIR)/usr/share/snappy/dpkg.list /build/core22/core22-$$(date +%Y%m%d%H%M)_$(DPKG_ARCH).manifest; \ | ||
| /bin/cp $(DESTDIR)/usr/share/snappy/dpkg.yaml /build/core22/core22-$$(date +%Y%m%d%H%M)_$(DPKG_ARCH).dpkg.yaml; \ | ||
| if [ -e /build/core24 ]; then \ |
There was a problem hiding this comment.
Could we have a makefile variable to avoid us repeting the current base too much?
| > /etc/apt/sources.list.d/ubuntu-image.list | ||
|
|
||
| cat >/etc/apt/trusted.gpg.d/ucdev-base-ppa.asc <<'EOF' | ||
| if false; then |
There was a problem hiding this comment.
Why are not we doing this anymore?
There was a problem hiding this comment.
The PPA does not exist yet. It would fail.
There was a problem hiding this comment.
Well, it exists, but maybe is it failing because there is no kinetic package in the PPA? Please add some TODO it that is the case.
There was a problem hiding this comment.
Would be nice to open a PR readding this so it's visible
There was a problem hiding this comment.
Ah, re-adding. Well it will be needed once we need to backport some packages. Which is probably not going to happen until we get close to or passed 24.04. It does not need to be re-added if we do not have any package.
There was a problem hiding this comment.
Ah yes, excuse my lack of hyphen, that definitely reads wrong. I just wanted to make sure that it's added again if neccessary, but then a TODO is probably good enough,
snapcraft.yaml
Outdated
| - LTS: jammy | ||
| - BASE: ${LTS}-base-${CRAFT_TARGET_ARCH}.tar.gz | ||
| - DIR_URL: https://cdimage.ubuntu.com/ubuntu-base/${LTS}/daily/current | ||
| - LTS: "22.10" |
There was a problem hiding this comment.
Nitpick: not really an LTS now, maybe this should be named differently
tests/lib/prepare-uc.sh
Outdated
|
|
||
| # install dependencies | ||
| install_core22_deps | ||
| install_core24_deps |
There was a problem hiding this comment.
Renaming to install_base_deps would be nice
|
|
||
| # download snaps required for us to build the image | ||
| download_core22_snaps "$SNAP_BRANCH" | ||
| download_core24_snaps "$SNAP_BRANCH" |
There was a problem hiding this comment.
download_base_snaps or similar
There was a problem hiding this comment.
Well, given the implementation is only for core24, I am not sure I want to change that.
tests/lib/prepare-uc.sh
Outdated
|
|
||
| # finally build the uc image | ||
| build_core22_image | ||
| build_core24_image |
There was a problem hiding this comment.
build_base_image or similar
.github/workflows/tests.yaml
Outdated
| repository: 'snapcore/snapd' | ||
| repository: 'valentindavid/snapd' | ||
| path: snapd | ||
| ref: 'de7785a57c3517d8d08700ed638709509b1148a6' |
There was a problem hiding this comment.
This should not be needed now, right?
|
|
||
| # get the model | ||
| curl -o ubuntu-core-amd64-dangerous.model https://raw.githubusercontent.com/snapcore/models/master/ubuntu-core-22-amd64-dangerous.model | ||
| #curl -o ubuntu-core-amd64-dangerous.model https://raw.githubusercontent.com/snapcore/models/master/ubuntu-core-24-amd64-dangerous.model |
There was a problem hiding this comment.
Maybe add a TODO here to get it from the models repo when we have the modle there?
| # download neccessary images | ||
| snap download pc-kernel --channel=22/${snap_branch} --basename=upstream-pc-kernel | ||
| snap download pc --channel=22/${snap_branch} --basename=upstream-pc-gadget | ||
| unsquashfs -d upstream-pc-gadget upstream-pc-gadget.snap |
There was a problem hiding this comment.
Please add TODO for when the 24 channel is available
92a571b to
c4b53b1
Compare
pc gadget is not yet available for core24 branch
c4b53b1 to
4ecf8e3
Compare
No description provided.