<html><head>

    
  <style>pre,code,address {
  margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
ol,ul {
  margin-top: 0em;
  margin-bottom: 0em;
}
blockquote {
  margin-top: 0em;
  margin-bottom: 0em;
}
</style><style>pre,code,address {
  margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
ol,ul {
  margin-top: 0em;
  margin-bottom: 0em;
}
blockquote {
  margin-top: 0em;
  margin-bottom: 0em;
}
</style></head>
  <body><div>mkinitramfs is just a bash script.&nbsp;</div><div><br></div><div>Quickly glancing through it seams ROOT is hardcoded, but you can override it in the config file.&nbsp;</div><div>You can copy /etc/initramfs-tools and than change/add ROOT variable there.&nbsp;<br>Then invoke mkinitramfs with -d switch (CONFDIR)</div><div><br></div><div>Hope that helps.&nbsp;<br>Good luck.</div><div><br></div><div>On Fri, 2025-11-07 at 23:50 -0500, William Park via kwlug-disc wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div> (It's double posted.&nbsp; So, reply to your mailing list). :-)<br> <br> How do I&nbsp; </div><ul> <li><b>unpack</b> an existing /boot/initrd.img-x.y.z&nbsp; (Debian)</li> <li><b>repack</b>&nbsp;back.</li> </ul><div> </div><p>Of course, I need to do some work in between... hence, the question.</p><div> </div><p>To unpack, I can use 'unmkinitramfs'.</p><div> </div><p>But, I can't seem to repack an initrd from <b>current</b> directory.&nbsp; 'mkinitramfs' always takes stuffs from my system directory (/lib/modules/x.y.z/).&nbsp; Current directory has many add-ons from the original initrd, that I don't have, so I don't want to lose it.</p><div> </div><p>&nbsp; &nbsp; mkinitramfs -v -r ./ -o ~/new_initrd.img x.y.z</p><div> </div><p>According to manpage, "-r ./" should force the root directory as current directory, but it doesn't seem to.</p><div> <br> </div><div>_______________________________________________<br></div><div>kwlug-disc mailing list<br></div><div>To unsubscribe, send an email to <a href="mailto:kwlug-disc-leave@kwlug.org">kwlug-disc-leave@kwlug.org</a><br></div><div>with the subject "unsubscribe", or email<br></div><div><a href="mailto:kwlug-disc-owner@kwlug.org">kwlug-disc-owner@kwlug.org</a>&nbsp;to contact a human being.<br></div></blockquote><div><br></div><div><span></span></div></body></html>