[lorax] Set permissions on the initrd (#863018)

Martin Gracik mgracik at redhat.com
Mon Oct 8 10:37:41 UTC 2012


Dracut now makes the initrd with 600 permissions
for security reasons. These reasons do not apply
to install images, and we want the other tools
that use lorax to be able to read the initrd file.
---
 src/pylorax/ltmpl.py |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/pylorax/ltmpl.py b/src/pylorax/ltmpl.py
index a391a90..3dda557 100644
--- a/src/pylorax/ltmpl.py
+++ b/src/pylorax/ltmpl.py
@@ -302,6 +302,7 @@ class LoraxTemplateRunner(object):
           Same as installkernel, but for "initrd".
         '''
         self.install(src, dest)
+        self.chmod(dest, '644')
         self.treeinfo(section, "initrd", dest)
 
     def hardlink(self, src, dest):
-- 
1.7.9.5



More information about the anaconda-patches mailing list