From 28895fa59a8deb026ed19865badc406ae545f417 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sat, 4 Jul 2009 21:32:41 -0500
Subject: linhes-config: add pts to chroot bind

---
 abs/core-testing/LinHES-config/mv_install.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/abs/core-testing/LinHES-config/mv_install.py b/abs/core-testing/LinHES-config/mv_install.py
index e96dd56..9d2e284 100755
--- a/abs/core-testing/LinHES-config/mv_install.py
+++ b/abs/core-testing/LinHES-config/mv_install.py
@@ -204,13 +204,18 @@ def mount_bind_chroot():
     logging.debug("Mounting dev/proc/sysfs for chroot")
     cmd = "  mount --bind /dev %s" %data_config.MOUNTPOINT+"/dev"
     runcmd(cmd)
+    cmd = "  mount --bind /dev/pts %s" %data_config.MOUNTPOINT+"/dev/pts"
+    runcmd(cmd)
     cmd = "  mount --bind /proc %s" %data_config.MOUNTPOINT+"/proc"
     runcmd(cmd)
     cmd = "  mount -t sysfs none  %s" %data_config.MOUNTPOINT+"/sys"
     runcmd(cmd)
 
+
 def umount_bind_chroot():
     logging.debug("UnMounting dev/proc/sysfs for chroot")
+    cmd = "  umount -l %s" %data_config.MOUNTPOINT+"/dev/pts"
+    runcmd(cmd)
     cmd = "  umount -l %s" %data_config.MOUNTPOINT+"/dev"
     runcmd(cmd)
     cmd = "  umount -l %s" %data_config.MOUNTPOINT+"/proc"
@@ -936,7 +941,9 @@ def full_install(hostoptions):
     #cp_and_log2(MVROOT+"/bin/", data_config.MOUNTPOINT+MVROOT+"/bin/", "*.sh")
     #cp_and_log2(MVROOT+"/bin/", data_config.MOUNTPOINT+MVROOT+"/bin/", "*.py")
     #fix_permissions()
+    mount_bind_chroot()
     apply_new_auth()
+    umount_bind_chroot()
     if ( systemconfig["SystemType"] == "Master_backend" or  systemconfig["SystemType"] == "Standalone" ):
 #       This install will need a DB,  so install it
         logging.info("______Installing Database in CHROOT________")
-- 
cgit v0.12