<div dir="auto"><div>Hi Chris,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 30, 2020, 10:09 Chris Murphy <<a href="mailto:lists@colorremedies.com">lists@colorremedies.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Future feature for the former case:<br>
- Btrfs seed/sprout feature expressly supports this use case for<br>
replicating a seed image when destination is also Btrfs.<br>
# mount /dev/seed /mnt<br>
# btrfs device add /dev/sprout /mnt<br>
# mount -o remount,rw /mnt<br>
# btrfs device remove /dev/seed /mnt<br>
<br>
This results in replication happening, from seed to sprout device.<br>
<br>
Future feature to consider for the latter case, maybe it's more of an<br>
optimization:<br>
- ability to create btrfs subvolumes<br>
- ability to 'cp -a --reflink'<br>
<br>
Possibly an unaware installer just copies files over blindly. But then<br>
the "repart" task is to create a snapshottable layout after the fact<br>
without having to recopy everything.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">There are lots of thkngs that could be done! That's why I would love to be able to run a hook after partitioning or formatting!</div><div dir="auto"><br></div><div dir="auto">Simple use casesĀ  make sense to cover with explicit commands, but you just can not add everything any user might want explicitly!</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Or add in zram-generator configuration if the generator is available,<br>
and not worry about creating a persistent device.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">How about writing a hook for that?</div><div dir="auto"><br></div><div dir="auto">Best Regards,</div><div dir="auto">Tobias</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>