Samuel Dionne-Riel
8962b595f5
boot/init: brown sad phone on main failure
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
d349e66554
boot/init: Use System#shell
if available on failure
...
When it is available, it is assumed it is okay to use.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
cd963d2b59
boot/init: Allow crashing to bootloader
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
a1e3d231be
boot/init: Handle exception to flush logs
...
Otherwise, it somehow happened that the messages were truncated before
the kernel panic.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
bdee7cf0e0
boot/init: Removes SingletonTask special dependency
...
Instead, rely on targets.
Additionally removes the "Boot" special dependency which only made sense
when it was expected that having no dependency was an error.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
6234128c00
boot/init: misc cleanups
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
3c9b5057c0
boot/init: Handles generic mounting
...
This implements reading the configuration to know about mount points.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
d4571cf9aa
boot/init: Use boot.specialFileSystems
...
This is an internal configuration from NixOS. This is what is used by
the NixOS stage-1 to mount the special filesystems.
It would be dumb not to rely on the same!
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
3550d694b3
boot/init: Allow a task to depend on a mount point being mounted
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
555548d3f4
boot/init: Review how configuration is loaded and used
...
This way it can be used at any time, regardless of execution state, as
long as the Configuration module has been parsed.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
83df40bc40
boot/init: Add task to load modules
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
d072e6395c
boot/init: Use configuration for mount point
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
dea888833a
boot/init: misc. cleanups
...
Mostly removed useless dirs...
Also fixed the hardcoded mountpoint.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
583f555f81
boot/init: Now loads configuration file
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
9f416471f7
boot/init: Add udevd task
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
60a92acbe8
boot/init: Continuously improving POC
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
39d44bf64c
boot/init: Continuing extremly POC
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
e48bc514c6
init: Extremely WIP POC
2020-02-03 16:19:10 -05:00