<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="default-style">
Greetings to you all,
<br>
<br>I read through <a href="https://0pointer.net/blog/fitting-everything-together.html">this</a>, several times and was inspired to try build <a href="https://0pointer.net/blog/images/partitions.svg">this</a>, as an exercise to help me learn.
<br>
<br>I've got <a href="https://gitlab.com/baaash/aio/-/blob/main/aio.org">this</a> so far. (probably worthy of a chuckle for some, but we all start somewhere right?)
<br>
<br>anyways, when I do a:
</div>
<div class="default-style">
</div>
<div class="default-style">
<em> sudo mkosi</em>
<br>
<br>the image builds fine. cool.
<br>
<br>when i boot into with <em>systemd-nspawn</em> I see no such growing of partitions, and furthermore am prompted to enter a new root password.
<br>
<br>The password thing I assume is because I need to remove the reference in mkosi, and pass this to<em> systemd-nspawn,</em> as described in the <em>systemd.firstboot</em> man page...[edit:confirmed], But the repart thing has me stumped.
<br>
<br>Asking in IRC it was pointed out <em>systemd-repart</em> should just work automatically provided the partition info was sitting in <em>/usr/lib/repart.d</em> directory, but that it needs no MachineID set in order to qualify as "first.boot".
<br>
<br>I don't have one set but one is being created in the process. I'm missing a piece to this puzzle.
<br>
<br>my eyes burn, my head hurts, and i'm no closer to understanding this, so i wondered if anyone on the list can succinctly explain this to me or perhaps provide a link to a basic working example i can try get my head around; provided of course, someone has already undertaken this exercise on their own, and wouldn't mind sharing.
<br>
<br>Thank you for your time, apologies for the extra noise.
<br>
<br>Coop.
<br>
<br>
</div>
</body>
</html>