From 6bfccde711ac0b297897fd2467b019ab762f3c38 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 31 May 2009 02:32:19 -0400 Subject: Set hostname then call hostid onestart --- etc/inc/system.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'etc/inc/system.inc') diff --git a/etc/inc/system.inc b/etc/inc/system.inc index f05a3e9..73f2000 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -210,8 +210,13 @@ function system_hostname_configure() { $syscfg = $config['system']; /* set hostname */ - return mwexec("/bin/hostname " . + $status = mwexec("/bin/hostname " . escapeshellarg("{$syscfg['hostname']}.{$syscfg['domain']}")); + + /* Setup host GUID ID. This is used by ZFS. */ + mwexec("/etc/rc.d/hostid start"); + + return $status; } function system_routing_configure() { -- cgit v1.1