homed: make clean that --storage=directory --image-path=/dev/some-block-device is...
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Sep 2020 17:37:05 +0000 (19:37 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 20 Sep 2020 10:13:50 +0000 (12:13 +0200)
commitd7f9314718803d551ddfc7b4950db44b5b65ca4b
tree2d101713e23e203ae6b34c97f4b8930807b6e71d
parent7fb84ee0b34cfd8759fe71b931f6c9a2aee9aa63
homed: make clean that --storage=directory --image-path=/dev/some-block-device is not supported

The directory backend needs a file system path, and not a raw block
device. That's only supported for the LUKS2 backend.

Let's make this clearer in the man page and also generate a better error
message if attempted anyway.

Fixes: #17068
(cherry picked from commit f9d525ae558105bf7fd77ad76e4fdb135bb9f634)
(cherry picked from commit a2a8802abe1289e200213130764c81da2c4fbf4e)
man/homectl.xml
src/home/homed-home.c