Fix a problem that we can't insert kernel modules in the early hooks for network and any other things.
We can not use the init hooks for inserting kernel modules because /proc/modules isn't available at this stage.
Also wait for sshd only if rescueshell has never occur and don't wait remaining time for sshd_wait if we send resume-boot from remote shell.
This changes allow me to use standalone better-initramfs with separated kernel modules and with following boot-update config:
Fix a problem that we can't insert kernel modules in the early hooks for network and any other things. We can not use the init hooks for inserting kernel modules because /proc/modules isn't available at this stage. Also wait for sshd only if rescueshell has never occur and don't wait remaining time for sshd_wait if we send resume-boot from remote shell.
This changes allow me to use standalone better-initramfs with separated kernel modules and with following boot-update config:
"Funtoo Linux better-initramfs standalone+modules" { kernel kernel[-v] initrd = initramfs.standalone.cpio.gz initrd += initramfs.modules.only.cpio.gz initrd += initramfs.remote.cpio.gz initrd += initramfs.prompt.cpio.gz initrd += initramfs.strace.cpio.gz initrd += initramfs.htop.cpio.gz
params += initramfsdebug
}
P.S.: boot-update also need this patch https://github.com/nordaux/boot-update/commit/2e8d4850de998a1d4b9ab1ec33112f0655c32453