[buildroot] kernel-defaults: factor common code handling initramfs options