From 014e7eb321f22cf5f55505704501d4b605d9d256 Mon Sep 17 00:00:00 2001 From: Jeffrey Ferreira Date: Tue, 22 Jan 2019 11:56:16 +0100 Subject: losetup: update an error message Update an error message to add --partscan to the list of options only allowed during loop device setup. Signed-off-by: Jeffrey Ferreira Signed-off-by: Karel Zak --- sys-utils/losetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/losetup.c') diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 6fc5d51cd..3dbbcdd3e 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -826,7 +826,7 @@ int main(int argc, char **argv) (sizelimit || lo_flags || showdev)) errx(EXIT_FAILURE, _("the options %s are allowed during loop device setup only"), - "--{sizelimit,read-only,show}"); + "--{sizelimit,partscan,read-only,show}"); if ((flags & LOOPDEV_FL_OFFSET) && act != A_CREATE && (act != A_SHOW || !file)) -- cgit v1.2.3-55-g7522