Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify an image to cos-installer #851

Merged
merged 2 commits into from
Nov 12, 2021
Merged

Conversation

mudler
Copy link
Contributor

@mudler mudler commented Nov 8, 2021

By making cos-installer capable to take container images in place of the ISO content, we are untying the installer from the ISO. This has two benefit:

  1. the installer can be used to deploy cOS (and any derivative) outside of the ISO context, also standalone. For instance, IF in a booting (e.g. a 3rd party) LiveCD we can run docker, we could install cOS by using the installer inside our container image, specifying the partition and the image to deploy (I'll work on instructions later)
  2. remove code dups. cos-deploy was partially crossing with cos-installer. The only difference is that cos-deploy doesn't format, and just copy an image during install, which now cos-installer is capable of too as well.

This commit drops cos-deploy * logics, but keeps the wrapper by calling cos-installer accordingly.

Additionally, cos-installer now accepts: --docker-image, --no-verify and --no-cosign

@mudler mudler linked an issue Nov 8, 2021 that may be closed by this pull request
@mudler mudler force-pushed the cos-install-image branch 11 times, most recently from 977c4be to da3080a Compare November 11, 2021 09:20
@mudler mudler requested a review from Itxaka November 11, 2021 09:23
@mudler mudler marked this pull request as ready for review November 11, 2021 09:23
@mudler
Copy link
Contributor Author

mudler commented Nov 11, 2021

@Itxaka should be good for a first review. Tests are still not passing, but I think I've got almost all of them fixed in the last push

packages/installer/cos.sh Outdated Show resolved Hide resolved
@Itxaka
Copy link
Contributor

Itxaka commented Nov 11, 2021

Looking good to me for now. Do you plan to add tests to the installer for this new feature? 😉

@mudler
Copy link
Contributor Author

mudler commented Nov 11, 2021

Looking good to me for now. Do you plan to add tests to the installer for this new feature? wink

I thought at it, but then, the feature is actually tested by cos-deploy tests

@mudler mudler force-pushed the cos-install-image branch 3 times, most recently from 49c0099 to 7348bec Compare November 11, 2021 16:30
@mudler
Copy link
Contributor Author

mudler commented Nov 11, 2021

@Itxaka deploy-image and raw deploy tests passed 🎉 (there was just some flakyness, as some failed for network issues :/ )

@mudler mudler enabled auto-merge (squash) November 11, 2021 16:50
Copy link
Contributor

@Itxaka Itxaka left a comment

Choose a reason for hiding this comment

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

Sorry, I thought I already reviewed this!

@mudler mudler disabled auto-merge November 11, 2021 22:07
@mudler mudler force-pushed the cos-install-image branch 2 times, most recently from 44fcd1c to 632d766 Compare November 12, 2021 12:00
- Make sure to find installation channel only if we are booting from live or we provide an image
- Prepare recovery only if we are not booting from it
- Don't try to find upgrade channel if we specified an ISO url

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
@mudler mudler enabled auto-merge (squash) November 12, 2021 13:54
@mudler mudler merged commit d5c51f3 into master Nov 12, 2021
@mudler mudler deleted the cos-install-image branch November 12, 2021 21:17
@mudler
Copy link
Contributor Author

mudler commented Nov 15, 2021

Docs at rancher-sandbox/cos-toolkit-docs#59

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.

Add option to cos-installer to deploy a specific image
2 participants