Commit Graph

136 Commits

Author SHA1 Message Date
Fredrik Lönnegren f132230beb Update copyright year (2025)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2025-01-07 16:43:28 +01:00
Fredrik Lönnegren c4bf7c5f45 Bump npm autoprefixer to 10.0.0
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-10-28 13:13:02 +01:00
Fredrik Lönnegren 5456862778 Bump postcss to v8
In order to close a dependabot security-alert.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-10-25 09:53:48 +02:00
Fredrik Lönnegren 72fef82320 Update docs npm packages
Updates braces which closes a dependabot security warning with severity
'High'.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-10-23 13:09:50 +02:00
Andrea Mazzotti fa2306d632
Implement state subcommand (#2182)
* Implement state subcommand

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-09-13 08:59:30 +02:00
Andrea Mazzotti dc52491a14
Add user defined labels to snapshot info (#2175)
* Add user defined labels to snapshot info

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-09-12 14:43:00 +02:00
Andrea Mazzotti 265cf01883
Add build-disk documentation (#2164)
* Add build-disk documentation

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-08-21 08:43:24 +02:00
Fredrik Lönnegren 3fd2046a43
Update SELinux docs (#2075) 2024-05-10 16:08:03 +02:00
Fredrik Lönnegren 786cfa636c Update embedded features docs
Adds grub-default-bootargs, boot-assessment and autologin to the list of
features.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-04-30 17:49:39 +02:00
Andrea Mazzotti d0ad101463
Document cloud-config-defaults for SELinux support (#2046)
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-04-17 15:25:47 +02:00
Andrea Mazzotti 6e7181626e Fix doc typo
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-03-25 15:05:45 +01:00
Francesco Giudici 16255142f8
docs: fix build-iso example (#2026)
add the "--bootloader-in-rootfs" flag

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2024-03-25 09:06:03 +01:00
Fredrik Lönnegren 9231c8f3e0
Remove deprecated feature immutable-rootfs (#2007)
* 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>
2024-03-13 15:27:05 +00:00
David Cassany Viladomat c05f5d4913
bump elemental-toolkit to v2 (#1969)
* 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>
2024-03-08 09:14:56 +01:00
Marcus Furlong b4248226b1
fix broken link (#1985)
Signed-off-by: Marcus Furlong <furlongm@gmail.com>
2024-03-05 09:17:12 +01:00
Andrea Mazzotti 2c5be14ee1
Add upgrade-recovery subcommand (#1974)
* 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>
2024-02-29 16:12:14 +01:00
Fredrik Lönnegren 698bf2a950 Regenerate docs
There was an error-code duplicate which made the docs-publishing error
out.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-02-22 12:42:29 +01:00
Fredrik Lönnegren cd4e009b88 Update copyright year (2024)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-01-09 09:44:34 +01:00
Fredrik Lönnegren 2360815df8
More documentation work (#1819)
* 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>
2023-08-31 14:36:37 +00:00
Fredrik Lönnegren 5e82697a77
Fix docs
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-06-17 09:30:47 +02:00
Fredrik Lönnegren d18b8f6edd
Use toolkit files (#1788)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-06-16 19:09:00 +02:00
Fredrik Lönnegren bb36cc442c Remove old features docs
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-06-05 14:36:46 +02:00
Fredrik Lönnegren b3d140e829 Fix docs
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-06-05 13:49:01 +02:00
Fredrik Lönnegren ab064b6567
Update docsy to latest version (#1786)
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>
2023-06-05 13:23:35 +02:00
Fredrik Lönnegren 78d856f2d2
Publish docs to gh-pages (#1783) 2023-06-02 17:47:56 +02:00
Fredrik Lönnegren 5f4381a0e3
Update documentation (#1778)
* 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>
2023-06-02 14:40:49 +02:00
Fredrik Lönnegren 63ba688ae3 Update docs
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>
2023-05-24 09:30:35 +02:00
Fredrik Lönnegren 1262bcd099 Move elemental-cli into elemental-toolkit module
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-05-16 09:43:57 +02:00
Fredrik Lönnegren 78ee712b1a Merge remote-tracking branch 'cli/main' into merge-cli 2023-05-12 10:43:13 +02:00
Elemental CI [bot] 56b83d45d7
[auto] Update cmd docs (#479)
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: frelon <frelon@users.noreply.github.com>
2023-04-26 12:43:14 +02:00
Fredrik Lönnegren 81582de394
Add multi-arch support for pulling images (#478)
* 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>
2023-04-26 12:07:18 +02:00
Elemental CI [bot] b49cc4281f
[auto] Update cmd docs (#472)
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: davidcassany <davidcassany@users.noreply.github.com>
2023-04-11 14:06:01 +02:00
Fredrik Lönnegren 63e8c41d1c Small changes after PR feedback
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-03-15 11:13:18 +01:00
Fredrik Lönnegren d2ce4ac291 Docs: Add section for grub_oem_env file
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-03-15 11:13:18 +01:00
Fredrik Lönnegren a81938a3b7 Update GRUB2 docs
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>
2023-03-15 11:13:18 +01:00
Fredrik Lönnegren 5c57b37601
Delete new-cmd (#444)
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>
2023-03-01 14:28:12 +01:00
Fredrik Lönnegren 19a9832efe
Set labels used by grub to find system disks (#414)
* 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>
2023-02-07 10:29:40 +00:00
davidcassany ce0b63ef15 [auto] Update cmd docs
Signed-off-by: GitHub <noreply@github.com>
2023-02-02 11:19:42 +01:00
frelon d1dbe00f69 [auto] Update cmd docs
Signed-off-by: GitHub <noreply@github.com>
2023-01-18 10:07:32 +01:00
David Cassany be54c0707f Use year range in copyright headers instead of just bumping the year
Signed-off-by: David Cassany <dcassany@suse.com>
2023-01-12 11:13:33 +01:00
David Cassany 408d2ab56f Bump year in copyright headers
Signed-off-by: David Cassany <dcassany@suse.com>
2023-01-12 11:13:33 +01:00
cOS-ci [bot] d809a0ca0f
[auto] Update cmd docs (#383)
Co-authored-by: davidcassany <davidcassany@users.noreply.github.com>
2022-12-22 10:18:41 +01:00
David Cassany Viladomat 7e846c04ed
Bump elemental-cli (#1682)
* Bump elemental-cli
* Update hooks docs

Signed-off-by: David Cassany <dcassany@suse.com>
2022-12-21 15:15:19 +01:00
Fredrik Lönnegren 70cd8135fc
More documentation (#1671)
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>
2022-12-12 16:28:13 +00:00
Fredrik Lönnegren 1d7cdd6f3e
Update documentation (#1653) 2022-11-23 15:53:05 +01:00
Fredrik Lönnegren 1342bae7ee
Add LUET_NOLOCK for example Dockerfile (#1651)
* 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>
2022-11-22 15:23:09 +01:00
Fredrik Lönnegren d145f9f0da
More exit codes (#376)
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>
2022-11-18 08:18:22 +00:00
Fredrik Lönnegren 0d0f9a7a7f
docs: Small changes (#1645)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2022-11-17 12:58:55 +01:00
Fredrik Lönnegren 18efe016d3
cli: Add exit-codes for reset command (#375)
cli: Add exit-codes for reset command

Fixes #368

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2022-11-16 09:18:37 +01:00
Fredrik Lönnegren 1ad96868c0
cli: Add exit-codes to install command (#374)
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>
2022-11-15 15:24:49 +01:00