summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-12-20 02:50:49 +0000
committergrog <grog@FreeBSD.org>1999-12-20 02:50:49 +0000
commit1af318cfbcc09a5b1ff34fda681eb5c8654e33f2 (patch)
tree7468826e52466c2b0ba1bf1b25c91543892ab89a /sys/kern/init_main.c
parent7124f5cecd60623f091cda949861754431918861 (diff)
downloadFreeBSD-src-1af318cfbcc09a5b1ff34fda681eb5c8654e33f2.zip
FreeBSD-src-1af318cfbcc09a5b1ff34fda681eb5c8654e33f2.tar.gz
If we fail to find init, print out the search path used. This helps
differentiate between one of three different scenarios: 1. No init. 2. Path to init munged by an incorrect loader configuration. 3. Root file system not mounted. Reviewed-by: billf
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 484cfa4..e6897ad 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -609,6 +609,6 @@ start_init(dummy)
printf("exec %.*s: error %d\n", (int)(next - path),
path, error);
}
- printf("init: not found\n");
+ printf("init: not found in path %s\n", init_path);
panic("no init");
}
OpenPOWER on IntegriCloud