Commit Graph

13 Commits

Author SHA1 Message Date
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
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
076bba95dc Set the sentinel file from immucore directly
Also add a missing livecd sentinel file

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-02-13 21:42:45 +01:00
Itxaka
23b4b8f69f Set sentinel file during generator
Some cloud init scripts may need it ASAP

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-08 18:24:02 +01:00
Itxaka
9dcf453764 Add a note to the generator sysroot.mount
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-07 21:58:53 +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
3afcffe42b Merge branch 'master' into changes_v4 2023-02-06 18:16:00 +01:00
mudler
74a433bb53 Hook the dracut service in the correct flow 2023-02-06 18:14:18 +01:00
Itxaka
e8750e527b Service files fixes
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 18:10:48 +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
8973979ceb Mark dracut modules executable
otherwise they refuse to run during initramfs :)

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-04 09:29:57 +01:00
mudler
80cb803940 Add dracut/Earthfile skel 2023-02-01 22:34:07 +01:00