1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 11:03:37 +03:00
Commit Graph

16 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
a53f7cf463 initrd: Expose extraUtils 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
290d2ff757 initrd: Fix strace packaging 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
d913324948 initrd: make bootConfig deeply mergeable
With JSONValue from:

 * https://github.com/NixOS/nixpkgs/pull/75584
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
3b16a080f7 initrd: Make bootConfig a tangible internal option 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
0361ccad00 init: Allow adding tasks to boot/init 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
5b13d6b4a8 initrd: minor cleanup 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
a81afccbb8 cleanup: Move initrd-fail settings in boot/init 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
aa8e5f22bf initrd: Use same mounting logic as NixOS
Well, at least the same data for the mounting logic
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
952183b400 initrd: Re-instate shelling-out / shell location 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
1d8d4c8f52 initrd: Add configuration file for boot/init
This allows a single boot/init build to be re-used across devices, and
more importantly, across rebuilds when only configuration changes.

This also removes the need to hardcode some annoying paths that are
better served through configuration, to their natural store paths.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
2a366b2cae initrd: Allow redirecting output to /dev/kmsg
Though this is a bit buggy and less than ideal.

A better solution would be a custom wrapper that only handles
redirecting. This is, anyway, something that would be required to
redirect all logging to all consoles.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
cbd31a49ce initrd: Allows wrapping init with strace
That wrapper script may be used with other helpers in the future.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
228df26d6c initrd: Refactors module for new init
New init coming in a separate commit
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
327fda2329 Review build to better use system.build and be more composable 2019-09-21 22:40:24 -04:00