* Remove deprecated feature immutable-rootfs
Immutable-rootfs is deprecated in favor of elemental-rootfs feature.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Fix flaky downgrade test
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
---------
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* bump elemental-toolkit to v2
Signed-off-by: David Cassany <dcassany@suse.com>
* Move pkg/types/v2 to simply pkg/types
This commit leaves the code with a single set of types
and in refers to it as the types packge instead of
v1 or v2.
For the time being we do not foresee managing more
than one single major version of type within the
same code.
Signed-off-by: David Cassany <dcassany@suse.com>
* Stop referring to mocks package as v2mock in favor of simply 'mocks'
Signed-off-by: David Cassany <dcassany@suse.com>
* Fix leftovers after rebase
Signed-off-by: David Cassany <dcassany@suse.com>
---------
Signed-off-by: David Cassany <dcassany@suse.com>
* Implement to upgrade-recovery sub command
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
* Update Upgrade documentation
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
---------
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
* More documentation work
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Improve multi-arch handling
GRUB_ARCH can be calculated in runtime, this makes toolkit Dockerfile
and green-example Dockerfile able to be built with buildx
--platform=linux/amd64,linux/arm64 flag at the same time.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
---------
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
This commit makes the `make build-docs` work without errors again.
The docsy submodule was updated and added an npm-install step to
download dependencies used by docsy.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Update documentation
Remove old usages of luet/luet-makeiso and channel.
Goes through the Examples and updates the usage to reflect the latest
changes of the toolkit.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Changes to golangci-config
Disable all linters by default and add back the current default ones.
This is done in order to prevent new default linters in the
golangci-lint to take effect without noticing.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Also push elemental-cli on release to ghcr.io
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
---------
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
Removes old mentions of channels and luet.
Also some cleanup and start to remove images containing cos-toolkit etc.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Add multi-arch support for pulling images
This commit refactors the image pulling and extracting to be able to
cross-build isos.
In order to do this we make use of go-containerregistry and containerd
to pull and extract the image.
This refactor also removes alot of luet functionality mostly used for
build-disk command which has been deprecated.
* Introduce Platform struct
Keep --arch flag and use both --arch and --platform to parse into new
struct.
The struct keeps both arch and golang-arch, since x86_64 and amd64 are
used in different contexts (grub/efi artifacts vs container platforms).
If both --arch and --platform are specified platform takes precedence.
Platform flags are also added to install-command in order to be able to
cross-arch install to loopback-devices.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
Much has happened and we no longer want to support searching for
grub-config files by default.
Also grubmenu file has been thrown out and grubcustom should be used
instead.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
The new command is quite old and not used much anymore. It's also
implemented with huge third-party dependencies that are only used by
that command.
This commit removes the new-cmd and the dependencies.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Set labels used by grub to find system disks
This commit sets GRUB persistent variables for filesystem labels after
install/upgrade/reset. These labels are used in the new GRUB
configuration when booting the system.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Changes to recovery/system grub-labels
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Add grub persisten_label
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Try fixing test panic
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Refactor GRUB labels
Add spec->map conversion and tests.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Use same constants package in install action
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Add upgrade tests for grub labels
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Add reset test for grub labels
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
---------
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
Some minor typos, and updating old links.
Also removed some BIOS mention because it's no longer supported.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Add LUET_NOLOCK for example Dockerfile
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Update LUET_VERSION in examples
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
Use elemental-error in new, run-stage, pull-image, cloud-init, convert-disk and build-iso commands.
Fixes#366, #369, #367, #363, #364, #361
If duplicate exit-codes are used in pkg/errors/exit-codes.go the `make
build_docs` will now exit with an error.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
cli: Add exit-codes to install command
Fixes#365
* Refactor power-action for upgrade and install because of gocyclo lint
* Refactor build-disk to use regular error
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>