From 91afe5883f71e0f971285d89cbc95b33592fa0b4 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Mon, 8 Oct 2012 12:35:00 +0200 Subject: [PATCH] Set permissions on the initrd (#863018) 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 a391a903..3dda5579 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):