summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2016-07-08 18:22:06 +0200
committerChris Buechler <cmb@pfsense.org>2016-07-08 20:18:53 -0500
commit6ee6c8bb0f09c3c7106aae37029f7de55a8bd780 (patch)
tree1e953b8bd228ddf6f2fd0c631d35d34c59730326
parentffa1178ee7ef263ad8e9ba3fa91bfdde2a78ffe2 (diff)
downloadpfsense-6ee6c8bb0f09c3c7106aae37029f7de55a8bd780.zip
pfsense-6ee6c8bb0f09c3c7106aae37029f7de55a8bd780.tar.gz
Create /var/run/dmesg.boot symlink for vm-bhyve (Feature #6573)
See https://redmine.pfsense.org/issues/6573
-rw-r--r--src/etc/inc/system.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index ffdfa5b..cb7756e 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -1993,6 +1993,9 @@ function system_dmesg_save() {
fclose($fd);
unset($dmesg);
+
+ // vm-bhyve expects dmesg.boot at the standard location
+ @symlink("{$g['varlog_path']}/dmesg.boot", "{$g['varrun_path']}/dmesg.boot);
return 0;
}
OpenPOWER on IntegriCloud