[CHANGE Request] koji-builder hot patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



in order to compose appliances in koji i need to get the attached patch 
applied to all builders.  can i get a couple of +1's please


Thanks

Dennis
From c3044e813d5454561910fe6b0f8dc1b2e2b2b37a Mon Sep 17 00:00:00 2001
From: Jay Greguske <jgregusk@xxxxxxxxxx>
Date: Thu, 17 Feb 2011 15:13:30 -0500
Subject: [PATCH] mount all of /dev

---
 builder/kojid |   21 +--------------------
 1 files changed, 1 insertions(+), 20 deletions(-)

diff --git a/builder/kojid b/builder/kojid
index b0a1a7b..09adc6e 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -1619,9 +1619,7 @@ class ImageTask(BaseTaskHandler):
 
         # Here we configure mock to bind mount a set of /dev directories
         bind_opts = {'dirs' : {
-                         '/dev/pts' : '/dev/pts',
-                         '/dev/shm' : '/dev/shm',
-                         '/dev/mapper' : '/dev/mapper',
+                         '/dev' : '/dev',
                          '/selinux' : '/selinux'}
                     }
         rootopts = {'install_group': inst_group,
@@ -1635,23 +1633,6 @@ class ImageTask(BaseTaskHandler):
         # create the mock chroot
         self.logger.debug("Initializing image buildroot")
         broot.init()
-
-        # Create the loopback devices we need
-        cmd = 'for i in $(seq 0 7); do mknod /dev/loop$i b 7 $i; done'
-        rv = broot.mock(['--chroot', cmd])
-        if rv:
-            broot.expire()
-            raise koji.LiveCDError, \
-                "Could not create loopback device files: %s" % parseStatus(rv, '"%s"' % cmd)
-
-        # Create /dev/urandom
-        cmd = 'mknod /dev/urandom c 1 9'
-        rv = broot.mock(['--chroot', cmd])
-        if rv:
-            broot.expire()
-            raise koji.LiveCDError, \
-                "Could not create /dev/urandom: %s" % parseStatus(rv, '"%s"' % cmd)
-
         self.logger.debug("Image buildroot ready: " + broot.rootdir())
         return broot
 
-- 
1.7.1

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux