1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 20:21:32 +03:00
Commit Graph

34 Commits

Author SHA1 Message Date
Tom Hall
b0336c4213 initrd: handle systemd-udevd being a symlink to udevadm
Mirrors 7361f6f252
2020-09-16 23:02:36 +01:00
Samuel Dionne-Riel
6461b307a0 initrd: Make compression method an option
This is a semi-internal option. The end-user may want to change it.
Though in reality this is aimed toward device integrators that integrate
a device with a small boot partition.
2020-08-22 21:28:14 -04:00
Samuel Dionne-Riel
8f32fbe7c0 initrd: Fix for lvm2 multiple output
See Nixpkgs d3a991d41028c5d2a5af2796c0bb542836457822
2020-07-28 16:27:04 -04:00
Samuel Dionne-Riel
eaaa3980f0 initrd: Add tree output to initrd-meta
This ends up being useful to peek into the initrd cpio without actually
having to crack it open.

I have used this to track down a bad symlink.
2020-06-01 18:58:05 -04:00
Samuel Dionne-Riel
94981be08f stage-1: Package up script loader in overlay
It will end up re-used soon.
2020-05-31 18:54:07 -04:00
Samuel Dionne-Riel
7ec525330f
Merge pull request #152 from samueldr-wip/fix/kernel-cmdline
Remove messy `device.info` option
2020-05-25 15:24:26 -04:00
Samuel Dionne-Riel
52ea0fb075 initrd: Cleanup accidental cruft from messy device info 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
4db9f2ad39
Merge pull request #149 from samueldr-wip/feature/lvgui-ffi
boot/gui: Use libffi rather than bespoke bindings
2020-05-24 15:31:23 -04:00
Samuel Dionne-Riel
15d3f1fdbb initrd: Remove leftover hack from when isContainer was used 2020-05-23 01:58:26 -04:00
Samuel Dionne-Riel
16f25cf6f6 initrd: stop relying on pkgsStatic
This ends up saving ~100KiB. Not much, but we're already 1MiB over the
~7-8 MiB budget.

Though, in reality, it's not for the space saving, but because
dlopen/dlsym will be needed for ffi-based bindings.
2020-05-23 01:56:00 -04:00
Samuel Dionne-Riel
eba58e13ed initrd: Fix regression from removal of _module 2020-03-19 16:57:08 -04:00
Samuel Dionne-Riel
741eba11ac
Merge pull request #90 from samueldr-wip/feature/initrd-meta
initrd: Add `initrd-meta` build output, with ncdu metadata
2020-03-08 18:06:28 -04:00
Samuel Dionne-Riel
8a71c8dd85 initrd: Add initrd-meta build output, with ncdu metadata
This can be used to sift through the files in stage-1, and hopefully
pare it down when it bloats.
2020-03-08 17:49:12 -04:00
Samuel Dionne-Riel
9ab16a6c66 initrd: Add udev rules for input devices
Otherwise, there is no trivial way to dinstinguish a trackpad from a
touchscreen.
2020-03-08 17:01:31 -04:00
Samuel Dionne-Riel
12c9d29f58 boot/init: Use the newly split script-loader 2020-03-01 23:27:56 -05:00
Samuel Dionne-Riel
3acc3ee63d initrd: Add boot_as_recovery to config 2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
c487e0d7d3 initrd: Implement split loader/script 2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
7dd8408dd9 initrd: Fix early logging
We're now starting `bootlogd` first thing, this in turn allows it to
capture all logs. Though, this does mean that `sh` is back in the
critical path of the system. Anyway, it was never exactly out.
2020-02-03 21:58:21 -05:00
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