extras-buildsys-temp/scripts mach.in,1.3,1.4

Ville Skytta (scop) fedora-extras-commits at redhat.com
Mon Apr 11 16:57:00 UTC 2005


Author: scop

Update of /cvs/fedora/extras-buildsys-temp/scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15537/scripts

Modified Files:
	mach.in 
Log Message:
Mount devpts in the buildroot.


Index: mach.in
===================================================================
RCS file: /cvs/fedora/extras-buildsys-temp/scripts/mach.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mach.in	29 Mar 2005 15:39:09 -0000	1.3
+++ mach.in	11 Apr 2005 16:56:53 -0000	1.4
@@ -437,21 +437,27 @@
         sys.stdout.flush ()
 
     def mount (self):
-        "mount proc into chroot"
+        "mount proc and devpts into chroot"
         # FIXME: the next three lines are workaround code for when not having
         # proc
         # FIXME: rh 72's mount needs /proc/mounts file, let's give it one
         #open (os.path.join (self.rootdir, 'proc', 'mounts'), 'w').close ()
         #return
         ensure_dir (os.path.join (self.rootdir, 'proc'))
+        ensure_dir (os.path.join (self.rootdir, 'dev', 'pts'))
         # first umount for completeness; you never know
         self.umount ()
-        debug ("mounting proc")
         file = open (os.path.join (self.statedir, 'mount'), "a+")
+        debug ("mounting proc")
         command = '%s -t proc proc %s/proc' % (self.config['mount'], self.rootdir)
         debug (command)
         os.system (command)
         file.write ('%s/proc\n' % self.rootdir)
+        debug ("mounting devpts")
+        command = '%s -t devpts -o uid=500,gid=500 devpts %s/dev/pts' % (self.config['mount'], self.rootdir)
+        debug (command)
+        os.system (command)
+        file.write ('%s/dev/pts\n' % self.rootdir)
         file.close ()
 
     # umount all mounted paths




More information about the fedora-extras-commits mailing list