https://wiki.gentoo.org/wiki/X_without_Display_Manager you could replace ly with this and search for services u dont need
#optimize boot time
29 messages · Page 1 of 1 (latest)
Firmware can't be changed
Your boot is pretty quick already
You'd have to recompile the kernel to reduce its load
yea fr
you can possible change ur /sbin/init to bash (instead of systemd) to reduce boot time to 0 seconds (not recommended)
My MSI mobo takes so long to post I constantly worry it's not going to
my asus mobo sometimes needs ~5 minutes to exit firmware, because it decides its time to re-train my 64gb of ddr5

why do i have memory context restore enabled... when it sometimes fucking looses the memory context
binfmt_misc (Miscellaneous Binary Format) is a capability of the Linux kernel which allows arbitrary executable file formats to be recognized and passed to certain user space applications, such as emulators and virtual machines. It is one of a number of binary format handlers in the kernel that are involved in preparing a user-space program to r...
Now it takes longest to mount the disks...
I'd say there's nothing left to omptimize
you could cut out initrd time by booting Linux directly (either with systemd-boot or EFI stub, EFI stub probably very slightly faster). this depends on if the Linux package you use is compiled with the necessary options to mount your rootfs. https://wiki.archlinux.org/title/Arch_boot_process#Running_without_initramfs
what’s your root fs? what kind of storage is it on (SATA/NVME)? and you’re not using full disk encryption right?
-# if the Linux kernel package you use doesn’t have the config options you can compile it yourself with the config changed, which is what i do
I'm using UKI + EFI STUB
And it works awesome
I’m using no initramfs all (not even microcode since my motherboard has it preloaded), with EFI stub, and it’s very fast booting
Uki is great
no
it has that resolution because drivers are not yet initialised
and its using very basic display mode
thats just.. how it works
sorry apparently that page is super particular about how the words are capitalized
ig yeah, its just that i saw 3 seconds on ly i thought
sd-boot is significantly faster than grub
i recommend refind because its easier to use; its between sd-boot and grub
anyway the fastest improvement (in fact, the only noticeable improvement) i found was when i changed my init to runit
...because mounting your disks is now what takes the longest... since you made everything else faster
it didnt show up earlier becasue there was other stuff taking longer?!?
for nvme (if you want to run without initramfs) you'd need to set CONFIG_NVME_CORE=y and CONFIG_BLK_DEV_NVME=y in the linux config: https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/blob/main/config?ref_type=heads#L2794-2795 and compile. I've never done a clean benchmark of how much faster running without initramfs is, but my current systemd-analyze is very fast without it:
Startup finished in 11.369s (firmware) + 151ms (loader) + 814ms (kernel) + 2.693s (userspace) = 15.029s
graphical.target reached after 2.692s in userspace.
the binfmt service can be masked to disable it if you don't use binfmts