[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 09/13] ts-freebsd-install: split big setup command into three chunks



Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 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, <<END, 900);
             mkdir -p $mnt/root/.ssh
             cat <<'ENDKEYS' >$mnt/root/.ssh/authorized_keys
 $authkeys
 ENDKEYS
 
+END
+
+    target_cmd_root($ho, <<END, 900);
             echo 'sshd_enable="YES"' >> $mnt/etc/rc.conf
             echo 'ifconfig_xn0="DHCP"' >> $mnt/etc/rc.conf
             echo 'PermitRootLogin yes' >> $mnt/etc/ssh/sshd_config
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.