Commit Graph

505 Commits

Author SHA1 Message Date
Itxaka
b071573758 use s.path for everything
So we can inherit the rootfs where to store stuff, no matter if / or
/sysroot.

also drop fstabfile as its alwasy gonna be the same file but with a
different rootfs

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 16:29:49 +01:00
Itxaka
f98954367f several improvements
- drop vfs
 - less hardcoded stuff, use the runtime status
 - Remove things that syscalls dont understand (defaults, auto)

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 16:20:18 +01:00
mudler
8f3a43861b Read cmdline mount args 2023-02-06 16:02:18 +01:00
mudler
67aea02ba7 Read mountpoint from env file 2023-02-06 15:41:52 +01:00
mudler
4011c3f41c Cleanup 2023-02-06 15:28:22 +01:00
Ettore Di Giacinto
fcdc2f28b6 Merge pull request #22 from kairos-io/cdboot
Use SDK to get machine state
2023-02-06 14:53:04 +01:00
mudler
13e11fca24 Use SDK to get machine state 2023-02-06 14:49:35 +01:00
Itxaka
46a7ee94ed Merge pull request #18 from kairos-io/changes_v2 2023-02-06 11:48:53 +01:00
Itxaka
4ade174057 dont do anything if booting from CD
We leave dracut to do its own thing and mount the CD properly

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 11:31:46 +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
Ettore Di Giacinto
0580895067 Merge pull request #14 from kairos-io/renovate/github.com-joho-godotenv-1.x
Update module github.com/joho/godotenv to v1.5.1
2023-02-06 10:50:27 +01:00
Ettore Di Giacinto
cd5a4c56af Merge pull request #17 from kairos-io/renovate/github.com-urfave-cli-v2-2.x
Update module github.com/urfave/cli/v2 to v2.24.3
2023-02-06 10:50:09 +01:00
renovate[bot]
95873a3b51 Update module github.com/urfave/cli/v2 to v2.24.3 2023-02-06 09:20:15 +00:00
Itxaka
8f3f469a80 Merge pull request #16 from kairos-io/changes 2023-02-06 10:18:55 +01:00
Itxaka
64fd2f0282 immucore should instlal the cos-setup-initamfs/rootfs services on initrd
Same as cos-immutable-rootfs setups them otherwise they wont get run once we
drop the cos-immutable-rootfs

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 09:46:00 +01:00
Itxaka
66222fb98c Add github job for unit-tests
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 09:44:59 +01:00
Itxaka
73b3f56af5 move to cli v2
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 09:43:54 +01:00
Itxaka
459f9bf349 Add dry-run flag
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 09:37:38 +01:00
Itxaka
e1c16c4e64 Add earthlyignore
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-06 09:31:52 +01:00
renovate[bot]
27d7958b32 Update module github.com/joho/godotenv to v1.5.1 2023-02-06 01:24:21 +00:00
Ettore Di Giacinto
6b50384606 Merge pull request #8 from kairos-io/renovate/github.com-onsi-ginkgo-v2-2.x
Update module github.com/onsi/ginkgo/v2 to v2.8.0
2023-02-04 18:51:09 +01:00
Ettore Di Giacinto
ae1d5792ca Merge pull request #9 from kairos-io/renovate/github.com-urfave-cli-2.x
Update module github.com/urfave/cli to v2
2023-02-04 18:51:00 +01:00
mudler
70cce41004 Timeout must be created before, not during consumption
Fix: https://github.com/kairos-io/immucore/issues/12
2023-02-04 15:25:18 +01:00
renovate[bot]
dad7f54563 Update module github.com/urfave/cli to v2 2023-02-04 13:35:51 +00:00
renovate[bot]
db5970912c Update module github.com/onsi/ginkgo/v2 to v2.8.0 2023-02-04 13:35:30 +00:00
Ettore Di Giacinto
45e2622cd1 Merge pull request #10 from kairos-io/renovate/github.com-joho-godotenv-1.x
Update module github.com/joho/godotenv to v1.5.0
2023-02-04 14:33:16 +01:00
Ettore Di Giacinto
5b2a94a2df Merge pull request #7 from kairos-io/renovate/github.com-moby-sys-mountinfo-0.x
Update module github.com/moby/sys/mountinfo to v0.6.2
2023-02-04 14:33:00 +01:00
Ettore Di Giacinto
dc5342ab6a Merge pull request #4 from kairos-io/renovate/github.com-urfave-cli-1.x
Update module github.com/urfave/cli to v1.22.12
2023-02-04 14:32:48 +01:00
Ettore Di Giacinto
74c1214b7e Merge pull request #3 from kairos-io/renovate/github.com-containerd-containerd-1.x
Update module github.com/containerd/containerd to v1.6.16
2023-02-04 14:32:38 +01:00
renovate[bot]
473a582e1d Update module github.com/moby/sys/mountinfo to v0.6.2 2023-02-04 11:44:51 +00:00
renovate[bot]
7e467d98b9 Update module github.com/joho/godotenv to v1.5.0 2023-02-04 11:44:03 +00:00
Ettore Di Giacinto
d5a90d9f19 Merge pull request #2 from kairos-io/what
Small improvements to earth files
2023-02-04 12:43:03 +01:00
Itxaka
b33fccfbd3 drop unused var in dracut
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-04 11:18:49 +01:00
Itxaka
8a916f4999 Error handling on dag creation
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-04 11:18:13 +01:00
Itxaka
93ceae89a2 Give a logger to State and add debug logs
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
2023-02-04 10:33:58 +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
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
renovate[bot]
77c0bcf185 Update module github.com/urfave/cli to v1.22.12 2023-02-03 17:02:04 +00:00
renovate[bot]
8be7c5c47e Update module github.com/containerd/containerd to v1.6.16 2023-02-03 17:01:16 +00:00
Itxaka
b85ab35a8b Merge pull request #1 from kairos-io/renovate/configure 2023-02-03 18:00:10 +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
d6cbf70ae1 Add remaining hooks 2023-02-03 15:56:15 +01:00
mudler
d767523565 Add simple test suite 2023-02-02 15:12:33 +01:00
mudler
74fbe7bae2 reorder deps 2023-02-02 14:00:44 +01:00
mudler
87cd5e818c Define other dependencies 2023-02-01 22:51:31 +01:00
mudler
80cb803940 Add dracut/Earthfile skel 2023-02-01 22:34:07 +01:00
mudler
2e31f4cff4 Refactor, add dependant ops 2023-02-01 22:33:44 +01:00
mudler
087a8e5361 mount state depends on custom mounts 2023-02-01 19:27:01 +01:00
mudler
0b7d07d683 Put some order 2023-02-01 19:06:51 +01:00