]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect: add commands for attaching/detaching loopback devices
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Mar 2023 10:59:16 +0000 (11:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Mar 2023 15:40:55 +0000 (16:40 +0100)
commit07d6072e0ea25e6047007bca53b329b03c76db43
treedf83be86e3f7a28a4c552d2c3b0b2b573b0e6bb6
parent999ac3e2b0b729cba0db27cdcace28ff509e0fe4
dissect: add commands for attaching/detaching loopback devices

Sometimes it is useful attaching DDIs without mounting them. We could
use "losetup" for that, but doing this in systemd-dissect has various
benefits:

1. we superficially validate the DDI first
2. we set the sector size depending on what we determine
3. we synchronously create the per-partition block devices
man/systemd-dissect.xml
src/dissect/dissect.c