Commit Graph

12 Commits

Author SHA1 Message Date
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