* Fix lint and add new uki step
Make it simpler by dividing the actual base mounts and pivot into new
sysroot into two different steps
Signed-off-by: Itxaka <itxaka@kairos.io>
* Fix constant name and gosec issues
Signed-off-by: Itxaka <itxaka@kairos.io>
---------
Signed-off-by: Itxaka <itxaka@kairos.io>
* Chroot into a new dir before starting the system
Signed-off-by: Itxaka <itxaka@kairos.io>
* Use ReadDir and copy files int eh rootdir to the enw rootdir
Signed-off-by: Itxaka <itxaka@kairos.io>
* logggg
Signed-off-by: Itxaka <itxaka@kairos.io>
* Several fixes
Mount /dev at start so we can log to kmesg/ttyS0
Log more
Store the mountpoints found in root to bind them later to the new
sysroot
Signed-off-by: Itxaka <itxaka@kairos.io>
* debvuy
Signed-off-by: Itxaka <itxaka@kairos.io>
* Fix
Signed-off-by: Itxaka <itxaka@kairos.io>
* more debufg
Signed-off-by: Itxaka <itxaka@kairos.io>
* fix
Signed-off-by: Itxaka <itxaka@kairos.io>
* sfder
Signed-off-by: Itxaka <itxaka@kairos.io>
* Fix symlinks
Signed-off-by: Itxaka <itxaka@kairos.io>
* final
Signed-off-by: Itxaka <itxaka@kairos.io>
* disable mobving the / root mountpoint
Im not sure this works on our side or how, I just get errors
Signed-off-by: Itxaka <itxaka@kairos.io>
* Debug
Signed-off-by: Itxaka <itxaka@kairos.io>
* Disable remounting / as RO and enable remounting the new sysroot as RO
Signed-off-by: Itxaka <itxaka@kairos.io>
* Dont drop to bash like that
Signed-off-by: Itxaka <itxaka@kairos.io>
* Move "sysroot" to a constant, dry code and handle errors
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
* Fix linting errors by removing superflows `else` statements
because the `if`s end with `continue`
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
* Apply suggestions from code review
* Remove loggers that don't work
because `/dev` is not there yet (?). In any case, we need to switch to
the new logger
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
---------
Signed-off-by: Itxaka <itxaka@kairos.io>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
- Mount the needed base mounts (/proc /dev /sys /tmp)
- Use our own console for yip (required to add the PATH under uki)
- Order the DAG in a proper way (was out of order and not working)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
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
According to our config files only /var /etc and /srv are needed as
minimal to boot the system. Lets check if that is true
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>