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:09:59 +0000 (12:09 +0200)
commita2a8802abe1289e200213130764c81da2c4fbf4e
treea3a226a5a2e5435db580054c6e2352f361abe8c4
parente1df274a76832d3b25a284a92790c5b85a1a88a7
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)
man/homectl.xml
src/home/homed-home.c