mount_root: add more diagnostic messages
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 4 Dec 2013 16:34:23 +0000 (16:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 8 Feb 2014 18:11:22 +0000 (18:11 +0000)
mount_root.c

index cfa48c399e852bc10eafde77f078ebcd86407acd..1927efa13f45911196e5260bc513ddc933bfe611 100644 (file)
@@ -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;