<div dir="ltr"><div class="gmail_quote"><div><p>Hello, </p><p>I've recently discovered repart systemd tool, and I 
would like to ditch bash scripting in favor of systemd-reparted. What 
I'm trying to do:</p>
<ul><li>From initrd, before mounting /sysroot or /sysusr grow partition /dev/mmcblk0p2 with type linux-generic.</li><li>Encrypt this partition with key-file</li><li>Create partitions inside crypted Luks container e.g. root1 root2 and data.</li><li>Format created partition with ext4</li><li>Copy from tar/folder to root1 and root2 accordingly.</li><li>Happily boot with switch_root</li></ul>
<p>I'm failing on the first step:</p>
<pre><code>/etc/repart.d/50-root.conf:
[Partition]
Type=linux-generic
</code></pre>
<p>when I try to run systemd-repart manually, I get:</p>
<pre><code>~ # systemd-repart /dev/mmcblk0 --no-pager --dry-run=no 
No machine ID set, using randomized partition UUIDs.
TYPE          LABEL  UUID          FILE NODE                 SIZE        PADDING
esp           boot   dab3ebc1-604…      /dev/mmcblk0p1     100.0M             0B
linux-generic rootfs 91589d66-e3e…      /dev/mmcblk0p2     686.7M 118.6G → 118.…
                                                       Σ = 786.7M     Σ = 118.6G

 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
 ├─ rootfs                                                                     
 └─ boot                                                                       

No changes.
</code></pre>What am I doing wrong? Is this even possible or I should stick to scripts I currently have?
    </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>