<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small"><br clear="all"></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Just curious, what do you do with a headless machine that has an encrypted root? I guess you could put the crypto key on a thumb drive, but initrd doesn't have a provision for that.</div><br></div>Tim</div></div><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 8, 2018 at 2:34 AM Aaron LI <<a href="mailto:aly@aaronly.me">aly@aaronly.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I justed committed the big initrd change to master. I should wait<br>
for more reviews, but made a mistake with Git and got it pushed earlier.<br>
The patch was reviewed by swildner and barely by tuxillo. I already well<br>
tested this patch by building a new ISO with nrelease and installing<br>
on a vbox with encrypted hammer2 root.<br>
<br>
The initrd is a small initial ramdisk image that packs some statically<br>
linked tools, init and rc scripts. It can be used to help mount the<br>
real root that resides on an encrypted volume or LVM, and it also provides<br>
a rescue environment to help solve system problems.<br>
<br>
This patch removed the mkinitrd(8) and /usr/share/initrd directory, but<br>
introduced the top-level "initrd" make target to build the statically<br>
linked rescue tools (will be installed under /rescue) and create<br>
the initrd image. So, after rebooting into the upgraded system and<br>
verifying it works well, do:<br>
<br>
# cd /usr/src && make initrd<br>
<br>
For more details, please see this commit:<br>
<a href="https://gitweb.dragonflybsd.org/dragonfly.git/commit/e79a303f7db7331d570bb6c6abdd555eeefdcdc2" rel="noreferrer" target="_blank">https://gitweb.dragonflybsd.org/dragonfly.git/commit/e79a303f7db7331d570bb6c6abdd555eeefdcdc2</a><br>
<br>
Cheers,<br>
-- <br>
Aaron<br>
</blockquote></div></div>