From 2d2b15d5cbaafd9652b55b641d571c3e286f30f5 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Tue, 27 Jun 2006 19:07:04 +0000 Subject: [PATCH] - mount /proc in system image before running yum 2.4, which now requires it to be mounted --- source/steps/ChainBootNode.py | 2 ++ source/steps/ValidateNodeInstall.py | 1 + 2 files changed, 3 insertions(+) diff --git a/source/steps/ChainBootNode.py b/source/steps/ChainBootNode.py index bdefca8..55beeb2 100644 --- a/source/steps/ChainBootNode.py +++ b/source/steps/ChainBootNode.py @@ -84,6 +84,7 @@ def Run( vars, log ): utils.sysexec( "mount /dev/planetlab/root %s" % SYSIMG_PATH, log ) utils.sysexec( "mount /dev/planetlab/vservers %s/vservers" % SYSIMG_PATH, log ) + utils.sysexec( "mount -t proc none %s/proc" % SYSIMG_PATH, log ) ROOT_MOUNTED= 1 vars['ROOT_MOUNTED']= 1 @@ -141,6 +142,7 @@ def Run( vars, log ): utils.sysexec_noerr( "chroot %s umount /rcfs" % SYSIMG_PATH, log ) except OSError, e: pass + utils.sysexec_noerr( "umount %s/proc" % SYSIMG_PATH, log ) utils.sysexec_noerr( "umount -r /dev/planetlab/vservers", log ) utils.sysexec_noerr( "umount -r /dev/planetlab/root", log ) utils.sysexec_noerr( "vgchange -an", log ) diff --git a/source/steps/ValidateNodeInstall.py b/source/steps/ValidateNodeInstall.py index 9d632cc..d5de397 100644 --- a/source/steps/ValidateNodeInstall.py +++ b/source/steps/ValidateNodeInstall.py @@ -84,6 +84,7 @@ def Run( vars, log ): utils.sysexec( "mount /dev/planetlab/root %s" % SYSIMG_PATH, log ) utils.sysexec( "mount /dev/planetlab/vservers %s/vservers" % SYSIMG_PATH, log ) + utils.sysexec( "mount -t proc none %s/proc" % SYSIMG_PATH, log ) except BootManagerException, e: log.write( "BootManagerException during vgscan/vgchange: %s\n" % str(e) ) -- 2.43.0