<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    (It's double posted.  So, reply to your mailing list). :-)<br>
    <br>
    How do I 
    <ul>
      <li><b>unpack</b> an existing /boot/initrd.img-x.y.z  (Debian)</li>
      <li><b>repack</b> back.</li>
    </ul>
    <p>Of course, I need to do some work in between... hence, the
      question.</p>
    <p>To unpack, I can use 'unmkinitramfs'.</p>
    <p>But, I can't seem to repack an initrd from <b>current</b>
      directory.  'mkinitramfs' always takes stuffs from my system
      directory (/lib/modules/x.y.z/).  Current directory has many
      add-ons from the original initrd, that I don't have, so I don't
      want to lose it.</p>
    <p>    mkinitramfs -v -r ./ -o ~/new_initrd.img x.y.z</p>
    <p>According to manpage, "-r ./" should force the root directory as
      current directory, but it doesn't seem to.</p>
    <br>
  </body>
</html>