It took me quite some time today(while fixing squashfs+overlay on
armvirt) to find out, that I was missing support for loop block device
in kernel, so I'm adding error message which might be helpful for
someone else in the future as well.
Acked-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
char str[128];
int ret = 0;
- if (!p->loop_name[0] && rootdisk_create_loop(p) != 0)
+ if (!p->loop_name[0] && rootdisk_create_loop(p) != 0) {
+ ULOG_ERR("unable to create loop device\n");
return -1;
+ }
v->type = BLOCKDEV;
v->blk = p->loop_name;