Commit Graph

27 Commits

Author SHA1 Message Date
renovate[bot]
13f69a19f9
Update quay.io/kairos/osbuilder-tools Docker tag to v0.10.2 (#186)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 12:17:07 +01:00
renovate[bot]
638c0b6c98 Update golangci/golangci-lint Docker tag to v1.55.2 2023-11-03 22:24:17 +00:00
renovate[bot]
2153dab99a
Update golangci/golangci-lint Docker tag to v1.55.1 (#175)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-27 10:12:20 +02:00
renovate[bot]
cf5112e493
Update quay.io/kairos/osbuilder-tools Docker tag to v0.9.0 (#170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-16 16:34:08 +02:00
Itxaka
8773c5b6ad
Improvements on earthly targets and CI (#165) 2023-09-26 11:43:08 +02:00
renovate[bot]
399a7185e9
Update quay.io/kairos/osbuilder-tools Docker tag to v0.8.6 (#164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-26 11:10:57 +02:00
renovate[bot]
7f582fbc00
Update golangci/golangci-lint Docker tag to v1.54.2 (#163)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-26 11:10:46 +02:00
Itxaka
0811f0f054
Increase compatibility with alpine systems (#132) 2023-05-30 21:51:03 +02:00
Itxaka
d59fa6789c
Set logger before running the version command (#125) 2023-05-08 16:13:31 +02:00
Itxaka
aa5939da89
Rework workflow (#77)
This makes immucore run more in parallel rather than block everything
else. We just tell sysroot.mount that eventually it will be mounted and
to wait for a bit.

This allows us to be more flexible where to run and run in parallel in
cases like cdrom in which we may do things but we need the sysroot to be
mounted already but not from us.

Also adds the initramfs stage directly in immucore and merges all the dracut config into one

    Dont create sysroot, just add a timeout override so it waits for us
    Dont block on the service, just make sure to finish before
    initrd.target
    Fix mounts from cmdline
    More proper log
    Store logs under the /run/immucore dir
    Store rootfs and initramfs logs separated
    Do not log the full stages in INFO level
    Run initramfs stage in immucore directly on boot and cd/netboot
    Drop systemd requirement from dracut module

Signed-off-by: Itxaka itxaka.garcia@spectrocloud.com
2023-03-08 11:45:11 +01:00
Itxaka
167cf5fa0d
🐛 Fix coverage (#76)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-02 19:33:11 +01:00
Itxaka
fecfbf8e92
Add tests and fix some issues that arised from testing (#74)
* Add tests and fix some issues that arised from testing

Mainly around the cmdargs and how many items it returns.
Also drop the iso target and jobs as its not necessary now

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Lint

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-02 16:46:25 +01:00
Itxaka
91d6fa6945 Add version command and fix commit version
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-02-16 15:43:33 +01:00
Itxaka
bc53b0de3a Workaround for kairos sdk not detecting netboot
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-02-16 15:30:54 +01:00
Itxaka
ad014e9f22
Full rework (#41)
* Full rework

 - Extract steps to a different file
 - Simplify dag for easy understanding
 - Load dag based on our boot process
 - Simplify steps to not depend on useless stuff
 - Better logging

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Move sentinel file to the dag

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Adapt tests

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-02-15 22:30:08 +01:00
Itxaka
56632ca277
Add extra files needed for dracut (#36)
* Add extra files needed for dracut

If we are dropping cos-immutable-rootfs then we have to include the
missing files that the package already added.

For example, the several dracut configs of modules for the initramfs
stage, or the general config for the dracut file.

We also need to install and link the initramfs elemental stage service
as that its no longer provided by the cos-immutable-rootfs package and
not integrated into immucore yet

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Minor improvements

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-02-13 14:34:51 +01:00
Itxaka
109c1c745f Several fixes
- Set global debug log
 - Set caller in the log if debug
 - Fatal if cannot get target image
 - clean up slices from cos-layoout.env
 - Add generic log with more context info
 - dump runtime to log on start
 - Set proper default paths if overlay is empty (fixes recovery)
 - Fix ErrAlreadyMounted to not trigger failures

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-09 15:16:53 +01:00
Itxaka
ed6614b6c7 Remove cos-immutable-rootfs by default when building the iso
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-09 08:56:26 +01:00
Itxaka
717851b0b2 +x generator.sh
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-07 16:48:34 +01:00
Itxaka
14e0faacee Fix dracut service install
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 21:58:59 +01:00
Itxaka
7d539b63f4 more
more logging
run as dry-run
print version
remove nouser opt

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 17:24:50 +01:00
Itxaka
67fdfa8df5 Allow removing the cos-immutable-rootfs on dracut build
For easy debugging
Also fixes missing stuff on dracut build to be able to still run the
cos-setup-rootfs/initramfs services and adds the missing elemental
binary to the initramfs.
As we remove the cos-immutable-rootfs module for dracut then both the
services and binary doesnt get included.

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 11:29:28 +01:00
Itxaka
e0e1bac4dd use rootfs for iso building
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-04 09:06:23 +01:00
Itxaka
106dd9b560 More improvements
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-03 18:14:15 +01:00
Itxaka
2a4153e48b Small improvements to earth files
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-03 17:57:56 +01:00
mudler
d767523565 Add simple test suite 2023-02-02 15:12:33 +01:00
mudler
80cb803940 Add dracut/Earthfile skel 2023-02-01 22:34:07 +01:00