[koji/el6] add patch to remove device creation

Dennis Gilmore ausil at fedoraproject.org
Fri Aug 31 22:21:47 UTC 2012


commit ee7a6a121aad80994e17772bb45830e53028c4f9
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Fri Aug 31 17:20:51 2012 -0500

    add patch to remove device creation

 ...code-to-create-devices-in-chroot-for-live.patch |   36 ++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/0001-remove-the-code-to-create-devices-in-chroot-for-live.patch b/0001-remove-the-code-to-create-devices-in-chroot-for-live.patch
new file mode 100644
index 0000000..b93a301
--- /dev/null
+++ b/0001-remove-the-code-to-create-devices-in-chroot-for-live.patch
@@ -0,0 +1,36 @@
+From 39dd9916d61a156c98ced30c070dc64d27d1eb19 Mon Sep 17 00:00:00 2001
+From: Dennis Gilmore <dennis at ausil.us>
+Date: Fri, 31 Aug 2012 17:17:11 -0500
+Subject: [PATCH] remove the code to create devices in chroot for livecds
+
+
+diff --git a/builder/kojid b/builder/kojid
+index 92d40f1..7114643 100755
+--- a/builder/kojid
++++ b/builder/kojid
+@@ -1770,22 +1770,6 @@ class ImageTask(BaseTaskHandler):
+         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.11.4
+


More information about the scm-commits mailing list