Skip to content

Now build core24#90

Merged
valentindavid merged 4 commits intocanonical:mainfrom
valentindavid:valentindavid/core24
Feb 17, 2023
Merged

Now build core24#90
valentindavid merged 4 commits intocanonical:mainfrom
valentindavid:valentindavid/core24

Conversation

@valentindavid
Copy link
Contributor

No description provided.

@valentindavid valentindavid force-pushed the valentindavid/core24 branch 8 times, most recently from a23b390 to ec0d2b4 Compare November 23, 2022 12:46
@valentindavid
Copy link
Contributor Author

Waiting on canonical/snapd#12345

@valentindavid valentindavid marked this pull request as ready for review February 8, 2023 11:29
@valentindavid
Copy link
Contributor Author

Waiting on snapcore/snapd#12345

Was merged.

Copy link
Member

@alfonsosanchezbeato alfonsosanchezbeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have a makefile variable to avoid us repeting the current base too much?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

> /etc/apt/sources.list.d/ubuntu-image.list

cat >/etc/apt/trusted.gpg.d/ucdev-base-ppa.asc <<'EOF'
if false; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are not we doing this anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PPA does not exist yet. It would fail.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to open a PR readding this so it's visible

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: not really an LTS now, maybe this should be named differently


# install dependencies
install_core22_deps
install_core24_deps

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renaming to install_base_deps would be nice

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


# download snaps required for us to build the image
download_core22_snaps "$SNAP_BRANCH"
download_core24_snaps "$SNAP_BRANCH"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

download_base_snaps or similar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, given the implementation is only for core24, I am not sure I want to change that.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that's fine


# finally build the uc image
build_core22_image
build_core24_image

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build_base_image or similar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

repository: 'snapcore/snapd'
repository: 'valentindavid/snapd'
path: snapd
ref: 'de7785a57c3517d8d08700ed638709509b1148a6'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be needed now, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed


# 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a TODO here to get it from the models repo when we have the modle there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

# 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add TODO for when the 24 channel is available

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@valentindavid valentindavid force-pushed the valentindavid/core24 branch 2 times, most recently from 92a571b to c4b53b1 Compare February 13, 2023 13:42
Copy link
Member

@alfonsosanchezbeato alfonsosanchezbeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@valentindavid valentindavid merged commit 6260c70 into canonical:main Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants