1. Creating initrd using mkinitrd

    # mkinitrd  -v -f –with=e1000 /tmp/initrd.gz 2.6.9-55

  2. Extracting the initrd image to add contents in it

    # mkdir /initrdroot
    # cd /initrdroot
    # gzip -dc /tmp/initrd.gz | cpio -id
    # ls  /initrdroot
    bin  dev  etc  init  lib  linuxrc  lost+found  mnt  proc  root  sbin  sys  sysroot  tmp  usr  var
    #

    Now add binaries and libraries to the initrdroot

  3. To recreate the initrd based on /initrdroot

    # find ./ | cpio -H newc -o > /tmp/unixfooinitrd
    # gzip /tmp/unixfooinitrd
    # mv /tmp/unixfooinitrd /boot/unixfooinitrd.gz

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like
Read More

Download using wget

You can use “wget” on Linux machine CLI to download files from http or ftp sites. Proxy configuration…
Read More

Disabling TLS 1.0 on nginx web servers

Disable TLS 1.0 and enable higher versions of TLS in nginx. To disable TLS 1.0 on nginx webserver installations, edit the "ssl_protocols" directive in your nginx.conf, where the TLS server directives are listed and remove TLSv1.