[node-devel] [PATCH] Add network configure in emergency shell

taget at linux.vnet.ibm.com taget at linux.vnet.ibm.com
Wed Dec 21 07:47:57 UTC 2011


From: jimmy <taget at 163.com>

This patch is to configure networking before dropping in to emergency shell.
By doing this, user can using ssh to connect host server.

Signed-off-by: Eli <taget at vnet.linux.ibm.com>
---
 ovirt-firstboot |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/scripts/virt-firstboot b/scripts/ovirt-firstboot
index ef0a071..48f31e6 100755
--- a/scripts/ovirt-firstboot
+++ b/scripts/ovirt-firstboot
@@ -36,6 +36,9 @@ trap 'exit $?' 1 2 13 15
 autoinstall_failed(){
     log "Automatic installation failed. Please review console messages."
     log "Press Enter to drop to emergency shell."
+    /usr/libexec/ovirt-config-networking AUTO
+    log "Configure root password : "
+    /usr/bin/passwd
     read < /dev/console
     bash < /dev/console
 }
-- 
1.7.4.4




More information about the node-devel mailing list