-
- Downloads
postmarketos-initramfs: unify with minimal initramfs
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>
Showing
- main/postmarketos-initramfs/00-initramfs-base.files 2 additions, 10 deletionsmain/postmarketos-initramfs/00-initramfs-base.files
- main/postmarketos-initramfs/00-initramfs-extra-base.files 12 additions, 1 deletionmain/postmarketos-initramfs/00-initramfs-extra-base.files
- main/postmarketos-initramfs/APKBUILD 21 additions, 5 deletionsmain/postmarketos-initramfs/APKBUILD
- main/postmarketos-initramfs/init.sh 26 additions, 71 deletionsmain/postmarketos-initramfs/init.sh
- main/postmarketos-initramfs/init_2nd.sh 96 additions, 0 deletionsmain/postmarketos-initramfs/init_2nd.sh
- main/postmarketos-initramfs/init_functions.sh 42 additions, 114 deletionsmain/postmarketos-initramfs/init_functions.sh
- main/postmarketos-initramfs/init_functions_2nd.sh 121 additions, 0 deletionsmain/postmarketos-initramfs/init_functions_2nd.sh
- main/postmarketos-initramfs/mdev.conf 33 additions, 0 deletionsmain/postmarketos-initramfs/mdev.conf
main/postmarketos-initramfs/init_2nd.sh
0 → 100644
main/postmarketos-initramfs/mdev.conf
0 → 100644
Please register or sign in to comment