Remove the minimal initramfs and make initramfs-extra opt-in
- Oct 31, 2024
-
-
importing all udev rules doesn't make sense here. Only add the needed ones. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org> Co-authored-by:
Clayton Craft <clayton@craftyguy.net> [ci:ignore-count] [ci:skip-build]: already built successfully in CI
-
-
make the logging nicer and remove some irrelevant errors. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org> Co-authored-by:
Clayton Craft <clayton@craftyguy.net>
-
Clayton Craft authored
Note: this includes a breaking change in pmaports if pmos-initramfs isn't changed to support merging the initramfs+initramfs-extra. Do not cherry-pick without the required initramfs changes!
-
Drop the fork, nothing depends on it and we can use the new multi-stage initramfs instead Signed-off-by:
Caleb Connolly <caleb@postmarketos.org> [ci:ignore-count] [ci:skip-vercheck]
-
device/*/*: enable deviceinfo_create_initfs_extra instead of depending on initramfs-minimal (MR 5636) Make use of the new multi-stage initramfs rather than the minimal variant, and inform mkinitfs that the initramfs-extra archive should be created to save space. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org> [ci:ignore-count]
-
We previously forked the initramfs into a minimal variant for highly space constrained devices, to allow the normal variant to gain additional functionality like the debug-shell (With OSK). Initially the hope was that only a handful of devices would need the minimal variant, but in practise this has not been the case. Trying to maintain two diverging forks of the initramfs is absoutely unsustainable and (to be frank) a bit silly. Based on discussion with craftyguy and newbyte, let's re-architect the initramfs to run in two stages, with the second stage being part of initramfs-extra. By itself this doesn't make a lot of sense, since requiring the boot partition be mounted for the debug-shell to be useful is a major downgrade. However this can be used in tandem with pending support for a new deviceinfo_create_initfs_extra variable, this is default false in mkinitfs which finally gets rid of initramfs-extra entirely for devices that don't need it. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org> Co-authored-by:
Clayton Craft <clayton@craftyguy.net>
-
We need to use ls to check if the hooks dir contains any hooks (otherwise the wildcard doesn't work). But ls prints an error if the dir is missing or empty. Hide the error to not pollute the log. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
This was only added recently, is likely not used by anyone, and introduces hard to resolve dependencies on /boot being mounted which we may not want in the future. Remove it to drop some complexity. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-