summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-07-05 02:32:41 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-07-05 02:32:41 (GMT)
commit28895fa59a8deb026ed19865badc406ae545f417 (patch)
tree7e70ddc5994b61abacfe8b01dc2b67bb2ba6a6ba /abs
parentb4565d0596222104297d860695f95fd855245d8e (diff)
downloadlinhes_pkgbuild-28895fa59a8deb026ed19865badc406ae545f417.zip
linhes_pkgbuild-28895fa59a8deb026ed19865badc406ae545f417.tar.gz
linhes_pkgbuild-28895fa59a8deb026ed19865badc406ae545f417.tar.bz2
linhes-config: add pts to chroot bind
Diffstat (limited to 'abs')
-rwxr-xr-xabs/core-testing/LinHES-config/mv_install.py7
1 files changed, 7 insertions, 0 deletions
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________")