From: Jo-Philipp Wich Date: Wed, 4 Dec 2013 16:34:23 +0000 (+0000) Subject: mount_root: add more diagnostic messages X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=99fbcea51b94f2bdc8a2df831c8d71a3d7717f94;p=oweals%2Fubox.git mount_root: add more diagnostic messages --- diff --git a/mount_root.c b/mount_root.c index cfa48c3..1927efa 100644 --- a/mount_root.c +++ b/mount_root.c @@ -707,6 +707,8 @@ static int extroot(const char *prefix) sprintf(kmod_loader, "/sbin/kmodloader %s/etc/modules-boot.d/ %s", prefix, prefix); system(kmod_loader); + LOG("starting block executable %s\n", block_path); + pid = fork(); if (!pid) { mkdir("/tmp/extroot", 0755); @@ -753,7 +755,11 @@ static int extroot(const char *prefix) rmdir("/tmp/extroot"); return 0; } + } else { + ERROR("block executable did not set up an overlay\n"); } + } else { + ERROR("block executable failed with code %d\n", WEXITSTATUS(status)); } } return -1;