optimize initrd install script and free bos