initrd.scripts: move more functions to initrd.d/