From: Ian Jackson Subject: [PATCH 09/13] ts-freebsd-install: split big setup command into three chunks Date: Mon, 25 Nov 2013 17:43:58 +0000 Message-ID: <1385401442-17782-10-git-send-email-ian.jackson@eu.citrix.com> References: <1385401442-17782-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vl0DV-0004aL-K1 for xen-devel@lists.xenproject.org; Mon, 25 Nov 2013 17:45:02 +0000 In-Reply-To: <1385401442-17782-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Jackson --- ts-freebsd-install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ts-freebsd-install b/ts-freebsd-install index 7884651..a2c8a4d 100755 --- a/ts-freebsd-install +++ b/ts-freebsd-install @@ -89,12 +89,17 @@ sub prep () { kpartx -a $gho->{Lvdev} mkdir -p $mnt mount -t ufs -o ufstype=ufs2,rw $rootpartition_dev $mnt +END + target_cmd_root($ho, <$mnt/root/.ssh/authorized_keys $authkeys ENDKEYS +END + + target_cmd_root($ho, <> $mnt/etc/rc.conf echo 'ifconfig_xn0="DHCP"' >> $mnt/etc/rc.conf echo 'PermitRootLogin yes' >> $mnt/etc/ssh/sshd_config -- 1.7.10.4