From 99fbcea51b94f2bdc8a2df831c8d71a3d7717f94 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 4 Dec 2013 16:34:23 +0000 Subject: [PATCH] mount_root: add more diagnostic messages --- mount_root.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.11.0