Itxaka
645d0a428a
Mount oem by label
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-09 10:50:30 +01:00
Itxaka
61e6607285
Properly clean the sysroot string from fstab
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-09 10:29:26 +01:00
Itxaka
0807fe08f5
Refactor
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-09 10:12:11 +01:00
Itxaka
cf69cffa4b
Drop isrecovery from state struct
...
Only needed in one place, can be made into a function
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-09 08:54:16 +01:00
Itxaka
c5e686883e
Significantly drop logging
...
It was nice when things break all over but its much more stable now.
Lets add logging with head and with proper enrichment of the data being
sent
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 23:27:53 +01:00
Itxaka
f490b08587
Several fixes
...
- set debug level via cmdline
- set default RW paths needed ALWAYS to boot a working system, even
with no config files(recovery)
- Check for loop device before mounting it to avoid duplicated mounts
- Force overlay and bind arrays to uniqueness
- Rename OverlayDir to OverlayDirs to better represent the content
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 22:54:17 +01:00
Itxaka
accaa2a114
Fix log if error is nil
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 22:03:45 +01:00
Itxaka
b2b870973c
Return from cos-layout if recovery
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 21:19:57 +01:00
Itxaka
0ea1650838
fix auto fstype
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 19:35:13 +01:00
Itxaka
99cd455ce8
Fixes recovery
...
- Add isRecovery to state
- Get the TargetImage from cmdline
- Add isrecovery to conditions
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 18:51:53 +01:00
Itxaka
1381041b7d
switch state to recovery if we are on recovery
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 18:24:28 +01:00
Itxaka
c533ab825a
bind: only add to fstab if we have no errors
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 16:36:12 +01:00
Itxaka
0939929821
drop empty binds, more logging
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 16:23:13 +01:00
Itxaka
2a62ff5dac
Persistent should be RW
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 15:51:21 +01:00
Itxaka
4407bef252
return proper multierror or nil, print dag after execution
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 15:40:18 +01:00
Itxaka
98a2506859
check mount status in mountoperation.run not on bind mountpoint
...
preparation
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 14:43:58 +01:00
Itxaka
bfc337b499
sdfasd
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 14:14:37 +01:00
Itxaka
45c69d24fa
Remove defaults from bind and extra logging
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 13:49:26 +01:00
Itxaka
6fedeef4ea
Replace /sysroot on fstab
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 11:53:08 +01:00
Itxaka
b67c89c593
Translate auto fstype to actual type
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 11:33:11 +01:00
Itxaka
b628f959d3
Translate persistent to runtime device
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 11:01:21 +01:00
Itxaka
c2deb76192
Check symlink before creating it
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 10:32:11 +01:00
Itxaka
9aee940e64
more debug
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-08 10:09:21 +01:00
Itxaka
856b01c540
i dunno lol
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-07 22:12:37 +01:00
Itxaka
bd5c1f1f55
Fix depends for rootfs, proper path for layout
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-07 21:52:40 +01:00
Itxaka
b62a1f2e99
fix deps of rootfs stage, not working modules, symlink
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-07 21:05:30 +01:00
Itxaka
63679b6df1
Add missing modules and fix rootfs stage
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-07 20:16:02 +01:00
Itxaka
717851b0b2
+x generator.sh
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-07 16:48:34 +01:00
Itxaka
41b1baf17b
Remove auto stanza from mount
...
Signed-off-by: Itxaka <itxaka@spectrocloud.com >
2023-02-06 17:46:45 +01:00
Itxaka
2eef2c8922
Merge branch 'master' into changes_v4
2023-02-06 17:29:23 +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
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
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
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
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
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
mudler
de01370653
Reorg flow
2023-02-01 18:01:58 +01:00
mudler
a58f86aad1
Switch to ops model
2023-01-12 19:29:49 +01:00
mudler
2b6de44b9d
Initial import
2023-01-12 19:10:10 +01:00