dissect: optionally allow attaching images that do not qualify as DDIs with --attach

It's nice to use --attach since it validates our images. So far, it
strictly insisted on checking that the image was a DDI however, which
limits its use for certain usecases.

Add "--relax" to address this limitation.
This commit is contained in:
Lennart Poettering
2026-09-22 16:04:26 +02:00
committed by Luca Boccassi
parent efa16c7f31
commit b0edc60661
4 changed files with 58 additions and 19 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ _systemd_dissect() {
-r --read-only
--mkdir
--rmdir
--in-memory'
--in-memory
--relax'
[ARG]='-m --mount -M
-u --umount -U
--attach