Working initrd code for CentOS 6 and Debian 7